美文网首页
用代码在文字后面添加一个小三角形

用代码在文字后面添加一个小三角形

作者: 程序媛_ | 来源:发表于2021-08-10 10:45 被阅读0次

<div class="demo">这是一个测试</div>

.demo:after{ content: ''; display: inline-block; width: 0; height: 0; border: 8px solid transparent; border-left: 8px solid #AFABAB; position: relative; top: 2px; left: 10px;}

https://blog.csdn.net/qq_21225505/article/details/80967680

相关文章

网友评论

      本文标题:用代码在文字后面添加一个小三角形

      本文链接:https://www.haomeiwen.com/subject/caexbltx.html