這篇文章主要介紹css中border-bottom-style屬性如何使用,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!
主要從事網(wǎng)頁(yè)設(shè)計(jì)、PC網(wǎng)站建設(shè)(電腦版網(wǎng)站建設(shè))、wap網(wǎng)站建設(shè)(手機(jī)版網(wǎng)站建設(shè))、成都響應(yīng)式網(wǎng)站建設(shè)公司、程序開發(fā)、微網(wǎng)站、微信小程序等,憑借多年來(lái)在互聯(lián)網(wǎng)的打拼,我們?cè)诨ヂ?lián)網(wǎng)網(wǎng)站建設(shè)行業(yè)積累了豐富的成都做網(wǎng)站、成都網(wǎng)站制作、成都外貿(mào)網(wǎng)站建設(shè)、網(wǎng)絡(luò)營(yíng)銷經(jīng)驗(yàn),集策劃、開發(fā)、設(shè)計(jì)、營(yíng)銷、管理等多方位專業(yè)化運(yùn)作于一體,具備承接不同規(guī)模與類型的建設(shè)項(xiàng)目的能力。
css border-bottom-style屬性用于設(shè)置元素底部邊框樣式,只有當(dāng)屬性值不是 none 時(shí)邊框才可能出現(xiàn)。
css border-bottom-style屬性怎么用?
border-bottom-style屬性設(shè)置元素下邊框的樣式。
可以設(shè)置的屬性值:
● none:指定無(wú)邊框
● hidden:與"none" 相同。不過(guò)應(yīng)用于表時(shí)除外,對(duì)于表,hidden 用于解決邊框沖突。
● dotted:指定點(diǎn)狀邊框。
● dashed:指定虛線邊框。
● solid:指定實(shí)線邊框。
● double:指定一個(gè)雙邊框。
● groove:定義雙線。雙線的寬度等于 border-width 的值。
● ridge:定義三維菱形邊框。其效果取決于 border-color 的值。
● inset:定義三維凹邊框。其效果取決于 border-color 的值。
● outset:定義三維凸邊框。其效果取決于 border-color 的值。
● inherit:指定應(yīng)該從父元素繼承邊框樣式。
說(shuō)明:只有當(dāng)屬性值不是 none 時(shí)邊框才可能出現(xiàn)。在 CSS1 中,HTML 用戶代理只需支持 solid 和 none。
注釋:任何的版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit" 或 "hidden"。
css border-bottom-style屬性 示例
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
p.none {border-bottom-style:none;}
p.dotted {border-bottom-style:dotted;}
p.dashed {border-bottom-style:dashed;}
p.solid {border-bottom-style:solid;}
p.double {border-bottom-style:double;}
p.groove {border-bottom-style:groove;}
p.ridge {border-bottom-style:ridge;}
p.inset {border-bottom-style:inset;}
p.outset {border-bottom-style:outset;}
</style>
</head>
<body>
<p class="none">無(wú)下邊框</p>
<p class="dotted">點(diǎn)下邊框</p>
<p class="dashed">虛線下邊框</p>
<p class="solid">實(shí)線下邊框</p>
<p class="double">雙線下邊框</p>
<p class="groove">凹槽下邊框</p>
<p class="ridge">壟狀下邊框</p>
<p class="inset">嵌入下邊框</p>
<p class="outset">外凸下邊框</p>
</body>
</html>效果圖:

以上是css中border-bottom-style屬性如何使用的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
當(dāng)前題目:css中border-bottom-style屬性如何使用
URL標(biāo)題:http://chinadenli.net/article28/gosicp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計(jì)、用戶體驗(yàn)、網(wǎng)站維護(hù)、網(wǎng)站收錄、ChatGPT、網(wǎng)站營(yíng)銷
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)