• <tbody id="9je1r"></tbody><tbody id="9je1r"><acronym id="9je1r"><rp id="9je1r"></rp></acronym></tbody>
      • <acronym id="9je1r"><acronym id="9je1r"><rp id="9je1r"></rp></acronym></acronym>

        亚洲无码Aⅴ,视频1页精品,欧美系列一区二区,曰韩色999

        用CSS繪制三角形箭頭

        2016/11/3 8:59:24   閱讀:1869    發(fā)布者:1869

        用CSS繪制三角形箭頭。使用純CSS,你只需要很少的代碼就可以
        創(chuàng)作出各種瀏覽器都兼容的三角形箭頭!

         

        CSS代碼:

        /* create an arrow that points up */ 
        div.arrow-up { 
            width: 0;  
            height: 0;  
            border-left: 5px solid transparent;  /* left arrow slant */ 
            border-right: 5px solid transparent; /* right arrow slant */ 
            border-bottom: 5px solid #2f2f2f; /* bottom, add background color here */ 
            font-size: 0; 
            line-height: 0; 
        } 
        
        /* create an arrow that points down */ 
        div.arrow-down { 
            width: 0;  
            height: 0;  
            border-left: 5px solid transparent; 
            border-right: 5px solid transparent; 
            border-top: 5px solid #2f2f2f; 
            font-size: 0; 
            line-height: 0; 
        } 
        
        /* create an arrow that points left */ 
        div.arrow-left { 
            width: 0;  
            height: 0;  
            border-bottom: 5px solid transparent;  /* left arrow slant */ 
            border-top: 5px solid transparent; /* right arrow slant */ 
            border-right: 5px solid #2f2f2f; /* bottom, add background color here */ 
            font-size: 0; 
            line-height: 0; 
        } 
        
        /* create an arrow that points right */ 
        div.arrow-right { 
            width: 0;  
            height: 0;  
            border-bottom: 5px solid transparent;  /* left arrow slant */ 
            border-top: 5px solid transparent; /* right arrow slant */ 
            border-left: 5px solid #2f2f2f; /* bottom, add background color here */ 
            font-size: 0; 
            line-height: 0; 
        } 
        

        繪制這些三角形的關(guān)鍵在于,你要讓箭頭所指方向的兩個(gè)側(cè)邊有很粗的邊框。而背向箭頭
        方向的一邊也是同樣粗的邊框,而這條邊的顏色就是你的三角形的顏色。邊框越粗,
        三角形越大。用這種方法你可以繪制出各種顏色、各種大小、各種朝向的箭頭。
        最妙的是,你只需要幾行CSS代碼就能實(shí)現(xiàn)這種效果。

         

        亚洲无码Aⅴ,视频1页精品,欧美系列一区二区,曰韩色999
            • <tbody id="9je1r"></tbody><tbody id="9je1r"><acronym id="9je1r"><rp id="9je1r"></rp></acronym></tbody>
            • <acronym id="9je1r"><acronym id="9je1r"><rp id="9je1r"></rp></acronym></acronym>
              广平县| 保德县| 奉化市| 镇原县| 清丰县| 梁山县| 大英县| 衡阳市| 黄浦区| 开平市| 泸定县| 久治县| 安阳市| 湄潭县| 清涧县| 惠东县| 手游| 双流县| 陆丰市| 连云港市| 古丈县| 方正县| 三河市| 华阴市| 车致| 宣城市| 子长县| 丹东市| 南靖县| 安庆市| 康乐县| 巴中市| 青岛市| 年辖:市辖区| 郑州市| 温泉县| 黄梅县| 右玉县| 宜章县| 新化县| 长春市|