Heim >Web-Frontend >HTML-Tutorial >div+css的问题,在线等_html/css_WEB-ITnose
http://www.pjspw.com/productwindow-27.html,
在ie浏览器上浏览正常,但sogou浏览器,和其他的中间就显示一大块空白,请大侠指教,一直找不出来原因
<style>.main{overflow:hidden;border:1px solid #ccc;}.l{float:left;width:200px;height:100px;clear:left;background-color:#aaa;}.r{float:right;width:200px;height:100px;clear:right;background-color:#eee;}</style><body><div class = "main"> <div class = "l">1</div> <div class = "l">2</div> <div class = "r">3</div></div><div class = "main"> <div class = "l">1</div> <div class = "r">3</div> <div class = "l">2</div></div>
把这两句话删掉即可恢复正常
满意请结贴
你多写了一个p1left,明白?
我试一下,可以马上结贴!谢谢各位