html: <view class='top'>恭喜你摇到了:{{num1}}{{num2}}</view> <view class='tu1'> <image src="{{img1}}"></image> <image style="position: relative;top: -195px;left: 170px;" src="{{img2}}"></image> </view> <view class='btn' bindtap='yao'>摇一摇</view> css: .top{ width: 300px; height: 30px; font-size: 25px; margin: 20px auto; } .tu1{ height: 200px; } .tu1 image{ width: 150px; height: 150px; margin: 20px; } .btn{ width:100%; height:60px; background:green; border-radius: 10px; line-height: 60px; text-align: center; font-size: 30px; margin-top: 60px; }
手机端和电脑端显示不一样?[图片][图片]
2021-08-10