用css绘制三角形图标

{

  width: 0px;

  height: 0px;

  border: 100px solid #000;

  border-top-color: red;

  border-bottom-color: transparent;

  border-left-color: transparent;

  border-right-color: transparent;

} {

  width: 0px;

  height: 0px;

  border: 100px solid #000;

  border-top-color: red;

  border-bottom-color: transparent;

  border-left-color: transparent;

  border-right-color: transparent;

}

 

 

具体请看这位大佬的   https://www.php.cn/css-tutorial-473454.html

上一篇:边框属性:阴影(发光效果) 边框圆角值 边框样式取消


下一篇:去除页面的滚动条