border-top-width版本:CSS1 兼容性:IE4+ NS4+ 繼承性:無
語法: border-top-width : medium |
thin |
thick |
length 參數(shù): medium : 默認(rèn)寬度
thin : 小于默認(rèn)寬度
thick : 大于默認(rèn)寬度
length : 由浮點(diǎn)數(shù)字和單位標(biāo)識(shí)符組成的長(zhǎng)度值。不可為負(fù)值。請(qǐng)參閱
長(zhǎng)度單位 說明: 要使用該屬性,必須先設(shè)定對(duì)象的
height或
width屬性,或者設(shè)定
position屬性為absolute。
如果
border-style設(shè)置為none,本屬性將失去作用。
對(duì)應(yīng)的腳本特性為
borderTopWidth。請(qǐng)參閱我編寫的其他書目。
示例: 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; }