diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/adaptive-layout.md b/zh-cn/application-dev/key-features/multi-device-app-dev/adaptive-layout.md index 460af3ee3593efe15f04bf76cac98cd17e797539..ceb0c94c717f857c4cd7b3c91a9a04e58eddafd8 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/adaptive-layout.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/adaptive-layout.md @@ -419,8 +419,8 @@ struct ScaleCapabilitySample { Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { Column() { Image($r("app.media.illustrator")).width('100%').height('100%') + .aspectRatio(1) // 固定宽高比 } - .aspectRatio(1) // 固定宽高比 .border({ width: 2, color: "#66F1CCB8"}) // 边框,仅用于展示效果 } .backgroundColor("#FFFFFF")