CSS 實(shí)心圓、空心圓效果

image.png

實(shí)現(xiàn)上圖紅色空心的效果的大致CSS代碼如下

.redMarker {
    width: 8px;
    height: 8px;
    border: 2px solid #fe4800;
    border-radius: 4px;
}

實(shí)現(xiàn)上圖灰色實(shí)心的效果的大致CSS代碼如下

.grayMarker {
    width: 5px;
    height: 5px;
    border-radius: 2.5px;
    background-color: #808080;
    opacity: 0.5;
}

相關(guān)html代碼

<div class='frequentlyQuestions'>
    <div class='frequentlyQuestionsDesc'>
        <div class="redMarker">
        </div>
        <strong style="padding-left:3px;">下面是大家常溫的問題呦~</strong>
    </div>
    <div class='frequentlyQuestionsContent'>
        <div class='frequentlyQuestionListBig'>
            <div class='frequentlyQuestionList frequentlyQuestionsLine'>賬號(hào)(認(rèn)證、換綁、登錄) <span id='showHide' class='iconfont icon-xialajiantou'></span>
            </div>
            <div id='smallList'>
                <div class='grayMarker'></div>
                <span style='padding-left:3px;'>  如何進(jìn)行營業(yè)執(zhí)照認(rèn)證</span>
            </div>
            <div id='smallList'>
                <div class='grayMarker'></div>
                <span style='padding-left:3px;'>如何找到手機(jī)號(hào)</span>
            </div>
            <div id='smallList'>
                <div class='grayMarker'></div>
                <span style='padding-left:3px;'>密碼玩了個(gè)怎么玩</span>
            </div>

        </div>
        <div class='frequentlyQuestionListBig'>
            <div class='frequentlyQuestionList frequentlyQuestionsLine'>信息問題(被刪除、不顯示) <span id='showHide' class='iconfont icon-xialajiantou'></span></div>
        </div>

        <div class='frequentlyQuestionListBig'>
            <div class='frequentlyQuestionList'>其他問題(毛用、舉報(bào)) <span id='showHide' class='iconfont icon-xialajiantou'></span></div>
        </div>
    </div>
</div>

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容