Loading...
Loading...
Compare original and translation side by side
| 我想要... | 查阅文档 |
|---|---|
| 查看基础数据类型与语法符号 | |
| 查看布局/定位/盒模型语法 | |
| 查看 Flex 布局语法 | |
| 查看背景/边框/滤镜/遮罩语法 | |
| 查看文本/字体语法 | |
| 查看动画/过渡/变换语法 | |
| 查看某属性是否支持 | 本文档 Quick Reference |
| 了解渐变/滤镜的具体限制 | 本文档「渐变与滤镜限制」规则 |
| 我想要... | 查阅文档 |
|---|---|
| 查看基础数据类型与语法符号 | |
| 查看布局/定位/盒模型语法 | |
| 查看 Flex 布局语法 | |
| 查看背景/边框/滤镜/遮罩语法 | |
| 查看文本/字体语法 | |
| 查看动画/过渡/变换语法 | |
| 查看某属性是否支持 | 本文档 Quick Reference |
| 了解渐变/滤镜的具体限制 | 本文档「渐变与滤镜限制」规则 |
| 属性 | 分类 | 替代方案 |
|---|---|---|
| 布局 | 使用 flex 布局 |
| 布局 | 使用 |
| 布局 | 无替代 |
| 文本 | 无替代 |
| 文本 | 使用 padding-left 模拟 |
| 文本 | 使用 word-break |
| 文本 | 无替代 |
| 背景 | 无替代 |
| 背景 | 无替代 |
| 背景 | 无替代 |
| 遮罩 | 无替代 |
| Flex | 无替代 |
| 列表 | 无替代 |
| 属性 | 分类 | 替代方案 |
|---|---|---|
| 布局 | 使用 flex 布局 |
| 布局 | 使用 |
| 布局 | 无替代 |
| 文本 | 无替代 |
| 文本 | 使用 padding-left 模拟 |
| 文本 | 使用 word-break |
| 文本 | 无替代 |
| 背景 | 无替代 |
| 背景 | 无替代 |
| 背景 | 无替代 |
| 遮罩 | 无替代 |
| Flex | 无替代 |
| 列表 | 无替代 |
.container {
display: grid; /* grid 不支持 */
position: sticky; /* sticky 不支持 */
overflow: auto; /* auto 不支持 */
}.container {
display: flex; /* 使用 flex 替代 grid */
position: relative; /* sticky 需使用 sticky-header 组件 */
overflow: hidden; /* 使用 hidden,滚动用 scroll-view */
}.container {
display: grid; /* grid 不支持 */
position: sticky; /* sticky 不支持 */
overflow: auto; /* auto 不支持 */
}.container {
display: flex; /* 使用 flex 替代 grid */
position: relative; /* sticky 需使用 sticky-header 组件 */
overflow: hidden; /* 使用 hidden,滚动用 scroll-view */
}radial-gradientcircleellipsepx%linear-gradient%conic-gradientradial-gradientcircleellipsepx%linear-gradient%conic-gradientbackground-imagemask-imagebackground-positionbackground-repeatbackground-sizebackground-imagemask-imagebackground-positionbackground-repeatbackground-sizecalc()calc()text-overflow: ellipsis<text><view><text>overflowmax-lines⚠️ 详见技能了解 text 组件的属性限制。skyline-components
text-overflow: ellipsis<text><view><text>overflowmax-lines⚠️ 详见技能了解 text 组件的属性限制。skyline-components
url()drop-shadow()box-shadowdrop-shadowblur()brightness()contrast()grayscale()hue-rotate()invert()opacity()saturate()sepia()url()drop-shadow()box-shadowdrop-shadowblur()brightness()contrast()grayscale()hue-rotate()invert()opacity()saturate()sepia()noneunderlineoverlineline-throughunderline line-throughnoneunderlineoverlineline-throughunderline line-throughmask-imagelinear-gradient()radial-gradient()url()mask-imagelinear-gradient()radial-gradient()url()| 简写属性 | 不生效的子属性 |
|---|---|
| |
| |
| |
💡简写有效:会自动展开为mask-position+mask-position-x(类似mask-position-y的机制)。background-position
| 简写属性 | 不生效的子属性 |
|---|---|
| |
| |
| |
💡简写有效:会自动展开为mask-position+mask-position-x(类似mask-position-y的机制)。background-position
| 属性 | 支持的值 | 不支持的值 |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | — |
| | — |
| — | 不支持 |
| 属性 | 支持的值 | 不支持的值 |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | — |
| | — |
| — | 不支持 |
| 属性 | 支持的值 | 不支持的值 |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | |
| | 多值组合, |
| | — |
| 属性 | 支持的值 | 不支持的值 |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | |
| | 多值组合, |
| | — |
| 属性 | 支持的值 | 不支持的值 |
|---|---|---|
| | |
| | |
| 属性 | 支持的值 | 不支持的值 |
|---|---|---|
| | |
| | |
flex-directionflex-wrapalign-itemsalign-selfalign-contentjustify-contentflex-growflex-shrinkflex-basisorderflex-directionflex-wrapalign-itemsalign-selfalign-contentjustify-contentflex-growflex-shrinkflex-basisorder| 属性 | Skyline 默认值 | Web 标准默认值 | 条件 |
|---|---|---|---|
| | | |
| | | — |
| | | |
| | | |
| | | |
| | | — |
| | | — |
| 属性 | Skyline 默认值 | Web 标准默认值 | 条件 |
|---|---|---|---|
| | | |
| | | — |
| | | |
| | | |
| | | |
| | | — |
| | | — |
pointer-eventstext-decoration-stylebackground-sizetransformopacitytransition-*animation-*border-radiusbox-shadowtext-shadowcolorfont-sizefont-familyfont-feature-settingsline-heightletter-spacingword-spacingz-indexaspect-ratiocontentwill-changeautocontentsconic-gradientpointer-eventstext-decoration-stylebackground-sizetransformopacitytransition-*animation-*border-radiusbox-shadowtext-shadowcolorfont-sizefont-familyfont-feature-settingsline-heightletter-spacingword-spacingz-indexaspect-ratiocontentwill-changeautocontentsconic-gradient| 场景 | 推荐技能 | 说明 |
|---|---|---|
| Skyline JSON 配置 | | rendererOptions 影响默认 display/flex-direction/align-items/box-sizing |
| 组件使用 | | scroll-view 替代 overflow:auto |
| Worklet 动画 | | transform/opacity 动画最佳实践 |
| Skyline 概览 | | 渲染引擎概览与迁移指南 |
| 场景 | 推荐技能 | 说明 |
|---|---|---|
| Skyline JSON 配置 | | rendererOptions 影响默认 display/flex-direction/align-items/box-sizing |
| 组件使用 | | scroll-view 替代 overflow:auto |
| Worklet 动画 | | transform/opacity 动画最佳实践 |
| Skyline 概览 | | 渲染引擎概览与迁移指南 |
references/
├── animation.md
├── basics.md
├── flex.md
├── layout.md
├── text.md
└── visual.mdreferences/
├── animation.md
├── basics.md
├── flex.md
├── layout.md
├── text.md
└── visual.md