码迷,mamicode.com
首页 > Web开发 > 详细

CSS 分割线

时间:2019-10-28 20:39:00      阅读:1478      评论:0      收藏:0      [点我收藏+]

标签:type   col   his   ble   ext   dev   device   document   doc   

技术图片

 

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box{
            width: 300px;
            /* border: 1px solid red; */
        }
        .line{
            margin: 20px 0;
            line-height: 1px;
            border-left: 50px solid #ddd;
            border-right: 150px solid #ddd;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="line">
            this is line
        </div>
    </div>
</body>
</html>

 

CSS 分割线

标签:type   col   his   ble   ext   dev   device   document   doc   

原文地址:https://www.cnblogs.com/TreeCTJ/p/11754786.html

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