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

田字格布局

时间:2017-08-16 00:54:24      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:one   char   utf-8   span   nbsp   div   add   har   none   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>田字格布局</title>
    <style>
        *{
            margin:0;
            padding:0;
        }
        ul{
            margin:0 auto;
            border:1px solid red;
            width:1000px;
            padding-left:10px;
        }
        li{ 
            list-style:none; 
            height:500px; 
            float:left; 
            width:490px;
            margin-left:-10px;
            border:10px solid red;
            text-align: center;
            line-height: 500px;
            font-size: 50px;
        }
    </style>
</head>
<body>
    <ul>
        <li>爱</li>
        <li>我</li>
        <li>中</li>
        <li>华</li>
    </ul>
</body>
</html>

 

田字格布局

标签:one   char   utf-8   span   nbsp   div   add   har   none   

原文地址:http://www.cnblogs.com/shuaihan/p/7368431.html

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