bootsrap-----流体自适应

筅森魡賤 提交于 2019-12-03 23:26:52

 

流体布局容器
容器的width为auto,只是两边加了15px的padding。

流体布局容器
        容器的width为auto,只是两边加了15px的padding。

<div class="container-fluid">
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <link rel="stylesheet" href="css/bootstrap.min.css" />
        <style type="text/css">
            .container-fluid{
                border: 1px solid;
                height: 30px;
                background: pink;
            }
        </style>
    </head>
    <body>
        <!--流体容器   自适应-->
        <div class="container-fluid">
            container-fluid
        </div>
    </body>
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</html>
container-fluid

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!