<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Case</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<img src="Logo.jpg" alt="HTML5 Icon" width="250" height="80">
</div>
<ul class="nav navbar-nav">
<li><a href="/index.php"> <br><br> Home</a></li>
<li><a href="/page2.php">Game</a></li>
<li><a href="/page3.php">Whats Yours</a></li>
<li><a href="/page4.php"><br>Profits</a></li>
<li><a href="/page5.php"><br>Proof</a></li>
<li><a href="/page6.php"><br>Getting<br> Started</a></li>
<li><a href="/page7.php"><br><br>About Us</a></li>
</ul>
</div>
</nav>
我有这个标题/菜单导航栏,在我的电脑上有一个显示家庭,游戏等的直条。然而,当我打开它时,我在手机上意识到,菜单会向下变成一个列表,例如:
Home
Game
Whats yours
etc
如何让它对浏览器做出响应,因此它会保持一条直线。
答案 0 :(得分:0)