提交 78a2a962 编写于 作者: xuty73419315's avatar xuty73419315

抹平css->layout->position fixed元素web和app的差异

上级 00947aff
......@@ -81,7 +81,7 @@
<view
style="width: 50px; height: 50px; background-color: red"
></view>
<view class="common" style="position: fixed">
<view class="common fixed" style="position: fixed">
<text>fixed</text>
</view>
<view
......@@ -111,6 +111,7 @@
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<style>
......@@ -123,4 +124,11 @@
justify-content: center;
align-items: center;
}
.fixed {
/* #ifdef H5*/
top: calc(var(--window-top) + 25px);
/* #endif */
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册