transparent(透明的)
css如何制作出三角形:盒子宽高为0 利用边框进行设置
border-top:10px soild transparent;
border-right:10px solid red;
border-bottom:10px solid transparent;
border-left:10px solid transparent;
p:nth-child(1) css中获取第一个p
本文介绍了一种使用CSS边框属性来创建透明三角形的方法。通过设置特定元素的宽高为0,并巧妙地利用不同方向上的边框颜色,可以轻松实现这一效果。此技巧对于前端开发者来说非常实用。
transparent(透明的)
css如何制作出三角形:盒子宽高为0 利用边框进行设置
border-top:10px soild transparent;
border-right:10px solid red;
border-bottom:10px solid transparent;
border-left:10px solid transparent;
p:nth-child(1) css中获取第一个p

被折叠的 条评论
为什么被折叠?