利用css写三角形,兼容IE7

.arrow-up { 
        width:0px; 
        height:0px; 
        border-left:10px solid transparent;  
        border-right:10px solid transparent; 
        border-bottom:10px solid red;  
        font-size:0px; 
        line-height:0px;
        margin: 0 auto;
    } 

    .arrow-down { 
        width:0px; 
        height:0px; 
        border-left:10px solid transparent; 
        border-right:10px solid transparent; 
        border-top:10px solid blue; 
        font-size:0px; 
        line-height:0px; 
    } 
        
    .arrow-left { 
        width:0px; 
        height:0px; 
        border-bottom:10px solid transparent; 
        border-top:10px solid transparent; 
        border-right:10px solid #DC143C; 
        font-size:0px; 
        line-height:0px;
    } 
    .arrow-right { 
        width:0px; 
        height:0px; 
        border-bottom:10px solid transparent; 
        border-top:10px solid transparent; 
        border-left:10px solid #FF00FF; 
        font-size:0px; 
        line-height:0px; 
    }

 

效果如下:

css写出三角形(兼容IE)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-11-20
  • 2021-11-20
  • 2021-12-29
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2021-10-05
  • 2021-07-10
  • 2021-10-13
  • 2022-03-07
  • 2022-12-23
相关资源
相似解决方案