For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/css/data-type/length-percentage.md.
Lynx
  • 简体中文
  • <length-percentage>

    相当于 [<length>|<percentage>],其中 <percentage> 将解析为 <length>。另外支持 calc() 数学表达式。

    语法

    一个 <length-percentage> 可以是 <length><percentage>calc() 数学表达式。calc() 函数是一个数学函数,允许对数值进行基本算术运算,使用加法(+)、减法(-)、乘法(*)、除法(/)和括号。

    兼容性

    LCD tables only load in the browser

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