提交 e4feec19 编写于 作者: DCloud-yyl's avatar DCloud-yyl

web端与app端截图差异优化:避免在条件编译中的scroll-view中设置style

上级 6e378556
<template>
<!-- #ifdef APP -->
<scroll-view style="flex:1;padding: 10px;">
<scroll-view style="flex:1;">
<!-- #endif -->
<button @click="switchBtn">{{buttonValue}}</button>
<image class="transition-transform" id="transition-transform" @transitionend="onEnd" src="/static/uni.png"></image>
<text>对图片设置transform进行旋转,在旋转完成的transitionend事件后,继续旋转</text>
<text class="adjust">对图片设置transform进行旋转,在旋转完成的transitionend事件后,继续旋转</text>
<button class="adjust" @click="switchBtn">{{buttonValue}}</button>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
......@@ -52,14 +52,17 @@
</script>
<style>
.transition-transform {
width: 200px;
height: 200px;
margin: 25px auto;
border-radius: 100px;
transition-duration: 2000ms;
transition-property: transform;
transition-timing-function: linear;
transform: rotate(0deg);
}
.adjust {
margin: 10px;
}
.transition-transform {
width: 200px;
height: 200px;
margin: 25px auto;
border-radius: 100px;
transition-duration: 2000ms;
transition-property: transform;
transition-timing-function: linear;
transform: rotate(0deg);
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册