按钮的边框消失了
来源:3-10 聊聊小程序的方便性与灵活性的悖论
晓舟
2021-09-11
.container{
display:flex;
flex-direction:column;
align-items: center;
background-color: #b3d4db;
}
.l-avatar{
margin-top: 300rpx;
position: absolute;
margin-left:5rpx;
}
.journey-btn{
border: 1px solid #b3d4db;
width:300rpx;
height:60rpx;
border-radius: 5rpx;
text-align: center;
margin-top: 260rpx;
}
.journey{
line-height: 60rpx;
/* 设置成和容器一样高 */
font-size:22rpx;
}
text{
margin-top:330rpx;
font-size:32rpx;
}
page{
background-color: #b3d4db;
}
index.wxss
index.wxml
1回答
-
晓舟
提问者
2021-09-11
<view class="container">
<l-avatar placement="bottom" class="l-avatar" open-data="{{['userAvatarUrl','userNickName']}}" size="180" />
<text class="motto">Hello,Belle</text>
<view class="journey-btn">
<text class="journey">开启小程序之旅</text>
</view>
</view>
022022-04-13
相似问题