border-top

介绍

用于设置上边框相关样式,该属性可按顺序设置 border-top-widthborder-top-styleborder-top-color

使用示例

语法

/* 上边框是粗双线红边框 */
border-top: thick double red;

/* 上边框是细点线蓝边框 */
border-top: thin dotted blue;

/* 上边框是10px虚线橙边框 */
border-top: 10px dashed orange;

取值

可按顺序设置如下属性:

形式定义

初始值0
适用元素all elements
是否支持继承no
是否支持动画no

形式语法

<line-width> || <line-style> || <color>
where
<line-width> = <length> | thin | medium | thick
<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset

与 Web 的区别

不支持 inherit、initial、revert、unset 等

兼容性

LCD tables only load in the browser

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。