uni - dynamically obtain the height of the navigation bar

case code

getting information

uni.getSystemInfoSync()  //整体信息

insert image description here

Dynamic use

<view class="tabBox" :style="{top: navHeight + 'px'}">

Guess you like

Origin blog.csdn.net/xulihua_75/article/details/130126384