我几天前用一个博友的代码想自定义一个页面背景,结果图片没换上去连原来的背景都没了,后面一片空白(莫非大家现在都是这个样子?)。我恢复初使模板、更改模板都没用!请问该怎么办?
另求一个更改主页背景的代码,再一个,谁有好看的卡通情侣小图片可以推荐一下吗?我想用来作头像。谢了!
整体模板源代码:
body
{background:url(页面背景图片) repeat
scroll!important;}
。logo
{background:url(题图logo图片) 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...全部
整体模板源代码:
body
{background:url(页面背景图片) repeat
scroll!important;}
。logo
{background:url(题图logo图片) 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;}
。 wn{ background:url("正文标题栏下翻时的图片") no-
repeat center;}
。
feeds 。function{background:url("正文摘要结尾处菜单的图片") no-
repeat right;}
。links 。up{
background:url("面板标题栏上翻时图片");}
。
wn{ background:url(面板标题栏下翻时的图片);}
。links 。mid{
background:url(面板的背景图片);}
。photo 。mid{
background:url(形象照片处的背景图片);}
。
label 。mid{
background:url(自定义面板的背景图片);}
。calendar 。mid{
background:url("日历面板背景");}
。callboard 。
up{
background:url("公告栏标题栏上翻时图片");}
。 wn{ background:url("公告栏标题栏下翻时图片");}
。callboard 。mid{
background:url("公告栏背景图片");}
。
bodyBg{
background:url("正文背景图片");}
。bodyBottom{
background:url("正文背景图片");}
。gbook 。up{
background:url('留言板标题栏上翻时的图片') no-repeat;}
。
wn{ background:url('留言板标题栏下翻时的图片') no-repeat;}
。 ge{ background:url("正文文章页数图片") no-repeat center;}
(以上代码只适用于sina blog)图片地址必须是网络上已经存在的(这样才能读取图片),最好的方法是利用新浪的博客储存图片(这样你的图片就有地址了),方法很简单,先发表文章,把你的图片通过“图片剪切板”上传到博客,再点击“存为草稿”,这样文章不会发表出去,你再进入“草稿箱”,找出你的那篇文章进入编辑模式,点击左下角的“显示源代码”,你上传的图片地址就显示出来了。
小提示:如果只想改变模板的某一部分内容,就在其中的某一段代码贴图部位贴上图片即可。
。收起