For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/css/properties/border-width.md.
Lynx
  • 简体中文
  • border-width

    介绍

    设置元件四个边框宽度的简写属性,对应 border-top-widthborder-right-widthborder-bottom-widthborder-left-width

    使用示例

    语法

    border-width: thin medium thick 10px;

    取值

    • thin | medium | thick | <length>
    • 支持 1 - 4 值语法(上 → 右 → 下 → 左)

    形式定义

    初始值0
    适用元素所有元件
    是否支持继承no
    是否支持动画yes

    形式语法

    border-width = [ <line-width> ]{1,4}
    <line-width> = <length> | thin | medium | thick
    
    • MDN 参考
    • 默认值不同(Web 默认值 medium
    • 不支持全局值

    兼容性

    LCD tables only load in the browser

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