国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

利用CSS3新特性創建透明邊框三角

瀏覽:155日期:2022-06-02 11:10:08

先來看一下效果,這在CSS3之前,完全是不可想象的,只有圖片才能做的到,但在HTML5和CSS3大行其道的今天,實現這種效果,那都不是事啊。

看一下實現的代碼:

<!DOCTYPE html><html><head><style type="text/css">/* 上三角 */.arrow-up { width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 20px solid green;}/* 下三角 */.arrow-down { width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 20px solid orange;}/* 右三角 */.arrow-right { width: 0; height: 0; border-top: 60px solid transparent; border-bottom: 60px solid transparent; border-left: 60px solid blue;}/* 左三角 */.arrow-left { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 10px solid silver;}</style></head><body> <div></div> <div></div> <div></div> <div></div></body></html>
標簽: CSS HTML
相關文章:
主站蜘蛛池模板: 徐州市| 泗洪县| 北川| 信阳市| 海晏县| 榕江县| 镇康县| 大庆市| 巫山县| 堆龙德庆县| 竹山县| 凤翔县| 麦盖提县| 嘉义县| 澄城县| 大城县| 如皋市| 舞阳县| 和政县| 龙江县| 绥芬河市| 准格尔旗| 多伦县| 左贡县| 望谟县| 图们市| 新昌县| 竹北市| 古田县| 汉川市| 宜兰县| 申扎县| 麦盖提县| 枣强县| 安西县| 理塘县| 民和| 观塘区| 鹤山市| 桓台县| 禹城市|