relative-center

介绍

相对布局中,用于设置当前元件的居中对齐方式。

使用示例

语法

relative-center: none;
relative-center: both;
relative-center: vertical;
relative-center: horizontal;

取值

  • none

    默认值。不居中。

  • both

    垂直与水平都居中。

  • vertical

    垂直居中。

  • horizontal

    水平居中。

形式定义

初始值none
适用元素relative items
是否支持继承
是否支持动画

形式语法

relative-center = none | both | vertical | horizontal

与 Web 的区别

  • Web 无此属性。

兼容性

LCD tables only load in the browser

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