最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

用CSS屬性transparent實(shí)現(xiàn)各種三角形示例代碼

  發(fā)布時(shí)間:2016-12-18 17:13:01   作者:佚名   我要評(píng)論
這篇文章主要給大家介紹了如何用CSS屬性transparent實(shí)現(xiàn)各種三角形,文中給出了詳細(xì)的示例代碼,有需要的朋友們可以參考借鑒,下面來跟著小編一起來學(xué)習(xí)學(xué)習(xí)吧。

效果圖如下

示例代碼

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            margin: 40px auto;
            width: 60px;
            background-color: #f0ac6b;
        }
        .t1{
            margin: 40px auto;
            width: 0px;
            height: 0px;
            /*background-color: #f0ac6b;*/
            border-bottom: 40px solid red;
            border-right: 20px solid transparent;
            border-left: 20px solid transparent;
        }
        .t2{
            margin: 40px auto;
            width: 0px;
            height: 0px;
            /*background-color: #f0ac6b;*/
            border-bottom: 40px solid transparent;
            border-right: 40px solid red;
            /*border-left: 20px solid transparent;*/
        }
        .t3{
            margin: 40px auto;
            width: 0;
            height: 0;
            border-top: 40px solid red;
            border-right: 20px solid transparent;
            border-left: 20px solid transparent;
        }
        .t4{
            margin: 40px auto;
            width: 0;
            height: 0;
            border-top: 40px solid transparent;
            border-left: 40px solid red;
        }
        .t5{
            margin: 40px auto;
            width: 0;
            height: 0;
            border-top: 40px solid red;
            border-right: 40px solid transparent;
        }
        .t6{
            margin: 40px auto;
            width: 0px;
            height: 0px;
            border-left: 40px solid transparent;
            border-bottom: 40px solid red;
        }
        .t7{
            margin: 40px auto;
            width: 0;
            height: 0;
            border-left: 40px solid red;
            border-bottom: 20px solid transparent;
            border-top: 20px solid transparent;
        }
        .t8{
            margin: 40px auto;
            width: 0;
            height: 0;
            border-right: 40px solid red;
            border-bottom: 20px solid transparent;
            border-top: 20px solid transparent;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="t1"></div>
    <div class="t3"></div>
    <div class="t2"></div>
    <div class="t4"></div>
    <div class="t5"></div>
    <div class="t6"></div>
    <div class="t7"></div>
    <div class="t8"></div>
</div>

</body>
</html>

總結(jié)

以上就是這篇文章的全部內(nèi)容了,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作能帶來一定的幫助,如果有疑問大家可以留言交流。

相關(guān)文章

最新評(píng)論

长乐市| 鄂温| 石泉县| 哈密市| 石首市| 中方县| 日土县| 岫岩| 德保县| 临邑县| 嵊泗县| 沾化县| 乳山市| 怀安县| 淳化县| 南昌县| 闽侯县| 武陟县| 兴和县| 南漳县| 焉耆| 长春市| 安图县| 苏尼特左旗| 天镇县| 香河县| 武安市| 诏安县| 会昌县| 灵川县| 石首市| 集安市| 平果县| 明水县| 定陶县| 高密市| 宁安市| 八宿县| 嘉峪关市| 孝感市| 马山县|