Python学习-day52-bootstrap
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Python学习-day52-bootstrap,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1310字,纯文字阅读大概需要2分钟。
内容图文
起步
导入:
<link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.css"> <script src="js/jquery-3.3.1.js"></script> <script src="bootstrap-3.3.7-dist/js/bootstrap.js"></script>
屏幕适配
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
响应式布局
.wrapper { height: 60px; background-color: yellow; } /*if (dw<600) {}*/ @media (max-width: 600px) { .wrapper { width: auto; } } ? /*if (dw>900) {}*/ @media (min-width: 900px) { .wrapper { width: 850px; } } /*if (dw>600 and dw < 900) {}*/ @media (min-width: 600px) and (max-width: 900px) { .wrapper { width: 600px; } } ? /*if (dw>1000) {}*/ @media (min-width: 1000px) { .wrapper { width: 990px; } } /*if (dw>1200) {}*/ @media (min-width: 1200px) { .wrapper { width: 1200px; } }
栅格系统
''' bs将父级等分12等分提供给子级使用 ? 父级默认用padding: 15px, 用.row的margin: -15px来抵消 ? 四个屏幕尺寸: .col-xs- .col-sm- .col-md- .col-lg- 偏移 .col-xs-offset- .col-sm-offset- .col-md-offset- .col-lg-offset- '''
swiper
<link rel="stylesheet" href="swiper/swiper.css"> ? <body> <!--swiper的轮播图结构,可以取官网案例复制--> <div class="swiper-container"> ... </div> </body> ? <script src="swiper/swiper.js"></script> <script> // 一定要声明Swiper对象 new Swiper('.swiper-container', { // 所需参数key:value }); </script>
内容总结
以上是互联网集市为您收集整理的Python学习-day52-bootstrap全部内容,希望文章能够帮你解决Python学习-day52-bootstrap所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。