Bootstrap(標準頂部導航條)
阿新 • • 發佈:2017-05-23
set boot port query for control prim link css
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>導航條</title>
<link rel="stylesheet" href="css/bootstrap.css">
<script src="js/jquery-3.2.1.js"> </script>
<script src="js/bootstrap.js"></script>
</head>
</head>
<body>
<div class="container">
<h2 class="page-header">導航條</h2>
<nav class="navbar navbar-default">
<div class="navbar-header">
<a href="#" class="navbar-brand">
<img src="img/resizeApi.png" >
</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">守望先鋒</a></li>
<li><a href="#">虛幻爭霸</a></li>
<li><a href="#" class="disabled">神之浩劫</a></li>
<li><a href="#">英雄聯盟</a></li>
</ul>
<!--向導航條裏添加表單時,要添加類為 導航裏的表單“navbar-form” -->
<form class="navbar-form navbar-right">
<div class="form-group">
<input type="text"class="form-control">
</div>
<button class="btn btn-primary">搜索</button>
</form>
<!--向導航條裏添加文本時,要添加類為 導航裏的表單“navbar-text” -->
<p class="navbar-text">遊戲介紹</p>
<a class="navbar-link">官網鏈接</a>
</nav>
</div>
</body>
</html>
Bootstrap(標準頂部導航條)