Blogger Information
Blog 40
fans 0
comment 0
visits 29348
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Bootstrap基础--2019-05-27
小人物的博客
Original
642 people have browsed it

实例

<!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">
    <!--    1. 导入bootstrap的css文档-->
    <link rel="stylesheet" href="../0528/static/css/bootstrap.css">
    <title>Title</title>
</head>

<body>
<!--表格-->
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset2">
            <table class="table table-bordered table-hover">
                <caption class="h3 text-center ">我的表格</caption>
                <thead>
                <tr class="bg-info text-center ">
                    <td>序号</td>
                    <td>商品名称</td>
                    <td>数量</td>
                    <td>单价</td>
                    <td>金额</td>
                </tr>
                </thead>
                <tbody>
                <tr class="bg-warning">
                    <td class="text-center">1</td>
                    <td>华为P30</td>
                    <td class="text-center">1</td>
                    <td class="text-center">4999</td>
                    <td class="text-center">4999</td>
                </tr>
                <tr class="bg-warning">
                   <td class="text-center">2</td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr class="bg-warning">
                    <td class="text-center">3</td>
                    <td></td>
                    <td class="text-center"></td>
                    <td class="text-center"></td>
                    <td class="text-center"></td>
                </tr>
                <tr class="bg-warning">
                    <td class="text-center">4</td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr class="bg-warning">
                    <td class="text-center">5</td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                </tbody>
            </table>

        </div>

    </div>

</div>

<hr style="color:red">

<!--表单-->
<div class="container">
    <div class="row">
        <div class="col-md-6">
            <h3 class="text-center">表单</h3>
            <form>
                <div class="form-group">
                    <label for="exampleInputEmail1">Email address</label>
                    <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword1">Password</label>
                    <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
                </div>
                <div class="form-group">
                    <label for="exampleInputFile">File input</label>
                    <input type="file" id="exampleInputFile">
                    <p class="help-block">Example block-level help text here.</p>
                </div>
                <div class="checkbox">
                    <label>
                        <input type="checkbox"> Check me out
                    </label>
                </div>
                <button type="submit" class="btn btn-danger">提交</button>
            </form>
            <hr>

        </div>
    </div>
</div>




<!--2. 导入支持文件: jquery.js-->
<script src="../0528/static/js/jquery-3.4.1.js"></script>
<!--3. 导入bootstrap的js文件-->
<script src="../0528/static/js/bootstrap.js"></script>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post