微信小程序让某个元素靠右
父元素
.task-box{width: 690rpx;height: 70rpx;display: flex;flex-direction: row;margin-bottom: 40rpx;position: relative;//父元素位置要设置为相对}子元素
.task-box .checkbotton{position: absolute;//要约束所在位置的子元素的位置要设置成绝对right: 0;//调节靠右width: 120rpx;height: 70rpx;}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

