您好,登錄后才能下訂單哦!
本篇文章為大家展示了css中如何使用border-bottom-style屬性,內(nèi)容簡(jiǎn)明扼要并且容易理解,絕對(duì)能使你眼前一亮,通過(guò)這篇文章的詳細(xì)介紹希望你能有所收獲。
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:指定虛線(xiàn)邊框。
● solid:指定實(shí)線(xiàn)邊框。
● double:指定一個(gè)雙邊框。
● groove:定義雙線(xiàn)。雙線(xiàn)的寬度等于 border-width 的值。
● ridge:定義三維菱形邊框。其效果取決于 border-color 的值。
● inset:定義三維凹邊框。其效果取決于 border-color 的值。
● outset:定義三維凸邊框。其效果取決于 border-color 的值。
● inherit:指定應(yīng)該從父元素繼承邊框樣式。
說(shuō)明:只有當(dāng)屬性值不是 none 時(shí)邊框才可能出現(xiàn)。在 CSS1 中,HTML 用戶(hù)代理只需支持 solid 和 none。
注釋?zhuān)?/strong>任何的版本的 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">虛線(xiàn)下邊框</p><p class="solid">實(shí)線(xiàn)下邊框</p><p class="double">雙線(xiàn)下邊框</p><p class="groove">凹槽下邊框</p><p class="ridge">壟狀下邊框</p><p class="inset">嵌入下邊框</p><p class="outset">外凸下邊框</p></body></html>
上述內(nèi)容就是css中如何使用border-bottom-style屬性,你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注億速云行業(yè)資訊頻道。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。