提交 b5ee2a1b 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

style: 修复web端页面无法滚动问题

上级 afb47f36
<template> <template>
<!-- #ifdef APP -->
<scroll-view class="page"> <scroll-view class="page">
<!-- #endif -->
<view class="rotate-container">
<view class="trace"> <view class="trace">
<view class="base reserve"> <view class="base reserve">
<text class="reserve-text">rotate(20deg)</text> <text class="reserve-text">rotate(20deg)</text>
...@@ -38,21 +35,12 @@ ...@@ -38,21 +35,12 @@
<text>rotateZ(50deg)</text> <text>rotateZ(50deg)</text>
<text>转变后位置</text> <text>转变后位置</text>
</view> </view>
</view>
<!-- #ifdef APP -->
</scroll-view> </scroll-view>
<!-- #endif -->
</template> </template>
<style> <style>
.page { .page {
flex: 1; flex: 1;
}
.rotate-container {
height: 100%;
display: flex;
align-items: center; align-items: center;
} }
...@@ -74,15 +62,15 @@ ...@@ -74,15 +62,15 @@
.reserve { .reserve {
border: 1px dotted #588; border: 1px dotted #588;
background-color: #DDD; background-color: #ddd;
} }
.reserve-text { .reserve-text {
color: #CCC; color: #ccc;
} }
.transform { .transform {
border: 1px solid #00F; border: 1px solid #00f;
background-color: rgba(0, 255, 255, 0.5); background-color: rgba(0, 255, 255, 0.5);
} }
</style> </style>
<template> <template>
<!-- #ifdef APP -->
<scroll-view class="page"> <scroll-view class="page">
<!-- #endif -->
<view class="translate-container">
<view class="trace"> <view class="trace">
<view class="base reserve"> <view class="base reserve">
<text class="reserve-text">translateX(80%)</text> <text class="reserve-text">translateX(80%)</text>
...@@ -30,20 +27,12 @@ ...@@ -30,20 +27,12 @@
<text>translate(-50%,50%)</text> <text>translate(-50%,50%)</text>
<text>转变后位置</text> <text>转变后位置</text>
</view> </view>
</view>
<!-- #ifdef APP -->
</scroll-view> </scroll-view>
<!-- #endif -->
</template> </template>
<style> <style>
.page { .page {
flex: 1; flex: 1;
}
.translate-container{
height: 100%;
display: flex;
align-items: center; align-items: center;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册