<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> “页面大背景(body)”指的是整个博客的最大背景,由于中间部分被覆盖,所以显示的效果只是两边的部分。 “题图上背景(logo)”是指 所在的横长条的背景。 其中logo和banner宽各为770,logo高40,banner高135,单位均为像素。 “正文标题栏上翻时的图片”指的是文章发表了之后文章标题的图片。 “面板标题栏下翻时的图片”指的是点击标题后出现标题后的后面的图片。 “面板的背景图片”指的是左边比如我的文章列表什么的背景图片。 “页面内背景(bodybg)”是指就是除了页面大背景(body)外的另一大背景,由于一些部分被logo和banner还有模块的背景覆盖,所以所看到的只是扣除以上三部分的大背景。 “内背景页脚处图片地址(bodyBottom)”是指在文章翻页处下面,sysW770上面的一横窄条 其他的有些就不需要再说明了,大家自己看了就会明白。修改模板的时候可以灵活运用上面的代码,有些可以不要改,不想改哪项就把哪项的代码删掉就可以了,但是注意前后的<style type=text/css>和</style>别漏了,否则代码无效。 假如不知道这些背景图片的大小,就具体在哪张图片上就点击鼠标右键,点背景另存为,把图片存到电脑上,然后看大小就可以了。 注意:以上所用到的图片地址都是图片的URL地址,也就是网络地址,而不是本地地址,本地地址不能用 阅读全文(4302) | 回复(12) | 引 |