bootstrap-reboot项目搭建
bootstrap-reboot项目搭建
需要引入文件jquery-3.5.1.min.js;到https://www.jq22.com/的jquery官网下载3.5.1版本;运行版即去掉多余的换行注释--使用即可
bootstrap.js到网站https://v4.bootcss.com/docs/getting-started/introduction/下载即可;后在项目中引用本地文件
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<!-- 具体参考https://v4.bootcss.com/docs/getting-started/introduction/官网的配置 -->
<!-- 移动端优先配置-->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap 的 CSS 文件 -->
<link rel="stylesheet" href="css/bootstrap.min.css" >
<script src="js/jquery-3.5.1.min.js" ></script>
<script src="js/bootstrap.js" ></script>
<script src="js/bootstrap.min.js" ></script>
</head>
<body>
<div class="alert alert-primary" role="alert">
A simple primary alert—check it out!
</div>
</body>
</html>

浙公网安备 33010602011771号