學習要點:
1.響應式導航
主講教師:李炎恢
本節課我們開始設計第一個專案, 一個內訓公司的企業網站, 本節課學習響應式導航部分。
一.響應式導航
//基本導航元件+響應式
<nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <a href="#" class="navbar-brand" style="margin:0;padding:0;"><img src="img/logo.png" alt="瓢城企訓網"></a> <button type="button" class="navbar-toggle" 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> </div> <div class="collapse navbar-collapse" id="navbar-collapse"> <ul class="nav navbar-nav navbar-right" style="margin-top:0;"> <li class="active"> <a href="#"><span class="glyphiconglyphicon-home"></span> 首頁</a> </li> <li> <a href="#"><span class="glyphicon glyphicon-list"></span> 資訊</a> </li> <li> <a href="#"><span class="glyphicon glyphicon-fire"></span> 案例</a> </li> <li> <a href="#"><span class="glyphicon glyphicon-question-sign"></span> 關於</a> </li> </ul> </div> </div> </nav>