zoukankan      html  css  js  c++  java
  • bootstrap简单使用

    1.bootstrap实例:

     1 <title>Bootstrap 实例 - 代码</title>
     2 <link href="https://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
     3 <script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
     4 <script src="https://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
     5 </head>
     6 <body>
     7 <p><code>&lt;header&gt;</code> 作为内联元素被包围。</p>
     8 <p>如果需要把代码显示为一个独立的块元素,请使用 &lt;pre&gt; 标签:</p>
     9 <pre>
    10    &lt;article&gt;
    11       &lt;h1&gt;Article Heading&lt;/h1&gt;
    12    &lt;/article&gt;
    13 </pre>
    14 </body>
    15 </html>
    View Code

    2.按钮:

     1 <html>
     2 <head>
     3 <title>Bootstrap 实例 - 按钮选项</title>
     4 <link href="https://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
     5 <script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
     6 <script src="https://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
     7 </head>
     8 <body>
     9 <button type="button" class="btn btn-default">默认按钮</button>
    10 <button type="button" class="btn btn-primary">原始按钮</button>
    11 <button type="button" class="btn btn-success">成功按钮</button>
    12 <button type="button" class="btn btn-info">信息按钮</button>
    13 <button type="button" class="btn btn-warning">警告按钮</button>
    14 <button type="button" class="btn btn-danger">危险按钮</button>
    15 <button type="button" class="btn btn-link">链接按钮</button>
    16 </body>
    17 </html>
    按钮

    效果图:

    作者:chenze
    出处:https://www.cnblogs.com/chenze-Index/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
    如果文中有什么错误,欢迎指出。以免更多的人被误导。
  • 相关阅读:
    C 语言中的 fgets()
    C++ 中的 C_str() 函数用法
    Ubuntu 下使用 sshfs 挂载远程目录到本地
    VirtualBox 下主机与虚拟机以及虚拟机之间互通信配置
    转:sudo 的常见用法和参数选项
    “a++” 与 “++a” 的区别
    Linux 下运行 C++ 程序出现 “段错误(核心已转储)”
    vector容器中添加和删除元素
    NCCloud 指令示例
    c++ find函数用法
  • 原文地址:https://www.cnblogs.com/chenze-Index/p/9274496.html
Copyright © 2011-2022 走看看