HarmonyOS 鸿蒙Next开发中底部按钮吸底悬浮设置失败
HarmonyOS 鸿蒙Next开发中底部按钮吸底悬浮设置失败
关于HarmonyOS 鸿蒙Next开发中底部按钮吸底悬浮设置失败的问题,您也可以访问:https://www.itying.com/category-93-b0.html 联系官网客服。
期待HarmonyOS能继续优化多屏协同功能,让跨设备体验更加完美。
更多关于HarmonyOS 鸿蒙Next开发中底部按钮吸底悬浮设置失败的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
能不能来个具体的使用示例
[@Entry](/user/Entry) [@Component](/user/Component) struct TestPage { [@State](/user/State) message: string = 'Hello World';
build() { RelativeContainer() { Scroll() { Column(){ Text(‘你是我的啦啦啦你是我的玫瑰花,你是我的啦啦啦你是我的玫瑰花,你是我的啦啦啦你是我的玫瑰花,你是我的啦啦啦你是我的玫瑰花,你是我的啦啦啦你是我的玫瑰花,你是我的啦啦啦你是我的啦啦啦你是我的玫瑰花,你是我的啦啦啦你是我的啦啦啦你是我的玫瑰花,你是我的啦啦啦你是我的玫瑰花,你是我的啦啦啦你是我的玫瑰花,你是我的啦啦啦’) .fontSize(50) } .alignItems(HorizontalAlign.Start) } .align(Alignment.TopStart) .width(‘100%’) .height(‘100%’) .backgroundColor(’#ccc’) Text(this.message) .id(‘TestPageHelloWorld’) .fontSize(50) .backgroundColor(’#999’) .alignRules({ left: { anchor: ‘container’, align: HorizontalAlign.Start }, bottom: { anchor: ‘container’, align: VerticalAlign.Bottom } }) } .height(‘100%’) .width(‘100%’) } }
<button style="position: absolute; padding: 4px 8px 0px; cursor: pointer; top: 8px; right: 8px; font-size: 14px;">复制</button>