css伪元素制作消息框
来源:互联网 发布:淘宝联盟下单跟不到单 编辑:程序博客网 时间:2024/06/01 22:57
直接上代码
width:200px;height:50px;
margin-bottom: 20px;
background: #20B2AA;color:#fff;
text-align: center;line-height:50px;
position: relative;
border-radius:10px 10px 6px 10px;
}
.msg::after{
content: '';
display: block;
width:0;height:0;
border:solid 16px;
border-top:20px;
border-color:transparent transparent transparent #20B2AA;
position: absolute;
top:8px;right:-30px;
css如下:
width:200px;height:50px;
margin-bottom: 20px;
background: #20B2AA;color:#fff;
text-align: center;line-height:50px;
position: relative;
border-radius:10px 10px 6px 10px;
}
.msg::after{
content: '';
display: block;
width:0;height:0;
border:solid 16px;
border-top:20px;
border-color:transparent transparent transparent #20B2AA;
position: absolute;
top:8px;right:-30px;
}
<div class="msg">你在干嘛呢?</div>
<div class="msg">我在吃饭,你了?</div>
<div class="msg">打算出去玩</div>
效果图:
阅读全文
0 0
- css伪元素制作消息框
- CSS伪元素BEFORE、AFTER妙用:制作时尚焦点图相框
- CSS 3,用伪元素制作不一样的阴影效果
- CSS伪元素before、after妙用:制作时尚焦点图相框
- css 伪类 伪元素
- css伪类,伪元素
- CSS 伪元素 伪类
- CSS伪类、伪元素
- css:after 伪元素
- CSS伪元素
- CSS之伪元素
- CSS :after 伪元素
- CSS 伪元素
- CSS的伪元素
- CSS 伪类/元素
- CSS-伪元素
- 10027---CSS 伪元素
- css的伪元素
- JAVA企业面试题精选 Java SE 71-80
- JSX 中的 If-Else
- Laravel RawCookie
- 常用算法题目总结四(字符串篇)
- CC2530 RF部分使用 ——实现点对点收发
- css伪元素制作消息框
- Mysql备份脚本
- ocp Oracle.1z0-053 711--37
- XML数据在Javascript,HTML中使用
- C++学习(57)
- C#借助FieldOffset属性实现共用体与强制类型转换
- 使用Grunt 插件打包Electron Windows应用
- 我眼中的产品经理(1)
- PDF如何转换成TXT文本