您现在的位置: 续缘校内网 >> 续缘校内 >> 校内网教程 >> 缘正文
解决校内网背景白块的方法
作者:admin    缘来源:本站原创    点击数:    更新时间:2008-1-1    
.nav-right{display:none;}h4,#userFriendUniv .boxcont .note,#starttalkForm, #userActions LI,.opi-content,#widebar,#container, #content,#userStatus{border-top: 0px solid #008000; border-bottom-style: solid; border-bottom-width: 0px ;float:;border: 0px dashed #00ff;background: transparent; border-left-width: 0px; border-right-width: 0px;}#userFeed h3, #userPicture,#userActions,#userClass h3,#userProfile h3{background-color: transparent; border: 0 solid #FFFFFF; }/*更多代码请关注: www.xncss.com */ #spacePage #content{ background-image: url(); }

背景有白块的话只要设个版块背景透明就行了吧,可以自己量身做一段透明代码:

#header,#navigation,.box h3{background:transparent;}
类似这样子的,希望哪里透明就把版块标签添加到前面去便OK.

此外还有旁边的广告,想要隐藏的话只要用段类似的代码:

#annouce,#logo,.block,.linkblock {display:none;}

 

这个透明/隐藏代码适用于任何想要透明/隐藏的版块,只要对应的名称添加正确即可.

不清楚名称的话可以在自己页面上右击选"查看源文件"找到相应版块前的标签.

比如,相册对应的标签名称为#userAlbum,留言板对应的为#userTalk.

而相册啦日志啦加入的群啦班级啦留言板啦这些版块都属于h3类型.

想要统一处理的话可以用.box h3作为开头.

它们各自下属还有很多级分支,只要研究对名称就可以任意处置.

 

其实研究代码真的是一种乐趣啊~~DIY大好~~~

每调试正确一行后的喜悦心情只有尝试过的人才能体会到~

做出和别人完全不同风格的页面效果~心情不是一般的happy~~

 

不过估计很多人还是懒得折腾这些吧~

奉献出一段页面去广告去白块全透明的代码.

适用于只添加一个背景图案而未使用布局重排模版的页面.

一般人我不告诉~嘿嘿~~ :D

 


.box h3 {background:transparent;}
#userpage,#content,.box h3,.stat {background:transparent;}

.block {display:none;}
.linkblock {display:none;}
#annouce {display:none;}
#header,#logo {display:none;}
#header h1 {display:none;}
#header h2 {display:none;}
#header,#universityName {display:none;}
#navigation {background:transparent;]

#header {background:transparent;}
#header h2 {background:transparent;}
#userRelations .personIcon {background:transparent;}
#userRelations .personIcon td {background:transparent;}
#userVisitor {background:transparent;}
#userFriend {background:transparent;}
#userFriendUniv {background:transparent;}
.attention {background:transparent;}
#sidebar,#menu {background:transparent;}
#userProfile {background:transparent;}
#userBlog {background:transparent;}
#userBlog .info {background:transparent;}
#userPandora {background:transparent;}
#userGroup {background:transparent;}
#userTalk {background:transparent;}
#talk li {background:transparent;}
#userTalk .info {background:transparent;}
#permalink {background:transparent;}

 

如果还打算同时套用别的模版的话,上面的代码就不要用了,会冲突的.

换成使用这段:

 

#widebar,#container,#content,#userStatus{border-top: 0px solid #000000; border-bottom-style: solid; border-bottom-width: 0px ;float:;border: 0px dashed #00ff;background: transparent; border-left-width: 0px; border-right-width: 0px;}

缘录入:admin    责任编辑:admin 
  • 上一个缘:

  • 下一个缘:
  • 热门校内网代码
     
    关于续缘校内网 | 广告联系 | 续缘免责声明 | 站长统计
    Copyright 2007-2008 All Rights Reserved Powered by
    续缘校内网-校内网代码交流站
    续缘校内网:校内网代码,校内网涂鸦板代码,校内网教程等校内网相关产品集中地