首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

临时感觉IE6这个莫名的bug.

2012-10-26 
暂时感觉IE6这个莫名的bug...div styleposition:relativewidth:300pxheight:200pxbackground:#3e8f9

暂时感觉IE6这个莫名的bug...

<div style="position:relative;width:300px;height:200px;background:#3e8f9d;">
<div style="float:right;margin:10px 10px 0;height:170px;
width:280px;background:green;">
这个奇怪的层。
</div>
<p style="position:absolute;bottom:0;right:0;
width:50px;height:30px;background:#000;color:#fff">字呢?</p>
</div>



问题的关键是标红的宽度,设置小一些,使width+marginLeft+marginRight小于父元素内部宽度, p就回来了。


Mark吧....

热点排行