码迷,mamicode.com
首页 > 其他好文 > 详细

四宫格div

时间:2019-12-27 11:25:51      阅读:102      评论:0      收藏:0      [点我收藏+]

标签:height   ext   title   order   doc   code   rem   meta   auto   

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style type="text/css">
            .main01 div{
                float: left;
                margin-top: 10px;
                margin-left: 10px;                
                line-height: 190px;
                text-align: center;
                background-color: #DCDCDC;
                color:red;
                width: 185px;
                height: 11.5625rem;
                opacity: 0.5;
                /* display:table-cell;
                vertical-align: middle;
                word-break: break-word;
                text-align: center; */
            }
            .main01{
                background-color: #000000;
                width: 400px;
                height: 400px;
                margin: 0 auto;
                /* border: 0px solid #000000; */
            }

        </style>
    </head>
    <body>
        <div class="main01">
            <div class="a">1</div>
            <div class="a">2</div>
            <div class="a">3</div>
            <div class="a">4</div>
        </div>
    </body>
</html>

 

四宫格div

标签:height   ext   title   order   doc   code   rem   meta   auto   

原文地址:https://www.cnblogs.com/Equilibrium/p/12106265.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!