<!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" alt="">
</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>