一:什么是bootstrap?
bootstrap是目前留下的前端框架之一,具备已下特点:
bootstrap适用于网站的开发,不适用于管理系统(例如erp)开发,它提供的css组件比较多,js控件比较少,因此可以称bootstrap是一套css框架。
二:下载:
官网地址:
bootstrap3下载连接:
三:基本模板,入门:
<!doctype html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! --> <title>bootstrap 101 template</title> <!-- bootstrap --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="external nofollow" rel="stylesheet"> <!-- html5 shim 和 respond.js 是为了让 ie8 支持 html5 元素和媒体查询(media queries)功能 --> <!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 respond.js 不起作用 --> <!--[if lt ie 9]> <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script> <![endif]--> </head> <body> <h1>你好,世界!</h1> <!-- jquery (bootstrap 的所有 javascript 插件都依赖 jquery,所以必须放在前边) --> <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script> <!-- 加载 bootstrap 的所有 javascript 插件。你也可以根据需要只加载单个插件。 --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script> </body> </html>
文件版本:
!doctype html> <html> <head> <meta charset="utf-8"> <link href="./bootstrap-3.3.7-dist/css/bootstrap.css" rel="external nofollow" rel="stylesheet"> <link href="./bootstrap-3.3.7-dist/css/bootstrap-theme.css" rel="external nofollow" rel="stylesheet"> <title>insert title here</title> </head> <body> </body> <script type="text/javascript" src="./jquery/jquery-3.2.1.min.js"></script> <script type="text/javascript" src="./bootstrap-3.3.7-dist/js/bootstrap.min.js"></script> </html>
注:之上所有引用的js都是由官方提供,我们自己可以用自己下载好的本地文件添加进去即可使用!
以上所述是小编给大家介绍的bootstrap入门学习详解整合,希望对大家有所帮助
如对本文有疑问, 点击进行留言回复!!
【JavaScript笔记(一)】万丈高楼平地起 - 基本概念篇
轻松解决 org.apache.taglibs.standard.tlv.JstlCoreTLV 困惑
vert实践五——Json?Protocol Buffer?FlatBuffers?
[基于tensorflow的人脸检测] 基于神经网络的人脸检测8——验证训练好的神经网络
网友评论