html52.com
我爱小程序-开发者交流社区

opendata问题?

  opendata获取头像信息,wxss怎么搞掉如图的白色框框。 opendata获取头像信息,wxss怎么搞掉如图的白色框框。

wxss
.userinfo {  
  position: relative;  
  width750rpx;  
  height320rpx;  
  color:black;
  display: flex;  
  flex-direction: column;  
  align-items: center;  
  
}  
  
.user-avatar {  
  overflow:hidden;  
  display: block;  
  width180rpx;  
  height180rpx;  
  margin20rpx;  
  margin-top50rpx;  
  border-radius50%; 
} 
.user-name{
  font-size35rpx;
}

网友回复

(๑ ॑꒳ ॑๑):
检查一下container的背景色是白色的吗?
或者
.userinfo{
   background-color: transparent;
}
呆。@:

.userinfo {

background: none;

}


零壹.:
wxml
<view class="container">
   <view class="userinfo">
      <open-data class="user-avatar" type="userAvatarUrl"></open-data>
      <open-data class="user-name" type="userNickName"></open-data>
   </view>
</view>

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付