版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/gc025/article/details/53819891
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">//编码方式
<meta http-equiv="X-UA-Compatible" content="IE=edge">//兼容ie-edge方式
<meta name="viewport" content="width=device-width, initial-scale=1">//视口,移动端
<title>Bootstrap的HTML标准模板</title>//标题
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">//bootstrap的css文件引入
<!--你自己的样式文件 -->
<link href="css/your-style.css" rel="stylesheet"> //自己的css文件
<!-- 以下两个插件用于在IE8以及以下版本浏览器支持HTML5元素和媒体查询,如果不需要用可以移除 -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<h1>Hello, world!</h1>//h1标签
<!-- 如果要使用Bootstrap的js插件,必须先调入jQuery -->
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script>//必须的jqueryljs调用
<!-- 包括所有bootstrap的js插件或者可以根据需要使用的js插件调用 -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> //bootstrap.js调用
</body>
<html lang="en">
<head>
<meta charset="utf-8">//编码方式
<meta http-equiv="X-UA-Compatible" content="IE=edge">//兼容ie-edge方式
<meta name="viewport" content="width=device-width, initial-scale=1">//视口,移动端
<title>Bootstrap的HTML标准模板</title>//标题
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">//bootstrap的css文件引入
<!--你自己的样式文件 -->
<link href="css/your-style.css" rel="stylesheet"> //自己的css文件
<!-- 以下两个插件用于在IE8以及以下版本浏览器支持HTML5元素和媒体查询,如果不需要用可以移除 -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<h1>Hello, world!</h1>//h1标签
<!-- 如果要使用Bootstrap的js插件,必须先调入jQuery -->
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script>//必须的jqueryljs调用
<!-- 包括所有bootstrap的js插件或者可以根据需要使用的js插件调用 -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> //bootstrap.js调用
</body>
</html>
上面的引入文件都是cdn的,可以自己下载到本地引用。