怎么把背景变成透明的

[复制链接]
查看11 | 回复0 | 2009-1-30 06:28:38 | 显示全部楼层 |阅读模式
就是把背景变成透明的OK谢谢~~!!!

                                                                                                除全局固定背景外,博客首页全透明 代码如下: <STYLE type=text/css> .bodytop{background:#transparent} .banner{ background:#transparent} .menu{ background:#transparent} .bodybg{ background:#transparent} .zone{ background:#transparent} .bodyBottom{background:#transparent} .feeds .up{background:#transparent} .feeds .down{background:#transparent } .feeds .function{background:#transparent} .feeds .page{background:#transparent} .aList .sysHand .up{background:#transparent} .aList .sysHand .down{background:#transparent} .gbook .sysHand .up{background:#transparent} .gbook .sysHand .down{background:#transparent} .gbook .title{display:none;} .logo{display:none;} .gbook .page{background:#transparent } .gbook .login{background:#transparent} .box_1{background:#transparent} .box_2{background:#transparent} .calendar{background:#transparent} .calendar .mid{background:#transparent} .calendar .top{background:#transparent} .calendar .title{background:#transparent} .calendar .bold td{background:#transparent} .calendar .bottom{background:#transparent} .callboard .mid{background:#transparent} .callboard .mid img{background:#transparent} .callboard .front{background:#transparent} .callboard .back{background:#transparent} .callboard table{background:#transparent} .callboard .up{background:#transparent} .callboard .down{background:#transparent } .sysBr{background:#transparent} .sysBr210{background:#transparent} .label{background:#transparent} .label .mid{background:#transparent} .label .top{background:#transparent} .label .bottom{background:#transparent} .photo{background:#transparent} .photo .mid{background:#transparent} .photo .image{background:#transparent} .photo .top{background:#transparent} .photo .bottom{background:#transparent} .links{background:#transparent} .links .up{background:#transparent} .links .down{background:#transparent } .links .mid{background:#transparent} body{background:url("全局背景大图片URL地址") repeat fixed!important;} .add{background:#transparent} .add .ico{background:#transparent} </STYLE> 代码说明: 如果想把内容介面搞成半透明的蒙纱效果,把.bodybg{ background:#transparent}替换为.bodyBg {background:#transparent;filter:progid:DXImageTransform.Microsoft.gradient(GradientType =\'1\',enabled=\'true\',startColorstr=#AAFFFFFF, endColorstr=#AAFFFFFF);} ------------- 添加方法: 下面介绍两种方法,请你根据情况选用一种比较适合的方法来添加代码。 第一种方法: 1、控制面板--首页内容维护--定义空白模板--新建,创建模块标题,显示源代码粘贴代码(粘贴代码前,在普通模式下打一个空格,然后再进入源代码编辑模式,这时你会看到源代码中已经有一行代码了( <DIV> </DIV> ),这时你再将自己的代码粘贴到它的下面即可,因为CSS代码粘贴到新建立的模块中,没有别的内容,不会显示的)--保存并返回; 2、控制面板--定制我的首页--点添加模块--点选创建好的模块标题--勾上并保存,移动新建面板位置--保存设置。我们做这一步的目的是将建立好的模块在博客个人首页里呈现出来。 ===================================第二种方法: 直接把以上代码粘贴到以前你建立的并且现在正在使用模块中,显示源代码粘贴代码,点击保存即可!                                        
提问者对答案的评价:
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行