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

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

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