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

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

css3圖標

瀏覽:122日期:2023-07-16 11:22:48

問題描述

css3圖標

用css3怎么畫一個這樣的圖標!!謝謝!!!

問題解答

回答1:

<!DOCTYPE html><html><head> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <meta charset='utf-8' /> <title>Tab Style</title> <style>p {width:112px;height:32px;float:left;position:relative;overflow:hidden;}p:before {content:’’;background:#9f9f9f;width:32px;height:32px;transform:rotate(-45deg);position:absolute;left:6px;border-radius:2px;}p:after {content:’’;background:#9f9f9f;width:96px;height:32px;position:absolute;right:0;border-radius:3px;}p > i {width:8px;height:8px;background:#fff;border-radius:50%;position:absolute;top:50%;margin-top:-4px;left:8px;} </style></head><body> <p><i></i></p></body></html>

update 2017.02.07有同學在問圓點透明的問題,如果仔細閱讀style就能發現原點是由i標簽來呈現的,只要將i標簽的背景色改成rgba就可以達到目的。

p > i {width:8px;height:8px;background:rgba(255,255,255,.3);border-radius:50%;position:absolute;top:50%;margin-top:-4px;left:8px;}回答2:

正在學習前端。嘗試做一下。

<!DOCTYPE html><html><head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>CSS畫標簽</title> <link rel='stylesheet' href='http://www.baoyu77737.com/wenda/5948.html'> <style>.content{ width:150px; height:50px; position:relative; left:200px; background-color: #ccc; border-radius:0 5px 5px 0;}.angel{ position: absolute; width:0; height:0; border-top: 25px solid transparent; border-bottom:25px solid transparent; border-right:25px solid #ccc; left:-25px;}.circle{ background-color: #fff; height:10px; width:10px; border-radius: 50%; position:absolute; top:20px;} </style></head><body> <p class='content'><p class='angel'></p><p class='circle'></p> </p></body></html>回答3:

如果白色小圓點處需要透明,能看到底層背景。這如何做呢

標簽: CSS
相關文章:
主站蜘蛛池模板: 宁都县| 西峡县| 宁晋县| 霍林郭勒市| 铜陵市| 分宜县| 龙口市| 德清县| 集安市| 崇左市| 东城区| 呼玛县| 综艺| 枣强县| 建湖县| 阿图什市| 登封市| 山阴县| 巴彦淖尔市| 遂宁市| 密云县| 宜城市| 巴彦淖尔市| 西峡县| 凭祥市| 漾濞| 武陟县| 武邑县| 绵竹市| 百色市| 噶尔县| 九龙坡区| 谷城县| 盐津县| 巴塘县| 青铜峡市| 平果县| 兴和县| 尼木县| 中江县| 延长县|