Cover-view is not displayed in the content attribute after adding the postion, not displayed on the simulator and real machine.
<cover-view>Hello World</cover-view>
CSS代码:
position: absolute;
top: 100rpx;
left: 100rpx;
此时在模拟器和真机上都不显示;
当加入z-index: 1000;
此时在模拟器上会显示,但在真机上依然不显示。
-
Expected performance
Covering the display assembly on the map
-
Reproduction path
-
Offers one of the most simple reproducible Demo
Hello World
Solution:
First check the official documentation , understand the cover-view of the Notes
to write in a cover-view map label (camera image labels such as empathy)