zoukankan      html  css  js  c++  java
  • bootStrap-1

    bootstrap是什么?

    1.简单灵活可用于架构流行的用户界面和交互借口的Html、css/javascript工具集。

    2.基于html5、css3的bootstrap,具有大量的诱人特性:友好的学习曲线,卓越的兼容性,响应式设计,12列格网,样式向导文档。

    3.自定义JQuery插件,完整的类库,基于less等。

    基本的HTML模板:

    <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <title>Bootstrap的HTML标准模板</title>   
            <!-- Bootstrap -->
            <link href="css/bootstrap.min.css" rel="stylesheet">
            <!--你自己的样式文件 -->
            <link href="css/your-style.css" rel="stylesheet">        
            <!-- 以下两个插件用于在IE8以及以下版本浏览器支持HTML5元素和媒体查询,如果不需要用可以移除 -->
            <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
            <![endif]-->
        </head>
        <body>
            <h1>Hello, world!</h1>
            
            <!-- 如果要使用Bootstrap的js插件,必须先调入jQuery -->
            <script src="http://libs.baidu.com/jquery/1.9.0/jquery.min.js"></script>
            <!-- 包括所有bootstrap的js插件或者可以根据需要使用的js插件调用 -->
            <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> 
        </body>
    </html>
    

      注释:

    <meta http-equiv="X-UA-Compatible" content="IE=edge">:在IE运行最新的渲染模式
    <meta name="viewport" content="width=device-width, initial-scale=1">:初始化移动浏览显示
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>:IE9版本以下,浏览器兼容html5新增的标签,引入下面的代码文件即可
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>:IE9版本以下浏览器兼容css3样式。
  • 相关阅读:
    Building a ListBox with custom content in Silverlight 4.0
    asp.net通讯问题
    Using the NavigationService Object in SL4.0
    Creating a File Explorer for Isolated Storage
    图表ASP:Chart
    什么是继承?
    Java基础一笔带过
    Java多态
    自己动手写个小框架之七
    linux crontab 定时计划
  • 原文地址:https://www.cnblogs.com/jodie-blog/p/5014443.html
Copyright © 2011-2022 走看看