How to use CSS to achieve this effect?

or what method is easier to use? use the svg icon, but you can"t put the text in the middle

.
Mar.22,2021

Direct div + div:after is fine


Thirty guests-use triangles to implement class dialogs

just use triangles!

.bubble {
            position: relative;
            padding: 8px 16px;
            background: -sharpf7f7f7;
            border: 1px solid -sharpccc;
        }
        .bubble:before {
            content: '';
            position: absolute;
            display: block;
            bottom : -10.5px;
            right: 0;
            width: 0;
            height: 0;
            border-top: 12px solid -sharpf7f7f7;
            border-left: 12px solid transparent;
            z-index: 10;
        }
        .bubble:after {
            content: '';
            position: absolute;
            display: block;
            bottom : -13px;
            right: -1px;
            width: 0;
            height: 0;
            border-top: 13px solid -sharpccc;
            border-left: 13px solid transparent;
        }
The way to

Slack Off is to let ui cut the picture of that dialog box to you. If you don't have Slack Off, just simulate it with div, and div+ triangle + positioning will be fine

.
Menu