1 Bootstrap相对路径环境配置
1.1下载Bootstrap
```
下载地址:<https://v3.bootcss.com/>
```
1.2把Bootstrao的css、fonts、js导入项目中
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/f2cf9d3e45c0deef845cbf205332d4d4.png)
1.3项目目录结构如下
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/5e124f3e4e262e735aeacb655fd23993.png)
1.4 基本模板
<html lang="en">
<head>
<meta charset="utf-8">
<!--使用X-UA-Compatible来设置IE浏览器兼容模式 最新的渲染模式-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--
viewport表示用户是否可以缩放页面;
width指定视区的逻辑宽度;
device-width指示视区宽度应为设备的屏幕宽度;
initial-scale指令用于设置Web页面的初始缩放比例
initial-scale=1则将显示未经缩放的Web文档
-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap的HTML标准模板</title>
<!-- 载入Bootstrap 的css -->
<link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<h1>Hello, world!</h1>
<!-- 如果要使用Bootstrap的js插件,必须先调入jQuery -->
<script src="js/jquery-3.4.1.js"></script>
<!-- 包括所有bootstrap的js插件或者可以根据需要使用的js插件调用 -->
<script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</body>
</html>