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

边框的应用(小三角)

时间:2020-02-03 12:15:47      阅读:80      评论:0      收藏:0      [点我收藏+]

标签:mic   tran   模型   箭头   order   epp   http   ott   init   

<!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>
        /* 盒模型总宽  = 200+ 200+200
        transparent  取底色
         */
    .box {
        width: 0px;
        height: 0px;
        /* background-color: red; */
        border-top:200px solid transparent;
        border-left:200px solid transparent;
        border-right:200px solid deeppink;
        border-bottom:200px solid transparent;
    }
    
    </style>
</head>
<body>
    <!-- 三角形   箭头 -->

    <div class="box"></div>
</body>
</html>

技术图片

 

边框的应用(小三角)

标签:mic   tran   模型   箭头   order   epp   http   ott   init   

原文地址:https://www.cnblogs.com/xuixui/p/12254922.html

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