折叠内容出了怎么弄都有点问题,给看看呗
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>慕课网bootstrap页面服作业</title> <link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"> <link rel="stylesheet" href="./css/style.css"> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script> <script src="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/js/bootstrap.js"></script> </head> <style> #header { width: 100%; height: 65px; background-color: #5d4d33; } #header .container-fluid { width: 90%; } #header .navbar-nav { margin-left: 30px; } #header .navbar-nav .active > a { background: #f07918; } #header .navbar-nav li { border-left: 1px solid #77674b; } #header .navbar-nav li a { padding-top: 20px; height: 65px; color: white; } #header .navbar-nav li a:hover { background: #f07918; } #header .navbar-right .navbar-nav a { padding-left: 20px; padding-right: 20px; } </style> <body> <nav id="header" class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="navbar-collapse"> <span class="sr-only">切换导航</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a href="#" class="navbar-brand"> <img src="https://s1.ax1x.com/2018/12/06/F1NMMd.png"> </a> </div> <div class="navbar-left"> <ul class="nav navbar-nav collapse navbar-collapse" id="navbar-collapse"> <li class="active"> <a href="#">首页</a> </li> <li> <a href="#">生日 <b class="caret"></b> </a> </li> <li> <a href="#">婚礼 <b class="caret"></b> </a> </li> <li> <a href="#">专用 <b class="caret"></b> </a> </li> <li> <a href="#">商铺 <b class="caret"></b> </a> </li> </ul> </div> <div class="navbar-right"> <ul class="nav navbar-nav"> <li><a href="#"> <span class="glyphicon glyphicon-search"></span> </a></li> <li><a href="#"> <span class="glyphicon glyphicon-user"></span> </a></li> <li><a href="#"> <span class="glyphicon glyphicon-shopping-cart"></span> </a></li> </ul> </div> </div> </nav> <section id="banner"></section> <section id="gallery"></section> <section id="subscribe"></section> <section id="footer-bottom"></section> <footer id="footer"></footer> </body> </html>
0
收起
正在回答 回答被采纳积分+1
3回答
响应式开发与常用框架 2018
- 参与学习 人
- 提交作业 2198 份
- 解答问题 5012 个
如果你有web端基础,既想进阶,又想进军移动端开发,那就来吧,我们专题为你带来的课程有HTML5、CSS3、移动基础、响应式、bootstrap、less等,让你在前端道路上畅通无阻!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星