为什么这段css代码在各大浏览器都显示正常 唯独IE6?
chrome等浏览器IE6我的css代码cssstyle:@charset"utf-8";.bj{background-image:url(../images/bg.jp...
chrome等浏览器
IE6
我的css代码
css style:@charset "utf-8";.bj {background-image: url(../images/bg.jpg);background-repeat: no-repeat;height: 770px;width: 1024px;margin: auto;}.bj#xh{background-image: url(../images/xhjs.jpg);background-repeat: no-repeat;height: 1050px;width: 1024px;margin: auto; }.bj .header {float: left;width: 1024px;height: 75px;margin-top: 30px;}.bj .header header #logo {float: left;width: 250px;padding-left: 35px;padding-top: 10px;height: 60px;}.bj .center {height: 220px;padding-top: 500px;background-image: url(../images/photo_bg.gif);background-repeat: no-repeat;background-position: bottom;width: 990px;margin-right: auto;margin-left: auto;padding-left: 40px;}.bj .center .img {padding-top: 50px;width: 945px;height: 200px;}.bj .center .img #demo table tr #marquePic1 table {}.bj .center .img #demo table tr #marquePic1 table tr td a img {padding-right: 5px;padding-left: 5px;height: 130px;width: 200px;}nav {height: 70px;width: 550px;float: right;background-image: url(../images/nav_bg.png);background-repeat: no-repeat;background-position: 25px;margin-right: 30px;}.bj .header header nav ul li a {color: #FFF;text-decoration: none;font-size: 14px;}.bj .header header nav ul {width: 550px;}.bj .header header nav ul li a:hover {color: #CC0C0C;}.bj .header header nav ul li {float: left;padding-left: 5px;font-size: 12px;color: #FFF;text-decoration: none;list-style-type: none;font-family: "黑体";border-right-width: 1px;border-top-color: #999;border-right-color: #999;border-bottom-color: #999;border-left-color: #999;line-height: 20px;padding-right: 5px;}.bj .header header #logo {float: left;background-image: url(../images/logo.png);background-repeat: no-repeat;background-position: 30px 8px;}.bj .center .img #demo table tr #marquePic1 table tr td a {color: #000;text-decoration: none;}body {margin: 0px;padding: 0px;background-color: #C26E02;}#jieshao_bg .center #font {background-image: url(../images/photo_2.gif);background-repeat: no-repeat;} 展开
IE6
我的css代码
css style:@charset "utf-8";.bj {background-image: url(../images/bg.jpg);background-repeat: no-repeat;height: 770px;width: 1024px;margin: auto;}.bj#xh{background-image: url(../images/xhjs.jpg);background-repeat: no-repeat;height: 1050px;width: 1024px;margin: auto; }.bj .header {float: left;width: 1024px;height: 75px;margin-top: 30px;}.bj .header header #logo {float: left;width: 250px;padding-left: 35px;padding-top: 10px;height: 60px;}.bj .center {height: 220px;padding-top: 500px;background-image: url(../images/photo_bg.gif);background-repeat: no-repeat;background-position: bottom;width: 990px;margin-right: auto;margin-left: auto;padding-left: 40px;}.bj .center .img {padding-top: 50px;width: 945px;height: 200px;}.bj .center .img #demo table tr #marquePic1 table {}.bj .center .img #demo table tr #marquePic1 table tr td a img {padding-right: 5px;padding-left: 5px;height: 130px;width: 200px;}nav {height: 70px;width: 550px;float: right;background-image: url(../images/nav_bg.png);background-repeat: no-repeat;background-position: 25px;margin-right: 30px;}.bj .header header nav ul li a {color: #FFF;text-decoration: none;font-size: 14px;}.bj .header header nav ul {width: 550px;}.bj .header header nav ul li a:hover {color: #CC0C0C;}.bj .header header nav ul li {float: left;padding-left: 5px;font-size: 12px;color: #FFF;text-decoration: none;list-style-type: none;font-family: "黑体";border-right-width: 1px;border-top-color: #999;border-right-color: #999;border-bottom-color: #999;border-left-color: #999;line-height: 20px;padding-right: 5px;}.bj .header header #logo {float: left;background-image: url(../images/logo.png);background-repeat: no-repeat;background-position: 30px 8px;}.bj .center .img #demo table tr #marquePic1 table tr td a {color: #000;text-decoration: none;}body {margin: 0px;padding: 0px;background-color: #C26E02;}#jieshao_bg .center #font {background-image: url(../images/photo_2.gif);background-repeat: no-repeat;} 展开
4个回答
展开全部
.bj .header header #logo .bj .header header nav ul li 这两个class里面都加下 zoom:1看看 让其触发haslyout
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
样式有问题,但你贴一堆的样式都找不见你怎么对应 的呢,没法找问题在那!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这不明显是你的导航ie6就没读到。。去改改导航IE6应该就没问题
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询