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/text-stroke.md.
Lynx
  • 简体中文
  • 介绍

    text-stroke 属性指定了文字的笔画宽度和颜色。

    使用示例

    语法

    text-stroke: 4px green;

    取值

    • none
      默认值

    • <length>
      设置笔画的宽度

    • <color>
      设置描边的颜色

    形式定义

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

    形式语法

    none | <length[0,∞]> || <color>

    与 Web 的区别

    • 不支持设置笔画宽度为 thin 等属性值。

    注意

    某些字体可能有重叠的笔画。

    兼容性

    LCD tables only load in the browser

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