做自(zì)由與創造的先行者

CSS border-bottom 屬性

CSS中文(wén)手冊

定義和(hé)用(yòng)法

border-bottom 簡寫屬性把下(xià)邊框的所有屬性設置到(dào)一個聲明(míng)中。

可以按順序設置如下(xià)屬性:

border-bottom-width

border-bottom-style

border-bottom-color

如果不設置其中的某個值,也(yě)不會(huì)出問題,比如 border-bottom:solid #ff0000; 也(yě)是允許的。

實例

設置下(xià)邊框的樣式:

p

{

border-style:solid;

border-bottom:thick dotted #ff0000;

}

CSS 語法

border-bottom: border-width border-style border-color|initial|inherit;

屬性值

描述
border-bottom-width 規定下(xià)邊框的寬度。參閱:border-bottom-width 中可能(néng)的值。
border-bottom-style 規定下(xià)邊框的樣式。參閱:border-bottom-style 中可能(néng)的值。
border-bottom-color 規定下(xià)邊框的顔色。參閱:border-bottom-color 中可能(néng)的值。
inherit 規定應該從(cóng)父元素繼承 border-bottom 屬性的設置。
網站(zhàn)建設開(kāi)發|APP設計(jì)開(kāi)發|小(xiǎo)程序建設開(kāi)發
下(xià)一篇:CSS border-bottom-color 屬性
上(shàng)一篇:CSS border 屬性