前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >bootstrap 教程

bootstrap 教程

作者头像
用户5760343
发布2022-01-10 08:22:43
1.1K0
发布2022-01-10 08:22:43
举报
文章被收录于专栏:sktj

1、引用: <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

2、在<head>中添加meta,以使支持移动设备: <meta name="viewport" content="width=device-width, initial-scale=1.0"> initial-scale=1.0 确保网页加载时,以 1:1 的比例呈现,不会有任何的缩放。 如果添加: user-scalable=no ,则禁止用户使用缩放 3、<img src="..." class="img-responsive" alt="响应式图像"> class=img-responsive .img-responsive { display: block; height: auto; max-width: 100%; } 4、body的默认配置 body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.428571429; color: #333333; background-color: #ffffff; } 5、a的默认样式: a:hover, a:focus { color: #2a6496; text-decoration: underline; }

a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } 6、normalize.css来兼容浏览器 7、div class=container <div class="container"> ... </div> .container { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } 8 网格结构:container,row <div class="container"> <div class="row"> <div class="col--"></div> <div class="col--"></div> </div> <div class="row">...</div> </div> <div class="container">....

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019.05.19 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档