|
[多端开发]
安卓 css transition属性无效果
[复制链接]
复现代码:IOS正常<template>
<view class="page">
<text class="btn" onclick={this.click}>点击变宽</text>
<view class={'view' + (classname ? ' a' :'')}></view>
</view>
</template>
<script>
export default {
apiready() {},
data() {
return {
classname: false
};
},
methods: {
click() {
this.data.classname = true;
}
}
};
</script>
<style>
.page {
height: 100%;
}
.btn {
margin-top: 40px;
}
.view {
width: 100px;
height: 100px;
background: blue;
transition: width 2s;
}
.a {
width: 300px;
}
</style>
|
|