请问我的实现可以吗
来源:2-2 编程练习
CoffeePlayer
2020-05-31 18:03:53
<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8"> <style type="text/css"> *{ margin:0; padding:0; } .header{ width:100%; height:100px; background:#eee; overflow: hidden ; zoom: 1; } .logo{ float: left; padding-top:8px; margin-left:100px; } .nav{ float: right; } .nav ul { margin-right: 20px; } .nav ul li{ float: left; height:100px; line-height:100px; color:#000; font-weight: bold; width:80px; list-style: none; } </style> </head> <body> <div class="header"> <div class="logo"> <img src="http://climg.mukewang.com/595dd5120001736902000080.png"> </div> <div class="nav"> <ul> <li>前端</li> <li>后端</li> <li>移动端</li> <li>数据库</li> </ul> </div> </div> </body> </html>
1回答
好帮手慕粉
2020-05-31
同学你好,代码实现的是正确的。继续加油,祝学习愉快~
相似问题