久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術(shù)文章
文章詳情頁

利用CSS3新特性創(chuàng)建透明邊框三角

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

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

看一下實(shí)現(xiàn)的代碼:

<!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>
標(biāo)簽: CSS HTML
相關(guān)文章:
主站蜘蛛池模板: 石台县| 丹江口市| 义乌市| 安仁县| 古蔺县| 繁昌县| 金华市| 云梦县| 托克托县| 芜湖县| 澎湖县| 翼城县| 桐柏县| 顺平县| 东城区| 辽中县| 手机| 定远县| 游戏| 阿拉尔市| 壤塘县| 牡丹江市| 海丰县| 高平市| 延庆县| 天门市| 攀枝花市| 循化| 囊谦县| 贵定县| 维西| 隆子县| 清水县| 越西县| 五大连池市| 南昌县| 凉城县| 株洲市| 九龙县| 长岭县| 昭觉县|