zoukankan      html  css  js  c++  java
  • 利用css3特性写出三角形(兼容IE浏览器)

    利用CSS写出三角形的效果

    效果如图:

     代码如下:

    .triangle-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;
        } 
    
    .triangle-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; 
        } 
            
    .triangle-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;
        } 
     .triangle-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; 
        }
  • 相关阅读:
    开通博客了
    nginx一些高级配置
    hue的优化
    hue改下载行数
    运维常用脚本
    scala
    kafka调优
    confluent部署:
    Redis主从及哨兵
    Redis配置
  • 原文地址:https://www.cnblogs.com/Hmin2199/p/6270810.html
Copyright © 2011-2022 走看看