摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>導(dǎo)航條</title> <meta name="viewport" content=&quo
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>導(dǎo)航條</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style <style type="text/css"> *{ padding:0; margin:0; } .shape{ margin:20px auto; width:1000px; height:40px; background-color:#6495ED; list-style:none; } .shape li{ width:25%; text-align:center; padding-top:8px; padding-bottom:8px; float:left; } .shape li a{ font-size:18px; display:block; width:100%; text-decoration:none; color:white; font-weight:bold; } .shape li:hover{ background-color:#c00; } </style> </head> <body> <ul class="shape"> <li><a href="#">首頁</a></li> <li><a href="#">新聞</a></li> <li><a href="#">聯(lián)系</a></li> <li><a href="#">關(guān)于</a></li> </ul> </body> </HTML>
批改老師:天蓬老師批改時間:2019-06-13 17:03:27
老師總結(jié):這個簡單的導(dǎo)航, 其實內(nèi)部有很多知識點的, 多做幾次