nav

abbr.navigate sailing; navigation sailing; navigational sailing; navigable navigable

justified

英[?d??st?fa?d] US[?d??st??fa?d]

adj. Justifiable, reasonable; for a reason

v. Adjust; prove... justified (past tense and past participle of justify)

Bootstrap nav-justified styles syntax

Function: For tabs that are aligned at both ends, on a screen larger than 768px, the .nav-justified class can easily make the tabs or capsule labels appear to have the same width. On small screens, navigation links appear stacked.

Bootstrap nav-justified styles example

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <title>Bootstrap 實例 - 標(biāo)簽頁與膠囊式標(biāo)簽頁</title>
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
  <h2>兩端對齊的標(biāo)簽頁</h2>
  <p>在大于 768px 的屏幕上,通過 .nav-justified 類可以很容易的讓標(biāo)簽頁或膠囊式標(biāo)簽呈現(xiàn)出同等寬度。在小屏幕上,導(dǎo)航鏈接呈現(xiàn)堆疊樣式。</p>
  <ul class="nav nav-tabs nav-justified" role="tablist">
    <li class="active"><a href="#">Home</a></li>
    <li><a href="#">HTML</a></li>
    <li><a href="#">CSS</a></li>
    <li><a href="#">About</a></li>
  </ul>
  <br>
  <ul class="nav nav-pills nav-justified" role="tablist">
    <li class="active"><a href="#">Home</a></li>
    <li><a href="#">HTML</a></li>
    <li><a href="#">CSS</a></li>
    <li><a href="#">About</a></li>
  </ul>
</div>

</body>
</html>
Run instance ?

Click the "Run instance" button to view the online instance