您好,欢迎来到华拓科技网。
搜索
您的当前位置:首页如何用css制作一个能够兼容所有浏览器的三角形

如何用css制作一个能够兼容所有浏览器的三角形

来源:华拓科技网
 这篇文章主要介绍了如何用css制作一个能够兼容所有浏览器的三角形,有一定的参考价值,感兴趣的朋友可以参考一下,希望对你有所帮助!

利用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; 
 }

效果如下:

Copyright © 2019- huatuo6.cn 版权所有 赣ICP备2024042791号-9

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务