收藏
回答

手机端和电脑端显示不一样?

回答关注问题邀请回答
收藏

2 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2021-08-10

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2021-08-10
    有用
    回复 3
  • 眉眼如初
    眉眼如初
    2021-08-10
    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{
      width300px;
      height30px;
      font-size25px;
      margin20px auto;
    }
    .tu1{
      height200px;
    }
    .tu1 image{
      width150px;
      height150px;
      margin20px;
    }
    .btn{
      width:100%;
      height:60px;
      background:green;
      border-radius10px;
      line-height60px;
      text-align: center;
      font-size30px;
      margin-top60px;
    }
    
    
    
    2021-08-10
    有用
    回复
登录 后发表内容