margin负值引起的层级(z-index)问题
时间:2009年05月26日作者:愚人码头查看次数:5,151 views评论次数:3
先来看这么一段代码:
<div style="height:100px;width:200px; border: solid 1px black; "> <div style="background-color:Red;margin-top: -5px "> <a href="http://www.css88.com/">愚人码头</a></div> </div>
在IE6和IE7下,内层的容器被外层覆盖,如图所示:
;(转载请注明出处:WEB前端开发 http://www.css88.com/)
在IE8和ff下,外层的容器被内层覆盖,如图所示:
;(转载请注明出处:WEB前端开发 http://www.css88.com/)


最新评论
非常好
Post:2012-02-08 21:59:12@linda, 没见过世面吧你,老板才8 »
Post:2012-02-07 18:11:22码头哥,换个链接,http://www.ijo »
Post:2012-02-07 17:18:45currying: 科里化
Post:2012-02-06 15:51:18貌似在线api已经下不了了
Post:2012-02-06 11:25:19图片被防盗链了,哈哈~
Post:2012-02-06 10:29:45对你造成的不便非常抱歉,简易你卸 »
Post:2012-02-05 14:45:16您好,请问air版本的自动更新怎么去 »
Post:2012-02-05 12:06:24