clear與margin重疊
大家只需要根據(jù)代碼和表現(xiàn)形式來了解clear屬性帶來的重疊效果。不是習題?。〔皇橇曨}?。?!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>clear與margin重疊</title>
</head>
<body>
1.
<div style="background-color: #f5f5f5;">
<img src="http://img1.sycdn.imooc.com//53d60af3000171a002560191.jpg" style="float:left;">
<div style="clear:both; margin-bottom:100px;">clear:both;</div>
</div>
<div style="margin-top: 100px;">本文字離圖片的距離是?</div>
<br><br><br><br>2.
<div style="background-color: #f5f5f5; overflow: hidden;">
<img src="http://img1.sycdn.imooc.com//53d60af3000171a002560191.jpg" style="float:left; margin-bottom: 100px;">
</div>
<div style="margin-top: 100px;">本文字離圖片的距離是?</div>
</body>
</html>
請驗證,完成請求
由于請求次數(shù)過多,請先驗證,完成再次請求