之前我有给大家贴过一部分更改博客背景的代码,但是没贴太多,因为很多人都是刚做博客,连最基本的添加空白面板都还不知道就想改背景,还有的连各个部分的背景图片大小都还不知道就胡改乱改,乱改了之后反而不好看,背景图片和颜色不协调。但是问的人多了,没办法,现在就把其他的一些代码贴上来与大家分享,用下面这些代码基本上可以完全自定义新浪的背景。不过我想说的是,改背景的最主要宗旨是协调好看,其次才是个性,如果改不好反而乱了没原先的好看,那还不如不改,新浪有的模板背景还是挺不错的!
<style type=text/css>
body
{background:url("页面大背景图片地址") repeat
scroll!important;}
.logo
{background:url("题图上背景图片地址") no repeat no
scroll!mportant;}
.banner
{background:url("题图下背景图片地址") no repeat no
scroll!mportant;}
.menu
{background:url("题图下的菜单背景图片地址") no-repeat
center;}
.feeds .up
{background:url("正文标题栏上翻时的图片地址") no-repeat
center;}
.feeds .down
{background:url("正文标题栏下翻时的图片地址") no-repeat
center;}
.feeds .function
{background:url("正文摘要结尾处菜单的图片地址") no-repeat
right;}
.links .up
{background:url("面板标题栏上翻时的图片地址");}
.links .down
{background:url("面板标题栏下翻时的图片地址");}
.links .mid
{background:url("面板的背景图片地址");}
.photo .mid
{background:url(个人形象照片处的背景图片地址);}
.label .mid
{background:url("自定义面板的背景图片地址");}
.calendar .mid
{background:url("日历面板背景图片地址");}
.callboard .up
{background:url("公告栏标题栏上翻时的图片地址");}
.callboard .down
{background:url("公告栏标题栏下翻时的图片地址");}
.callboard .mid
{background:url("公告栏背景图片地址");}
.bodyBg
{background:url("页面内背景图片地址");}
.sysBr500
{background:url("所有文章的背景图片地址,建议不使用这段代码");}
.bodyBottom
{background:url("内背景页脚处图片地址");}
.sysW770
{background:url("页面底部“新浪BLOG意见反馈留言板”等字所在的背景图片地址");}
.gbook .up
{background:url("留言板标题栏上翻时的图片地址") no-repeat;}
.gbook .down
{background:url("留言板标题栏下翻时的图片地址") no-repeat;}
.feeds .page
{background:url("正文文章页数图片地址") no-repeat center;}
.links .more
{background:url("最新文章列表下的MORE的背景图片") no-repeat
right;}
.add
{background:url("发表文章四个字所在的背景图片") no-repeat
right;}
.add .ico
{background:url("发表文章四个字左边的小图片") no-repeat
right;}
</style>

另外需要补充一点就是,如果你不需要某项背景,要让其变的透明的话,可以把大括号中的内容去掉,换为 background:#transparent 就可以了。比如我的公告栏不想要背景,想要其变透明的话其代码就是:.callboard .mid{background:#transparent} 当然这只是其中一段,用的时候别忘了头尾的<STYLE>和</STYLE>。