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-top-left-radius.md.
Lynx
  • 简体中文
  • border-top-left-radius

    介绍

    用于添加左上角圆角边框。第一个值是水平半径,第二个值是垂直半径。如果省略第二个值,则复制第一个值。如果长度为零,则边角为方形,而不是圆形。水平半径的百分比值参考边框盒的宽度,而垂直半径的百分比值参考边框盒的高度。

    使用示例

    语法

    /* the corner is a circle */
    /* border-top-left-radius: radius */
    border-top-left-radius: 3px;
    
    /* the corner is an ellipsis */
    /* border-top-left-radius: horizontal vertical */
    border-top-left-radius: 0.5em 1em;

    取值

    形式定义

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

    形式语法

    [<length> | <percentage>] [ / [<length> | <percentage>]]?

    与 Web 的区别

    不支持 inherit、initial、revert、unset 等

    兼容性

    LCD tables only load in the browser

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