码迷,mamicode.com
首页 > 其他好文 > 详细

ie6/7下给table的行tr 添加position:relative;的奇特bug,求大神告知

时间:2014-09-15 19:20:59      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   os   ar   strong   2014   

代码: 

<!DOCTYPE html>
<html>
<head>
    <title>ie6/7下给table的行tr 添加position:relative;的奇特bug,求大神告知</title>
    <style>
        * { padding: 0; margin: 0; }
        table tr { position: relative;float:left;overflow:hidden;z-index:1;height:100%;width:100%;
        }
    </style>
</head>
<body>
    <table>
        <tr><td>1</td><td>2</td></tr>
        <tr><td>3</td><td>4</td></tr>
    </table>
</body>
</html>

ie8见图:bubuko.com,布布扣               bubuko.com,布布扣

ie6、7见图:bubuko.com,布布扣  bubuko.com,布布扣

 

对比之下在按F12后查看对比图,ie6/7焦点重合了,不知道是不是浏览器问题

求大神指教!!!!!!!!

ie6/7下给table的行tr 添加position:relative;的奇特bug,求大神告知

标签:style   blog   http   color   io   os   ar   strong   2014   

原文地址:http://www.cnblogs.com/yc-code/p/3973377.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!