CSS 属性:border-top-width
元素顶部边框的宽度,位于内容区和内边距区域之上,外边距区域之前。
可能的值
| 值 | 注意 | 示例 |
|---|---|---|
| [length] | 不应为负值。 | 10px |
thin (细) | ||
medium | ||
thick (粗) | ||
inherit | ||
initial | ||
unset | ||
示例
#adder { border-top-width: 1px; }
border-top-width元素顶部边框的宽度,位于内容区和内边距区域之上,外边距区域之前。
| 值 | 注意 | 示例 |
|---|---|---|
| [length] | 不应为负值。 | 10px |
thin (细) | ||
medium | ||
thick (粗) | ||
inherit | ||
initial | ||
unset | ||
#adder { border-top-width: 1px; }