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/padding-inline-start.md.
Lynx
  • 简体中文
  • padding-inline-start

    介绍

    定义了元件的逻辑行首内边距,并根据元件的 direction 对应至实体内边距。该属性不能为负值。

    在 [LTR] 模式下,padding-inline-start 等价于 padding-left。 在 RTL 模式下,padding-inline-start 等价于 padding-right

    使用示例

    语法

    /* <length> values */
    padding-inline-start: 0.5em;
    padding-inline-start: 0px;
    padding-inline-start: 2rpx;
    
    /* <percentage> value */
    padding-inline-start: 10%;

    取值

    0px

    默认值

    <length>

    <length> 定义为一个绝对值。不能为负值。

    <percentage>

    相对于包含块的行内尺寸(宽度)的百分比。必须是非负值。

    形式定义

    初始值0
    适用元素所有元件
    是否支持继承
    是否支持动画
    百分比refer to the width of the containing block

    形式语法

    padding-inline-start =
      <length-percentage [0,∞]>
    
    <length-percentage> =
      <length>      |
      <percentage>

    与 Web 的区别

    mdn: padding-inline-start

    1. Lynx 暂不支持 writing mode

    兼容性

    LCD tables only load in the browser

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