IE6/7下margin定位元素绝对定位元素重叠修复实例页面
代码:
CSS代码:
.box{width:350px;} .abs{position:absolute;} .ml140{margin-left:140px;}
HTML代码:
<div class="box"> <span class="abs"><img src="//image.zhangxinxu.com/image/study/s/s128/mm1.jpg" /></span> <div class="ml140">某豆友:"昨天被车撞了,还没等司机下车,我就赶紧跑了,我这样做对吗?"。楼下众豆友:"LZ真是捡了条命啊!!!!!!!!!!"</div> </div>
效果:
某豆友:"昨天被车撞了,还没等司机下车,我就赶紧跑了,我这样做对吗?"。楼下众豆友:"LZ真是捡了条命啊!!!!!!!!!!"