我從http://getbootstrap.com/版本4.0手動下載引導程序,但我不知道爲什麼我的導航,XS,面板類不工作,我在boostrap.min.css中搜索XS,但沒有找到它。這是什麼問題,但sm,md,lg類都工作正常。我不知道爲什麼有些類正在工作&爲什麼有些類不工作,我正式下載&樣式表路徑也是完美的,iam從過去3周修復是它任何解決方案。 這裏是我的代碼:爲什麼我的引導程序導航不起作用?
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-compatible" Content="IE-edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="fa fa-align-justify"></span>
</button>
<span class="navbar-brand">Diffie</span>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="#">Link1</a></li>
<li><a href="#">Link2</a></li>
<li><a href="#">Link3</a></li>
<li><a href="#">Link4</a></li>
<li><a href="#">Link5</a></li>
</ul>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-6">
<p class="hidden-xs"><b>AAA Ipsum is simply dummy text of the printing</b> and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
<div class="col-sm-6">
<p>AAA Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-4 col-lg-3">
<div style="width: auto;height: auto;background-color: gray;color: white;padding: 5px;margin-bottom: 10px;">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div style="width: auto;height: auto;background-color: gray;color: white;padding: 5px;margin-bottom: 10px;">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div style="width: auto;height: auto;background-color: gray;color: white;padding: 5px;margin-bottom: 10px;">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div style="width: auto;height: auto;background-color: gray;color: white;padding: 5px;margin-bottom: 10px;">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div style="width: auto;height: auto;background-color: gray;color: white;padding: 5px;margin-bottom: 10px;">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div style="width: auto;height: auto;background-color: gray;color: white;padding: 5px;margin-bottom: 10px;">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div style="width: auto;height: auto;background-color: gray;color: white;padding: 5px;margin-bottom: 10px;">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div style="width: auto;height: auto;background-color: gray;color: white;padding: 5px;margin-bottom: 10px;">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</div>
</div>
</div>
</div>
</body>
</html>
這有什麼做用PHP。順便說一句,你應該谷歌自舉網格系統。你的網格根本不正確。據我所知,網格系統基於12點網格系統。你實際上是一排col-6的8倍。不知道引導程序如何支持這一點,它可以正確顯示,但我不認爲它的良好做法。 – Twinfriends