ie6的兼容问题,下面的代码设置完后在ie6底部会多出一块空白,怎么解决啊

[复制链接]
查看11 | 回复3 | 2011-9-8 10:10:26 | 显示全部楼层 |阅读模式
divclass=\"tu\"
aclass=\"thumbnails\"href=\"#\"
imgsrc=\"1.img\"border=\"0\"/br/
spanimgsrc=\"2.img\"/br/
/span/a
/div
styletype=\"text/css\"
.thumbnails{
        position:relative;
        width:139px;
        z-index:0;
        float:left;
}
.thumbnailsimg{
        padding:3px;
        width:133px;
        height:130px;
}
.thumbnails:hover{
        background-color:transparent;
        z-index:50;
        color:#F63;
        text-decoration:none;
}
.thumbnailsspan{/*CSSforenlargedimage*/
position:absolute;
        background-color:lightyellow;
        padding:5px;
        left:-10000px;
        border:1pxdashedgray;
        display:none;
        color:black;
        text-decoration:none;
}
.thumbnailsspanimg{/*CSSforenlargedimage*/
border-width:0;
        width:270px;
        height:270px;
        padding:2px;
}
.thumbnails:visitedspan{
        display:block;

}
.thumbnails:hoverspan{/*CSSforenlargedimageonhover*/
visibility:visible;
        top:0;
        left:160px;/*positionwhereenlargedimageshouldoffsethorizontally*/
        text-decoration:none;
        display:block;
}
/style
回复

使用道具 举报

千问 | 2011-9-8 10:10:26 | 显示全部楼层
为啥还用ie6?










<h4class=\"ask\">追问


做网页当然要测试ie6,ie5都要测试的
回复

使用道具 举报

千问 | 2011-9-8 10:10:26 | 显示全部楼层
不懂了~~
回复

使用道具 举报

千问 | 2011-9-8 10:10:26 | 显示全部楼层
不同浏览器对css的解析不一样。
例如:
.test{
margin-top:10px;//一般浏览器适用,
_margin-top:8px;//只有ie6适用。
}这样的话,class=\'test\'的标签在其他浏览器下是距上10像素,在IE6里是距上8像素。
查一下你的代码,自己加一下,只适合IE6的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行