选择器searchbox设置了背景图片后背景颜色继承了父标签的背景颜色,为什么
无标题文档*{margin:0;padding:0;font-size:12px;}body{background:#F5F5F5;}.wrap{width:1000px;margin:0 auto;}.top{width:100%;height:27px;background:url(top_bg.jpg) repeat-x;}.top-content{line-height:27px;margin-right:180px;}.top-content li{float:right;width:70px;list-style-image:url(arrow.jpg);}.top-content li a{text-decoration:none;color:#8E8E8E;}.top-content li a:hover{color:red;}.tel{font-family:"微软雅黑";font-size:22px;color:#C00;}.logo{background:#FFF;height:80px;}.leftlogo{float:left;}.rightlogo{color:#8E8E8E;float:right;width:300px;vertical-align:middle;margin-top:35px;}.rightlogo li{list-style-image:url(tel.jpg);}.topbar{height:40px;background:#776E67}.topbar li{float:left;list-style:none;line-height:40px;margin:0 20px;font-family:"微软雅黑";}.topbar li a{color:#FFF;font-size:16px;}.topbar-right{height:40px;}.searchbox{background-color:#FFF;width:200px;height:28px;margin-top:4px;margin-left:80px;background:url(search.jpg) no-repeat right center;}
|
免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。
版权声明:作者保留权利,不代表天盟立场。
|
|
|
|