老师,我的问题是本节的3-10编程练习。
来源:3-10 编程练习
慕斯0469344
2019-09-11 10:54:43
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> /*在此处补充代码*/ body{ background-color: #000; margin:0; padding:0; } header{ display: flex; justify-content: space-around; align-content: space-around; } .logo,.nav,.login{ display: inline-flex; } .nav{ color:#fff; font-size: 18px; list-style: none; } .nav li{ margin-left: 100px; } .login input{ width:80px; height: 50px; line-height: 50px; font-size: 18px; background-color: orange; color:#fff; margin-left: 100px; margin-top: 10px; } </style> </head> <body> <header> <div class="logo"> <img src="http://climg.mukewang.com/59feb59700019dab01910057.png" alt=""> </div> <ul class="nav"> <li>课程</li> <li>路径</li> <li>猿问</li> <li>手记</li> </ul> <div class="login"> <input type="button" value="登录"> <input type="button" value="注册"> </div> </header> </body> </html>
老师,我的问题如下:1,怎么去掉input标签中的自带的边框呢?2,老师,我总觉得我实现的有点牵强,请老师给出评价?
1回答
同学你好!
可以使用border: none;来掉input标签中的自带的边框,例如:
建议将背景颜色添加在header中:
可以将按钮高度设置小一点,添加一定的圆角,比较美观:
效果:
如果帮助到了你,欢迎采纳,祝学习愉快~
相似问题
回答 1
回答 1
回答 1
回答 1