abstrait:<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS中的浮動(dòng)</title> <style type="text/css"> ul li{list-st
<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS中的浮動(dòng)</title> <style type="text/css"> ul li{list-style: none;width: 120px;height: 50px;line-height: 50px;text-align: center;background-color: burlywood;margin: 0px 1px;float:left;} .box1{width:160px;height:160px;background-color: cadetblue;float:left;} .clear{clear:both;} </style> </head> <body> <ul> <li>Apple</li> <li>Orange</li> <li>Banana</li> <li>Pear</li> <li>Watermelon</li> </ul> <div class="clear"></div> <div class="box1">name1</div> <div class="box1">name2</div> <div class="box1">name3</div> </body> </html>
Professeur correcteur:天蓬老師Temps de correction:2019-04-10 10:25:15
Résumé du professeur:你的用戶名, 讓我想起了一部香港電影, 很經(jīng)典, 也希望你的代碼越寫越經(jīng)典, 浮動(dòng)是一個(gè)重要的頁面布局手段