html 带Bootstrap 4模板的HTML
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 带Bootstrap 4模板的HTML相关的知识,希望对你有一定的参考价值。
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Bootstrap</title>
<!-- CDN Links -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
<!-- Local Links -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- *************************************************
Header Section
************************************************** -->
<!-- START Nav -->
<nav class="navbar navbar-expand-sm navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav ">
<!-- mr-auto -->
<a class="nav-item nav-link active" href="#">Home
<span class="sr-only">(current)</span>
</a>
<div class="dropdown">
<a class="nav-item nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown">
Dropdown Menu
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Menu 1</a>
<a class="dropdown-item" href="#">Menu 2</a>
<a class="dropdown-item" href="#">Menu 3</a>
</div>
</div>
<a class="nav-item nav-link disabled" href="#">Disabled</a>
</div>
<!-- <form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form> -->
</div>
</nav>
<!-- END Nav -->
<div class="container">
<div class="row">
<header>
</header>
</div>
<!-- End Row -->
</div>
<!-- End Container -->
<!-- *************************************************
Main Section
************************************************** -->
<div class="container">
<div class="row">
<main>
</main>
</div>
</div>
<!-- *************************************************
Footer Section
************************************************** -->
<div class="container">
<div class="row">
<footer>
</footer>
</div>
</div>
<!-- Local Links -->
<script src="js/jquery-3.2.1.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/script.js"></script>
<!-- CDN Links -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>
以上是关于html 带Bootstrap 4模板的HTML的主要内容,如果未能解决你的问题,请参考以下文章