tongtongchuangye 2015-03-23 04:27 采纳率: 100%
浏览 1806
已采纳

IE6中CSS显示不兼容问题

其他浏览器下图片说明
IE6这样显示
图片说明
CSS
#content_index .ntc{width:321px;border-right:1px #CCCCCC solid;height:260px;float:left;}
.tab {overflow: hidden;width: 321px;height: 52px;cursor: pointer;}
.tab li {float: left;width: 160px;text-align: center;line-height: 50px; overflow: hidden;
font-size:18px; height:50px; border-bottom:2px solid #6699FF; color:#999999;}
.tab li.on { color:#000000;border-bottom:2px solid #FF9933;}
.con {width: 321px;height:216px; float:left; }
.con ul{float:left:width:250px;height:186px; margin:15px 35px; }

.con ul li{float:left; width:250px;height:38px; line-height:38px; border-bottom:1px #CCCCCC dotted; }
.con ul li a{ display:block;float:left; font-size:13px; color: #666666; text-indent:12px;background: url(dt-11.gif) left no-repeat; }
.con ul li a:hover{color: #FF6600;}
.con ul li em{ float:right;}
.con ul span{float:right;height:40px;width:250px; line-height:40px; color: #FF9933; font-family: Verdana, Arial, Helvetica, sans-serif;}
.con ul span a{color:#FF9933; float:right; background:none;}
/*新闻中心*/
#content_index .anews{width:482px;border-right:1px #CCCCCC solid;height:260px;float:left;}
.anews h3{width:482px;height:50px;border-bottom:#6699FF 2px solid; font-size:18px; color:#000000; line-height:50px; text-indent:30px;}
.anews ul{float:left:width:410px;height:186px; margin:15px 35px;}

.anews ul li{ width:410px;height:38px; line-height:38px; float:left; border-bottom:1px #CCCCCC dotted; }
.anews ul li a{ display:block;float:left; font-size:13px; color: #666666; text-indent:14px;background: url(diantb.jpg) left no-repeat; }
.anews ul li a:hover{color: #FF6600;}
.anews ul li em{ float:right;}
.anews ul span{float:right;height:40px;width:410px; line-height:40px; color: #FF9933; font-family: Verdana, Arial, Helvetica, sans-serif; }
.anews ul span a{color:#FF9933; background:none; float:right;}

.index_lg{width:195px;height:260px;float:left;}
.lg{width:195px;height:50px;border-bottom:#FF9933 2px solid; float:left; font-size:18px; color:#000000; line-height:50px; text-align:center;}
.index_lg ul{width:165px;height:190px;margin:15px 15px;margin-bottom:0px;float:left; }

.index_lg ul li{ float:left;width:165px; height:39px; line-height:39px; text-align:center;}
.index_lg ul li a{ display:block; }
.index_lg ul li a:hover{ background:url(dt-11.gif) right no-repeat;}
.index_lg ul span{float:left;width:165px;height:40px; line-height:40px; border-top:1px #999999 dotted;display:inline; }
.index_lg ul span a{width:55px;height:40px; margin:0px;padding:0px;float:left; line-height:40px; text-align:center; color:#FF9933;}
.index_lg ul span a:hover{ background:none;}

求大神们指教

  • 写回答

1条回答 默认 最新

  • 大河行脚 2015-03-23 04:40
    关注

    你的宽度用百分比,你试试;
    还有,现在浏览器用IE6的好像不多了;

    如果回答对您有帮助,请采纳

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Arcgis相交分析无法绘制一个或多个图形
  • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
  • ¥30 3天&7天&&15天&销量如何统计同一行
  • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
  • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型
  • ¥15 vs2019中数据导出问题
  • ¥20 云服务Linux系统TCP-MSS值修改?
  • ¥20 关于#单片机#的问题:项目:使用模拟iic与ov2640通讯环境:F407问题:读取的ID号总是0xff,自己调了调发现在读从机数据时,SDA线上并未有信号变化(语言-c语言)