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

消息框尖尖

时间:2018-02-26 11:25:36      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:webkit   pos   http   web   char   radius   消息   lang   ble   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>Title</title>
    <style>
        .box{
            width: 200px;
            height: 100px;
            border: 2px solid blue;
            margin: 100px auto;
            position: relative;
            border-radius: 20px;
        }
        .box:before{
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            top: 36px;
            left: -11px;
            border-right: 10px solid blue;
            border-top: 10px solid transparent;
            border-bottom: 10px solid transparent;
        }
        .box:after{
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            top: 36px;
            left: -8px;
            border-right: 10px solid white;
            border-top: 10px solid transparent;
            border-bottom: 10px solid transparent;
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>

 

Title

 

消息框尖尖

标签:webkit   pos   http   web   char   radius   消息   lang   ble   

原文地址:https://www.cnblogs.com/dujunfeng/p/8471631.html

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