设为首页 加入收藏

TOP

Bootstarp
2019-09-23 11:14:25 】 浏览:33
Tags:Bootstarp

 

 

 

 

字体是矢量的:不失帧

前端页面可用于android访问

 

 

 

优点:移动设备优先

支持所有浏览器(360不算浏览器)

自适应屏幕大小

目录结构:

 

 

 

若浏览器环境变化,引入js

 <link href="assets/plugins/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>

<linkhref="assets/plugins/bootstrap/css/bootstrap-theme.min.css" type="text/css" rel="stylesheet"/>

<script src="assets/plugins/jquery-3.3.1.min.js"></script>

<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>

 

 

 

 

 

  1. 窗口随系统尺寸Grid最多分为12列
  2. 网格系统

    1,table ,加载完所有,显示表格

    2,div+css,加载一点,显示一点:操作难度大

  1. 移动设备策略

     媒体查询,(渐进增强:向上兼容)内容先显示

  1. 行必须放在.container class内
  2. 内容放在列内,列是行的直接子元素
  3. 预定义网格:.row 和.col(列)-xs(设配)-4(所占列数)
  4. 使用媒体查询

    语法:@media 媒体类型 and(媒体特性:作用的范围){你的样式}

    @media screen and (max-widthj:480px){

    .a{display:none} //当小于480px时样式起作用

    }

  1. 就近原则:标签内style 与class 默认style生效

加入!important可强制生效,当(用style)更改bootstrap的css时,即会失效

 

矢量图标:bootstarp本身已过时,可扩展,找到font加入对应css

https://icons8.com/line-awesdome

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇原生JS代码实现随机产生一个16进.. 下一篇CSS3-边框 border

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目