请老师查看是否正确?
来源:2-2 编程练习
今日视线
2019-06-29 16:18:14
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS布局</title> <style type="text/css"> *{ margin: 0; padding:0; } /*此处写代码*/ .header{ width: 100%; height: 100px; } .header .logo{ float: left; width: 200px; height: 80px; padding-top:8px; } .header .image{ float: right; } .header .image ul{ width: 300px; height: 100px; padding-right: 80px; } .header .image ul li{ float: left; list-style-type: none; line-height: 100px; font-weight: bolder; font-size: 15px; margin-left: 35px; } </style> </head> <body> <!-- 此处写代码 --> <div class="header"> <div class="logo"><img src="http://climg.mukewang.com/595dd5120001736902000080.png"></div> <div class="image"> <ul> <li>前端</li> <li>后端</li> <li>移动端</li> <li>数据库</li> </ul> </div> </div> </body> </html>
1回答
同学你好!
代码效果实现正确哦
如果帮助到了你 欢迎采纳 祝学习愉快~
相似问题