borderTopColor 属性设置或返回元素上边框的颜色。
Property | |||||
---|---|---|---|---|---|
borderTopColor | Yes | Yes | Yes | Yes | Yes |
返回 borderTopColor 属性:
object.style.borderTopColor
设置 borderTopColor 属性:
object.style.borderTopColor
= "color|transparent|initial|inherit"
Value | Description |
---|---|
color | Specifies the color of the top border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element |
transparent | The color of the top border is transparent (underlying content will shine through) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
默认值: | 当前颜色 |
---|---|
返回值: | 一个字符串,表示元素上边框的颜色 |
CSS版本 | CSS1 |
CSS教程:CSS 边框
CSS 参考:边框顶部颜色属性
HTML DOM 参考:边境属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!