border-top-style版本:CSS2 兼容性:IE4+ NS6+ 繼承性:無
語法:
border-top-style : none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset
取值:
說明:
設置對像上邊框的樣式。
此屬性對於
currentStyle 對像而言是只讀的。對於其他對像而言是可讀寫的。
在 IE5.5+ 中,邊框屬性可以直接應用於內聯要素。而在此前的版本中,內聯要素要使用該屬性,必須先設定對象的
height 或
width 屬性,或者設定
position 屬性為
absolute ,或者設定
display 屬性為
block 。
如果
border-top-width 設置為
0 ,本屬性將失去作用。
對應的腳本特性為
borderTopStyle 。
示例:
body { border-top-style: double; border-bottom-style: groove; border-left-style: dashed; border-right-style: dotted; }