flex实现重叠效果
我这是微信小程序的写法,但是思路css和html一样,view换成div一样
最好给两个内容一定的大小或内容,然后flex布局实现居中,定位实现叠加
<view class="one">
<view class="two">
</view>
</view>
.one{
display: flex;
align-items: center;
justify-content: center;
position:relative;
}
.two{
position: absolute;
bottom: 20rpx;
}