border-top-width版本:CSS1 兼容性:IE4+ NS4+ 繼承性:無
語法: border-top-width : medium |
thin |
thick |
length 參數(shù): medium : 默認寬度
thin : 小于默認寬度
thick : 大于默認寬度
length : 由浮點數(shù)字和單位標識符組成的長度值。不可為負值。請參閱
長度單位 說明: 要使用該屬性,必須先設定對象的
height或
width屬性,或者設定
position屬性為absolute。
如果
border-style設置為none,本屬性將失去作用。
對應的腳本特性為
borderTopWidth。請參閱我編寫的其他書目。
示例: span { border-top-width: thin; border-top-style: solid; }
span { border-bottom-width: thin; border-bottom-style: solid; }
span { border-left-width: thin; border-left-style: solid; }
span { border-right-width: thin; border-right-style: solid; }