收藏
回答

为什么登录页面页面背景变成窄条?大家帮忙呀

这两个代码完全一样,我复制上去的,为什么出来的背景不一样啊,怎么改能变一样,谢谢

app.wxss

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 200rpx 0;
  box-sizing: border-box;
} 

index.wxml

<view class="container">
  <view class="userinfo">
    <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
    <block wx:else>
      <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
      <text class="userinfo-nickname">{{userInfo.nickName}}</text>
    </block>
  </view>
  <view class="usermotto">
    <text class="user-motto">{{motto}}</text>
  </view>
</view>

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

2 个回答

  • Mr.Zhao
    Mr.Zhao
    2020-04-05

    你把项目发到我邮箱,我给你改改吧。zyh_summer@163.com 多余的页面删掉就行了

    2020-04-05
    有用 1
    回复 3
    • 香蕉君
      香蕉君
      2020-04-05
      谢谢
      2020-04-05
      回复
    • 香蕉君
      香蕉君
      2020-04-05
      发了
      2020-04-05
      回复
    • Mr.Zhao
      Mr.Zhao
      2020-04-05回复香蕉君
      让你删去多余页面,你却删的一干二净,都没法运行,你还是整个项目发我吧
      2020-04-05
      回复
  • 青团社
    青团社
    2020-04-10

    因为你写死高度了。

    2020-04-10
    有用
    回复
登录 后发表内容
问题标签