用css写三角形,宽高可设置

1.不传@h,@c === @h; 2.元素width = @w, 元素height = @h*2 3.配合上.center()实现图标居中css less版本:web //上下左右居中 .center(){ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } /
相关文章
相关标签/搜索