ios-html-bootStrap

综合运用:初识bootstrap

5.1 功能

  • 简洁、直观、强悍的前端开发框架,让web开发更迅速、简单。
  • github上用户达8w+

5.2 强大的组件功能

  • 字体图标
  • 下拉菜单
  • 徽章
  • 多风格进度条
  • 面板

5.3 项目运用

  • 在原有基础上进行定制
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>bootstrap</title>
    <!--引入外部框架-->
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            margin: 50px;
        }
        .text1 {
            width: 200px;
            color: purple;
        }
        .text2 {
            color: #ac2925;
            font-size: 50px;
            background-color: #2aabd2;
        }
    </style>
</head>
<body>
    <!--按键-->
    <button class="btn btn-danger text1"> 百度一下 </button>
    <button class="btn btn-success"> 谷歌一下 </button>
    <button class="btn btn-toolbar"> 搜狗一下 </button>

    <div class="progress">
        <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
            <span class="sr-only">30% Complete</span>
        </div>
    </div>

    <a href="#">Inbox <span class="badge">42</span></a>

    <button class="btn btn-primary" type="button">
        Messages <span class="badge">4</span>
    </button>

    <span class="glyphicon glyphicon-asterisk text2"></span>

    <div class="alert alert-warning alert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
        <strong>Warning!</strong> Better check yourself, you're not looking too good.
    </div>


</body>
</html>
bootstrap
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 综合演练:高仿Mac桌面 6.1 功能 仿Mac桌面的布局,并加以运用 菜单和Dom的运用 6.2 技术要点 字体...
    DeerRun阅读 479评论 0 0
  • 第5章 菜单、按钮及导航 一、下拉菜单 小伙伴们注意,在Bootstrap框架中的下拉菜单组件是一个独立的组件,根...
    凛0_0阅读 5,137评论 0 66
  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 174,604评论 25 709
  • 第3章 探索Bootstrap组件 在这一章,我们将开始使用Bootstrap的一些非常有用的HTML组件。诸如按...
    海上名月阅读 981评论 1 6
  • 大宝:牛牛(7周岁5个月1天) 二宝:申申(9个月26天) 读经时间:总第29天,第4周1天 读经人员:牛牛、牛妈...
    牛牛的猪妈阅读 143评论 0 0