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/white-space.md.
Lynx
  • 简体中文
  • white-space

    介绍

    white-space 设置如何处理元件中的空白。

    使用示例

    语法

    white-space: normal;
    
    white-space: nowrap;

    取值

    • normal 默认值。 不对文本做额外处理。

    • nowrap 文本内的换行无效。

    形式定义

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

    形式语法

    normal | nowrap

    与 Web 的区别

    • 只支持 normalnowrap 两个关键字,和 Web 表现不同。

    兼容性

    LCD tables only load in the browser

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