Bootstrap学习笔记+代码

其他文件在github上
github链接在这
个人觉得菜鸟教程还是不错的学习链接

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Bootstrap</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link href="assets/plugins/bootstrap/css/bootstrap.css" type="text/css" rel="stylesheet"/>
    <link href="assets/plugins/bootstrap/css/bootstrap-theme.css" type="text/css" rel="stylesheet"/>
    <style type="text/css">
        .my_div{
            border: red;
        }

        .my_div1{
            border: 1px solid red !important;   /*css就近原则会失效*/
        }
        @meida screen and (max-width: 480px)    /*在实现页面放大缩小时间,可以改变页面边框的颜色*/
        {
            .my_div{
                border: 1px solid yellow;
            }
        }
    </style>
</head>
<body>


<h1>hello Bootstrap</h1>

<div class="row">
    <div class="col-md-4 col-xs-4" style="border: 1px solid red;">左</div>
    <div class="col-md-4 col-xs-4" style="border: 1px solid red;">右</div>
</div>

<div class="row">
    <div class="col-md-6 " style="border: 1px solid yellow;">左</div>
    <div class="col-md-6 " style="border: 1px solid yellow;">右</div>
</div>


<div class="my_div">
    Hello 媒体查询
</div>


<br />
<br />
<br />


<div class="my_div1" style="border:1px solid black;">
    hhhhhhhhhhh
</div>



<!--如果IE浏览器的版本低于9,调用这两个  ".js"-->
<!--[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.3.0/respond.min.js"></script>
<![endif]-->


<table class="table table-hover">    <!--实现悬停-->
    <thead>
    <tr>
        <th>
            说明
        </th>
        <th>
            备注
        </th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <th>
            111111
        </th>
        <th>
            222222
        </th>
    </tr>
    <tr>
        <th>
            111111
        </th>
        <th>
            222222
        </th>
    </tr>
    </tbody>
</table>

<!--字体图标-->
<!--字体图标库-->
<!--FontAwesome:http://fontawesome.dashgame.com/-->
<!--LineAwesome:https://icons8.com/line-awesome-->
<!--Sociallcons:http://www.socicon.com/chart.php-->
<!--阿里巴巴矢量图标库:http://www.iconfont.cn/-->
<span class="glyphicon glyphicon-search"style="font-size: 100px; color: black;"></span>
</body>
</html>

具体的页面效果自己可以无限开发。自己随便玩

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值