HTML5 css下三角单引号怎么写

HTML5 css下三角单引号怎么写,第1张

<style>

.test:after {display:inline-block content:"^" transform:rotate(180deg) scale(1.4,0.8)}

</style>

<span class="test">服务</span>

css3写三角形(为了好区分姑且按方向区别):

(1)上三角形:

border: 16px solid transparent

border-bottom: 16px solid #f00

width: 0

height: 0

(2)下三角形:

border: 16px solid transparent

border-top: 16px solid #f00

width: 0

height: 0

(3)右三角形:

border: 16px solid transparent

border-left: 16px solid #f00

width: 0

height: 0

(4)左三角形:

border: 16px solid transparent

border-right: 16px solid #f00

width: 0

height: 0


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/6130869.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-15
下一篇 2023-03-15

发表评论

登录后才能评论

评论列表(0条)

保存