关键词:
通过CDN
引入方式:
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
通过 npm
进行安装:
npm install bootstrap@3
require(‘bootstrap’) 代码的作用是加载 Bootstrap 的所有 jQuery 插件到 jQuery 对象上。其中,bootstrap 模块自身并不导出任何内容。你可以通过加载安装包顶级目录下的 /js/*.js 文件的方式手动加载单个的 Bootstrap 插件。
Bootstrap 的 package.json 文件包含了一些额外的元数据信息:
less - 该目录下包含 Bootstrap 的Less 源码文件
style - 该目录下包含 Bootstrap 的(按默认设置)预编译且未压缩的 CSS 文件
通过copy 源代码 bootstrap.min.css
复制以下代码->在自己的项目里新建css文件,然后复制以下代码,在需要的页面当中引入即可!
CSS:
HTML:
/*!
* Bootstrap v3.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
body
margin: 0;
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary
display: block;
audio,
canvas,
progress,
video
display: inline-block;
vertical-align: baseline;
audio:not([controls])
display: none;
height: 0;
[hidden],
template
display: none;
a
background-color: transparent;
a:active,
a:hover
outline: 0;
abbr[title]
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
-moz-text-decoration: underline dotted;
text-decoration: underline dotted;
b,
strong
font-weight: 700;
dfn
font-style: italic;
h1
font-size: 2em;
margin: 0.67em 0;
mark
background: #ff0;
color: #000;
small
font-size: 80%;
sub,
sup
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
sup
top: -0.5em;
sub
bottom: -0.25em;
img
border: 0;
svg:not(:root)
overflow: hidden;
figure
margin: 1em 40px;
hr
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
pre
overflow: auto;
code,
kbd,
pre,
samp
font-family: monospace, monospace;
font-size: 1em;
button,
input,
optgroup,
select,
textarea
color: inherit;
font: inherit;
margin: 0;
button
overflow: visible;
button,
select
text-transform: none;
button,
html input[type="button"],
input[type="reset"],
input[type="submit"]
-webkit-appearance: button;
cursor: pointer;
button[disabled],
html input[disabled]
cursor: default;
button::-moz-focus-inner,
input::-moz-focus-inner
border: 0;
padding: 0;
input
line-height: normal;
input[type="checkbox"],
input[type="radio"]
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button
height: auto;
input[type="search"]
-webkit-appearance: textfield;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration
-webkit-appearance: none;
fieldset
border: 1px solid silver;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
legend
border: 0;
padding: 0;
textarea
overflow: auto;
optgroup
font-weight: 700;
table
border-collapse: collapse;
border-spacing: 0;
td,
th
padding: 0;
/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
@media print
*,
:after,
:before
color: #000 !important;
text-shadow: none !important;
background: 0 0 !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
a,
a:visited
text-decoration: underline;
a[href]:after
content: " (" attr(href) ")";
abbr[title]:after
content: " (" attr(title) ")";
a[href^="#"]:after,
a[href^="javascript:"]:after
content: "";
blockquote,
pre
border: 1px solid #999;
page-break-inside: avoid;
thead
display: table-header-group;
img,
tr
page-break-inside: avoid;
img
max-width: 100% !important;
h2,
h3,
p
orphans: 3;
widows: 3;
h2,
h3
page-break-after: avoid;
.navbar
display: none;
.btn > .caret,
.dropup > .btn > .caret
border-top-color: #000 !important;
.label
border: 1px solid #000;
.table
border-collapse: collapse !important;
.table td,
.table th
background-color: #fff !important;
.table-bordered td,
.table-bordered th
border: 1px solid #ddd !important;
@font-face
font-family: "Glyphicons Halflings";
src: url(../fonts/glyphicons-halflings-regular.eot);
src: url(../fonts/glyphicons-halflings-regular.eot?#iefix)
format("embedded-opentype"),
url(../fonts/glyphicons-halflings-regular.woff2) format("woff2"),
url(../fonts/glyphicons-halflings-regular.woff) format("woff"),
url(../fonts/glyphicons-halflings-regular.ttf) format("truetype"),
url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular)
format("svg");
.glyphicon
position: relative;
top: 1px;
display: inline-block;
font-family: "Glyphicons Halflings";
font-style: normal;
font-weight: 400;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
.glyphicon-asterisk:before
content: "\\002a";
.glyphicon-plus:before
content: "\\002b";
.glyphicon-eur:before,
.glyphicon-euro:before
content: "\\20ac";
.glyphicon-minus:before
content: "\\2212";
.glyphicon-cloud:before
content: "\\2601";
.glyphicon-envelope:before
content: "\\2709";
.glyphicon-pencil:before
content: "\\270f";
.glyphicon-glass:before
content: "\\e001";
.glyphicon-music:before
content: "\\e002";
.glyphicon-search:before
content: "\\e003";
.glyphicon-heart:before
content: "\\e005";
.glyphicon-star:before
content: "\\e006";
.glyphicon-star-empty:before
content: "\\e007";
.glyphicon-user:before
content: "\\e008";
.glyphicon-film:before
content: "\\e009";
.glyphicon-th-large:before
content: "\\e010";
.glyphicon-th:before
content: "\\e011";
.glyphicon-th-list:before
content: "\\e012";
.glyphicon-ok:before
content: "\\e013";
.glyphicon-remove:before
content: "\\e014";
.glyphicon-zoom-in:before
content: "\\e015";
.glyphicon-zoom-out:before
content: "\\e016";
.glyphicon-off:before
content: "\\e017";
.glyphicon-signal:before
content: "\\e018";
.glyphicon-cog:before
content: "\\e019";
.glyphicon-trash:before
content: "\\e020";
.glyphicon-home:before
content: "\\e021";
.glyphicon-file:before
content: "\\e022";
.glyphicon-time:before
content: "\\e023";
.glyphicon-road:before
content: "\\e024";
.glyphicon-download-alt:before
content: "\\e025";
.glyphicon-download:before
content: "\\e026";
.glyphicon-upload:before
content: "\\e027";
.glyphicon-inbox:before
content: "\\e028";
.glyphicon-play-circle:before
content: "\\e029";
.glyphicon-repeat:before
content: "\\e030";
.glyphicon-refresh:before
content: "\\e031";
.glyphicon-list-alt:before
content: "\\e032";
.glyphicon-lock:before
content: "\\e033";
.glyphicon-flag:before
content: "\\e034";
.glyphicon-headphones:before
content: "\\e035";
.glyphicon-volume-off:before
content: "\\e036";
.glyphicon-volume-down:before
content: "\\e037";
.glyphicon-volume-up:before
content: "\\e038";
.glyphicon-qrcode:before
content: "\\e039";
.glyphicon-barcode:before
content: "\\e040";
.glyphicon-tag:before
content: "\\e041";
.glyphicon-tags:before
content: "\\e042";
.glyphicon-book:before
content: "\\e043";
.glyphicon-bookmark:before
content: "\\e044";
.glyphicon-print:before
content: "\\e045";
.glyphicon-camera:before
content: "\\e046";
.glyphicon-font:before
content: "\\e047";
.glyphicon-bold:before
content: "\\e048";
.glyphicon-italic:before
content: "\\e049";
.glyphicon-text-height:before
content: "\\e050";
.glyphicon-text-width:before
content: "\\e051";
.glyphicon-align-left:before
content: "\\e052";
.glyphicon-align-center:before
content: "\\e053";
.glyphicon-align-right:before
content: "\\e054";
.glyphicon-align-justify:before
content: "\\e055";
.glyphicon-list:before
content: "\\e056";
.glyphicon-indent-left:before
content: "\\e057";
.glyphicon-indent-right:before
content: "\\e058";
.glyphicon-facetime-video:before
content: "\\e059";
.glyphicon-picture:before
content: "\\e060";
.glyphicon-map-marker:before
content: "\\e062";
.glyphicon-adjust:before
content: "\\e063";
.glyphicon-tint:before
content: "\\e064";
.glyphicon-edit:before
content: "\\e065";
.glyphicon-share:before
content: "\\e066";
.glyphicon-check:before
content: "\\e067";
.glyphicon-move:before
content: "\\e068";
.glyphicon-step-backward:before
content: "\\e069";
.glyphicon-fast-backward:before
content: "\\e070";
.glyphicon-backward:before
content: "\\e071";
.glyphicon-play:before
content: "\\e072";
.glyphicon-pause:before
content: "\\e073";
.glyphicon-stop:before
content: "\\e074";
.glyphicon-forward:before
content: "\\e075";
.glyphicon-fast-forward:before
content: "\\e076";
.glyphicon-step-forward:before
content: "\\e077";
.glyphicon-eject:before
content: "\\e078";
.glyphicon-chevron-left:before
content: "\\e079";
.glyphicon-chevron-right:before
content: "\\e080";
.glyphicon-plus-sign:before
content: "\\e081";
.glyphicon-minus-sign:before
content: "\\e082";
.glyphicon-remove-sign:before
content: "\\e083";
.glyphicon-ok-sign:before
content: "\\e084";
.glyphicon-question-sign:before
content: "\\e085";
.glyphicon-info-sign:before
content: "\\e086";
.glyphicon-screenshot:before
content: "\\e087";
.glyphicon-remove-circle:before
content: "\\e088";
.glyphicon-ok-circle:before
content: "\\e089";
.glyphicon-ban-circle:before
content: "\\e090";
.glyphicon-arrow-left:before
content: "\\e091";
.glyphicon-arrow-right:before
content: "\\e092";
.glyphicon-arrow-up:before
content: "\\e093";
前端css的引入方式
!!!前端css的引入方式#1、css介绍#现在互联网分为三层:#html:超文本标记语言,从语义的角度描述页面结构。#CSS:层叠样式表,从审美的角度负责页面样式#JavaScript:从交互的角度描述页面行为##css:cascadingstylesheet,层叠样... 查看详情
前端css--引入方式和选择器
... 3.1链接式 3.1导入式css介绍现在的互联网前端分三层:HTML:超文本标记语言。从语义的角度描述页面结构。CSS:层叠样式表。从审美的角度负责页面样式。JS:JavaScript。从交互的角度描述页面行为CSS:CascadingStyle... 查看详情
基于springboot+bootstrap+mysql+redis搭建一套完整的权限架构引入bootstrap前端框架
.../blog.csdn.net/linzhefeng89/article/details/78752658 基于springboot+bootstrap+mysql+redis搭建一套完整的权限架构【六】【引入bootstrap前端框架】2017年12月11日10:19:24 笨_鸟_不_会_飞 阅读数:12574 版权声明:本文为博主原创文章, 查看详情
01-css的引入方式
... 3.1链接式 3.1导入式css介绍现在的互联网前端分三层:HTML:超文本标记语言。从语义的角度描述页面结构。CSS:层叠样式表。从审美的角度负责页面样式。JS:JavaScript。从交互的角度描述页面行为CSS:CascadingStyle... 查看详情
前端-css-介绍及三种引入方式
我们为什么需要CSS?使用css的目的就是让网页具有美观一致的页面,另外一个最重要的原因是内容与格式分离在没有CSS之前,我们想要修改HTML元素的样式需要为每个HTML元素单独定义样式属性,当HTML内容非常多时,就会定义很多... 查看详情
01-css的引入方式
... 3.1链接式 3.1导入式 css介绍现在的互联网前端分三层:HTML:超文本标记语言。从语义的角度描述页面结构。CSS:层叠样式表。从审美的角度负责页面样式。JS:JavaScript。从交互的角度描述页面行为CSS:CascadingStyle... 查看详情
01-css的引入方式
... 3.1链接式 3.1导入式css介绍现在的互联网前端分三层:HTML:超文本标记语言。从语义的角度描述页面结构。CSS:层叠样式表。从审美的角度负责页面样式。JS:JavaScript。从交互的角度描述页面行为CSS:CascadingStyle... 查看详情
01css的引入方式
...式内接样式外接样式 链接式导入式css介绍现在的互联网前端分三层:HTML:超文本标记语言。从语义的角度描述页面结构。CSS:层叠样式表。从审美的角度负责页面样式。JS:JavaScript。从交互的角度描述页面行为CSS:CascadingStyle... 查看详情
前端——bootstrap
Bootstrap介绍Bootstrap是Twitter开源的基于HTML、CSS、JavaScript的前端框架。它是为实现快速开发Web应用程序而设计的一套前端工具包。以前自己写的html的缺点:命名:重复、复杂、无意义(想个名字费劲)样式:重复、冗余、不规范、... 查看详情
前端之bootstrap框架(代码片段)
一Bootstrap简介在搭建前端页面时我们可以借用一些好的模板,为了让这些模板更好的让开发者使用,我们借助Bootstrap来实现一些常用的模板例如在看到上面这么好的模板,同学们是不是就想立刻收藏了呢?二css全局样式布局容器... 查看详情
前端---css
... 3.1链接式 3.1导入式1.css介绍现在的互联网前端分三层:HTML:超文本标记语言。从语义的角度描述页面结构。CSS:层叠样式表。从审美的角度负责页面样式。JS:JavaScript。从交互的角度描述页面行为CSS:CascadingStyleS... 查看详情
01-css的引入方式
... 3.1链接式 3.1导入式css介绍现在的互联网前端分三层:HTML:超文本标记语言。从语义的角度描述页面结构。CSS:层叠样式表。从审美的角度负责页面样式。JS:JavaScript。从交互的角度描述页面行为CSS:CascadingStyle... 查看详情
01-css的引入方式
css介绍现在的互联网前端分三层:HTML:超文本标记语言。从语义的角度描述页面结构。CSS:层叠样式表。从审美的角度负责页面样式。JS:JavaScript。从交互的角度描述页面行为CSS:CascadingStyleSheet,层叠样式表。CSS的作用就是给H... 查看详情
java简单博客系统主页静态页面设计
...的内容代替静态页面中的瞎掰的内容。二、设计过程采用BootStrap前端框架进行设计的举例:https://v3.bootcss.com/(一)设计页面布局:bootstrap栅格系统+流式布局管器实现基本页面架构,上面黄色和绿色板 查看详情
什么是bootstrap
参考技术ABootstrap是一个前端开发框架:1、功能非常强大,对常见的CSS组件和JS插件都进行了封装2、因些,对我们这些开发人员(非前端开发的),后台开发人员,比如搞PHP的,通过这个工具,就可以写出很漂亮的web页面 参考技... 查看详情
ten——tornado操作之使用bootstrap前端框架美化项目(bootstrap的使用及font-awesome插件的使用—图标集和工具包)+静态文件的处理
使用Bootstrap前端框架1.引言:(1)Bootstrap是什么?基于HTML,CSS,JS的简洁灵活的流行前端框架及交互组件集Bootstrap·全球最流行的HTML、CSS和JS工具库为快速WEB开发提供了一套前端工具包,包括布局、网格、表格、按钮、表单、导... 查看详情
58-前端-bootstrap
前端框架Bootstrap该框架已经帮你写好了很多页面样式,你如果需要使用,只需要下载它对应文件,之后直接cv拷贝即可在使用Bootstrap的时候所有的页面样式都只需要你通过class来调节即可版本选择建议使用v3版本Bootstrap中文网:htt... 查看详情
easyuitabs+yii2.0实现iframe方式打开页面(解决共用静态文件引入加载的问题)
...实际开发中,有将打开的各个链接页面隔离的需求(防止静态资源起冲突),这个时候常规思路就是使用iframe来实现!但遇到一个比较棘手的问题,当用easyuiTabs打开一个iframe页面时,怎么解决原有共用静态资源引入的问题。有... 查看详情