首页 / BOOTSTRAP / Bootstrap学习笔记
Bootstrap学习笔记
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Bootstrap学习笔记,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2514字,纯文字阅读大概需要4分钟。
内容图文
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.
Basic template:
1 <! DOCTYPE html > 2 < html lang ="en" > 3 < head > 4 < meta charset ="utf-8" > 5 < meta http-equiv ="X-UA-Compatible" content ="IE=edge" > 6 < meta name ="viewport" content ="width=device-width, initial-scale=1" > 7 <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> 8 < title >Bootstrap 101 Template</title> 910<!-- Bootstrap -->11<link href="css/bootstrap.min.css" rel="stylesheet">1213<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->14<!-- WARNING: Respond.js doesn‘t work if you view the page via file:// -->15<!--[if lt IE 9]> 16 <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> 17 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> 18 <![endif]-->19</head>20<body>21<h1>Hello, world!</h1>2223<!-- jQuery (necessary for Bootstrap‘s JavaScript plugins) -->24<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>25<!-- Include all compiled plugins (below), or include individual files as needed -->26<script src="js/bootstrap.min.js"></script>27</body>28</html>
Basic CSS:
1
<style type=”text/css”>
2
.row {
3 margin-right: -15px;
4 margin-left: -15px;
5 }
6.container {
7 padding-right: 15px;
8 padding-left: 15px;
9 margin-right: auto;
10 margin-left: auto;
11 }
12</style>
Media queries:
1 /* Extra small devices (phones, less than 768px) */ 2 /* No media query since this is the default in Bootstrap */ 3 4 /* Small devices (tablets, 768px and up) */ 5 @media (min-width: @screen-sm-min) { ... } 6 7/* Medium devices (desktops, 992px and up) */ 8@media (min-width: @screen-md-min) { ... } 910/* Large devices (large desktops, 1200px and up) */11@media (min-width: @screen-lg-min) { ... }
|
Extra small devicesPhones (<768px) |
Small devices Tablets (≥768px) |
Medium devicesDesktops (≥992px) |
Large devices Desktops (≥1200px) |
Grid behavior |
Horizontal at all times |
Collapsed to start, horizontal above breakpoints |
||
Container width |
None (auto) |
750px |
970px |
1170px |
Class prefix |
.col-xs- |
.col-sm- |
.col-md- |
.col-lg- |
原文:http://www.cnblogs.com/hzj680539/p/4972877.html
内容总结
以上是互联网集市为您收集整理的Bootstrap学习笔记全部内容,希望文章能够帮你解决Bootstrap学习笔记所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。