首页 » 记事本 » CSS聊天小气泡

CSS聊天小气泡

<!DOCTYPE HTML>

<head>
    <meta charset="utf-8">
    <title>bubble</title>
    <style>
        .message {
            max-width: 320px;
            margin: 50px auto;
        }

        .bubble {
            padding: 20px 30px;
            background: #76ea5e;
            color: #fff;
            border-radius: 35px;
            position: relative;
            z-index: 2;
        }

        .bubble:after {
            width: 50px;
            height: 33px;
            content: "";
            border-left: 20px solid #76ea5e;
            border-radius: 0 0 0 50%;
            position: absolute;
            right: -40px;
            bottom: -8px;
            z-index: -1;
        }
    </style>
    <script src="jquery.js"></script>
</head>

<body>
<div class="message">
    <div class="bubble">你好!美女,我是高富帅</div>
</div>
</body>

</html>
此文章发表在 记事本. 将 固定链接 加入收藏.