這篇文章主要介紹css中border-bottom-style屬性如何使用,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
主要從事網(wǎng)頁設計、PC網(wǎng)站建設(電腦版網(wǎng)站建設)、wap網(wǎng)站建設(手機版網(wǎng)站建設)、成都響應式網(wǎng)站建設公司、程序開發(fā)、微網(wǎng)站、微信小程序等,憑借多年來在互聯(lián)網(wǎng)的打拼,我們在互聯(lián)網(wǎng)網(wǎng)站建設行業(yè)積累了豐富的成都做網(wǎng)站、成都網(wǎng)站制作、成都外貿網(wǎng)站建設、網(wǎng)絡營銷經(jīng)驗,集策劃、開發(fā)、設計、營銷、管理等多方位專業(yè)化運作于一體,具備承接不同規(guī)模與類型的建設項目的能力。
css border-bottom-style屬性用于設置元素底部邊框樣式,只有當屬性值不是 none 時邊框才可能出現(xiàn)。
css border-bottom-style屬性怎么用?
border-bottom-style屬性設置元素下邊框的樣式。
可以設置的屬性值:
● none:指定無邊框
● hidden:與"none" 相同。不過應用于表時除外,對于表,hidden 用于解決邊框沖突。
● dotted:指定點狀邊框。
● dashed:指定虛線邊框。
● solid:指定實線邊框。
● double:指定一個雙邊框。
● groove:定義雙線。雙線的寬度等于 border-width 的值。
● ridge:定義三維菱形邊框。其效果取決于 border-color 的值。
● inset:定義三維凹邊框。其效果取決于 border-color 的值。
● outset:定義三維凸邊框。其效果取決于 border-color 的值。
● inherit:指定應該從父元素繼承邊框樣式。
說明:只有當屬性值不是 none 時邊框才可能出現(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">無下邊框</p> <p class="dotted">點下邊框</p> <p class="dashed">虛線下邊框</p> <p class="solid">實線下邊框</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屬性如何使用的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
當前題目:css中border-bottom-style屬性如何使用
URL標題:http://bm7419.com/article28/gosicp.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設計、用戶體驗、網(wǎng)站維護、網(wǎng)站收錄、ChatGPT、網(wǎng)站營銷
聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)