如何把百度空间TAB透明化而不失去超连接?

来源:百度知道 编辑:UC知道 时间:2024/07/12 23:57:06
如何把百度空间TAB透明化而不失去超连接?
参数都不变,鼠标经过是还是可以进入连接、以下是原代码。
#tab{top:370px;background:repeat-x;left:150px; margin:8px 0px 0px 0px}
#tab a{color:none;text-decoration:none;font-size:12px;width:100px;text-align:center;font-weight:bolder;line-height:50px;height:50px;}
#tab span{display:none}
#tab a:visited{color:none;text-decoration:none;font-size:14px;border-style:solid;border-width:1px;width:100px;text-align:center;font-weight:bolder;border-style:outset;border-width:2px}
#tab2 {background:#33CC70}
#tab2 span{color:#000000;font-size:12px;font-weight:bold}
#tab2 a{font-size:18px}.mod{margin-bottom:-18px!important}
#tab2 a:link{color:#045c44}
#tab2 a:visited{color:#045c44}

事实上不建议使用这样的背景加透明tab菜单
因为不同的浏览器对于每个tab选项宽度的解释是不同的
如果透明的话,选项一旦对歪就不行了

如果想做成透明的,颜色应该是
color:#transparent,transparent
不过实验证实,IE可以正常透明,Firefox不能实现透明效果