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

作列表排列时div的table属性应用

时间:2017-05-23 13:18:16      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:pre   lin   logs   oom   20px   round   type   属性   size   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>table</title>
    <style>
        .clear{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0}
        .clearfix:before,.clearfix:after{content:‘.‘;display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0}
        .clearfix:after{clear:both}
        .clearfix{zoom:1}
        .list{
            width: 800px;
            border: 1px solid #0f0f0f;
        }
        .list .l{
            width: 100px;
            float: left;
            min-height: 60px;
            line-height: 60px;
            color: #666666
        }
        .list .l .t{
            display: table-cell;
            line-height: 20px;
            height: 60px;
            vertical-align: middle;
            word-wrap:break-word
        }
    </style>
</head>
<body>
<div class="list clearfix">
    <div class="l">
        <div class="t">111</div>
    </div>
    <div class="l">
        <div class="t">比对执行比对执行比对执行比对执行</div>
    </div>
    <div class="l">
        <div class="t">333</div>
    </div>
    <div class="l">
        <div class="t">444</div>
    </div>
    <div class="l">
        <div class="t">555</div>
    </div>
</div>
</body>
</html>

 

作列表排列时div的table属性应用

标签:pre   lin   logs   oom   20px   round   type   属性   size   

原文地址:http://www.cnblogs.com/zhixi/p/6893412.html

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