+ -
当前位置:首页 → 问答吧 → css 背景图片因为流氓广告条错位的问题

css 背景图片因为流氓广告条错位的问题

时间:2011-12-12

来源:互联网

正常情况下 打开网站是正常的 但是当浏览器顶部出现广告条的时候 就会错位

body {background: url("62ke.com_bg.jpg //图片片段1") 50% 0 #2e2923 no-repeat;font-family: Tahoma;font-size: 12px;color: #87795f;line-height: 22px;font-family: "宋体";}
h1, h2 {display: none;}
a {overflow: hidden;text-decoration: none;}
a img{
border:0
}
a:hover {overflow: hidden;text-decoration: underline;}
.clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}
.clearfix {zoom: 1;}
.mainbox {background: url("62ke.com_top.jpg//图片片段2") right top #2e2923 no-repeat;width: 1000px;margin: 0 auto;min-height: 1000px;position: relative;}
.vflash {width: 700;height: 400px;position: absolute;top: 19px;left: 257px;}
.leftside {width: 267px;height: 1020px;float: left;}
.none {display: none;}[color=#FF0000][/color]

我是新手 哪位大虾知道解决方法不

作者: dff5931814   发布时间: 2011-12-12

上完整代码

作者: semanwmj   发布时间: 2011-12-12