亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

css3圖標

css3圖標

揚帆大魚 2018-08-27 10:13:40
用css3怎么畫一個這樣的圖標??!謝謝!!!
查看完整描述

2 回答

?
阿波羅的戰車

TA貢獻1862條經驗 獲得超6個贊

<!DOCTYPE html>

<html>

<head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>CSS畫標簽</title>

    <link rel="stylesheet" href="">

    <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>

    <div class="content">

        <div class="angel"></div>

        <div class="circle"></div>

    </div>

</body>

</html>


查看完整回答
反對 回復 2018-09-02
?
MYYA

TA貢獻1868條經驗 獲得超4個贊

<!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;}


查看完整回答
反對 回復 2018-09-02
  • 2 回答
  • 0 關注
  • 733 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號