zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    maven3实战之仓库(快照版本)
    三、常见分析函数详解
    二、理解over()函数
    一、Oracle分析函数入门
    Java程序性能优化技巧
    同步synchronized用法
    java枚举使用详解
    jpa+spring配置多数据源
    jxl导入/导出excel
    CVS数据的导入和导出
  • 原文地址:https://www.cnblogs.com/Dean0731/p/11565195.html
Copyright © 2011-2022 走看看