.triangle {
width: 10px;
height: 10px;
overflow: hidden;
border-left: 4px solid rgba(0, 224, 255, 1);
border-right: 4px solid rgb(0, 255, 10);
border-top: 4px solid #ff0;
border-bottom: 4px solid #ca0309;
}

效果:css 制作三角形图标 不支持IE6

把10px改成0后:css 制作三角形图标 不支持IE6

去掉border-top这一句:css 制作三角形图标 不支持IE6

把border-left和border-right弄透明:css 制作三角形图标 不支持IE6

修改后的代码:

.triangle {
width: 0;
height: 0;
overflow: hidden;
border-left: 4px solid rgba(0, 224, 255, 0);
border-right: 4px solid rgba(0, 255, 10, 0);
border-bottom: 4px solid #ca0309;
}

 

相关文章:

  • 2021-11-30
  • 2022-01-12
  • 2022-12-23
  • 2022-01-02
  • 2021-11-20
  • 2021-08-12
  • 2021-10-30
  • 2021-06-24
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案