新浪blog的代码是怎样添加的?

2024-05-02 08:54

1. 新浪blog的代码是怎样添加的?

分类:  电脑/网络 >> 互联网 
   问题描述: 
  
 新浪blog的代码是怎样添加的?如何在新浪blog上添加代码,添加代码的位置是怎样的,为什么我添加完了,总不好使,是不是位置错了。
 
   解析: 
  
 控制面板 → 维护首页内容 → 点击进入自定义空白面板编辑界面 → 新增一个空白自定义面板 → 面板标题随便写(建议写你要修改什么部分代码的标题,例:背景 banner等,方便日后修改) → 在显示源代码方框内打勾 → 开始粘贴下列代码 → 完毕后把显示源代码方框内的勾打掉 → 点击返回 → 控制面板 → 定制首页的内容板块 → 点击添加模块 → 现在会在自定义面板下出现你刚才编辑好的面版名称 → 选中后提交 → 刷新你的个人首页即可 我的代码的使用基本上都这样放进我的首页的。
 
  
 
 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;}
 
 .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(形象照片处的背景图片);}
 
 bel .mid{
 
 background:url(自定义面板的背景图片);}
 
 .calendar .mid{
 
 background:url("日历面板背景");}
 
 .callboard .up{
 
 background:url("blog.sina/pic/4515a7bd0200031p");}
 
 .callboard .down{
 
 background:url("blog.sina/pic/4515a7bd0200031l");}
 
 .callboard .mid{
 
 background:url("公告栏背景图片");}
 
 .bodyBg{
 
 background:url("正文背景图片");}
 
 .bodyBottom{
 
 background:url("正文背景图片");}
 
 .gbook .up{
 
 background:url('留言板标题栏上翻时的图片') no-repeat;}
 
 .gbook .down{
 
 background:url('留言板标题栏下翻时的图片') no-repeat;}
 
 .feeds .page{
 
 background:url("正文文章页数图片") no-repeat center;}
 
  以上代码我都试过,均可用。红色的部分是必须要有的,其他可以任你自己的需要进行选择。如果你只想改背景图片,你就可以输入: 
 
 body
 
 {background:url(页面背景图片) repeat
 
 scroll!important;}
 
  也可以两个或者两个以上一起放进一个空白面板

新浪blog的代码是怎样添加的?