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/-x-auto-font-size-preset-sizes.md.
Lynx
  • 简体中文
  • -x-auto-font-size-preset-sizes

    介绍

    -x-auto-font-size-preset-sizes 属性指定了预设的字号大小数组,设置后如果需要文本字号自适应将从中选择最合适的字号,即满足宽度限制下的最大字号。

    使用示例

    语法

    -x-auto-font-size: true;
    -x-auto-font-size-preset-sizes: 10px 12px 15px;

    取值

    • <length> 组成的组合
      预设的字号大小数组

    形式定义

    初始值[]
    适用元素text
    是否支持继承no
    是否支持动画no

    形式语法

    -x-auto-font-size-preset-sizes = (<length>){3}

    与 Web 的区别

    • Lynx 特有的属性。

    注意事项

    • 此属性在 -x-auto-font-size 设置开启时才有效,同时覆盖 -x-auto-font-size 中的最小字号和最大字号设置。

    兼容性

    LCD tables only load in the browser

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