
固定背景的透明贴代码(博客特效)
来源:http://levant.blog.hexun.com/7794465_d.html
1.
温馨提示: "600多篇博客特效"请点击图片→
在置顶日志的《博客特效总目录》里查找!
先在自定义模板中将所有有关背景颜色的设定去掉,上传自己喜欢的头图`标题栏背景和背景图片.背景图片最好较大,依自己稀饭~
保存后进入自定义css,找到如下代码:
body {
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
width: 956px;
font-size: 12px;
color: #8F8F8F;
background-image:url(http://你的图片链接地址.jpg);background-repeat:repeat;background-position:center top;+++++}#navi_bar a:link {
/*导航条文字颜色*/
其中+++++在代码中没有的,在此处添加一下代码
background-attachment:fixed;
注意分号一定不要落掉~
background-image:url(http://你的图片链接地址.jpg);background-repeat:repeat;background-position:center top;background-attachment:fixed;}#navi_bar a:link {
/*导航条文字颜色*/
固定背景就做好了.
下面一步,把边框去掉~
把自己的css拷到文本编辑中,用查找替换功能把css中
border-top-width: 1px; 换成 border-top-width: 0px;
border-right-width: 1px; 换成 border-right-width: 0px;
border-bottom-width: 1px; 换成border-bottom-width: 0px;
border-left-width: 1px; 换成border-left-width: 0px;
意思就是边框粗细变成0,然后将新的css替换原来自定义css中的所有代码保存就可以了~~.



