父元素 

.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;}

 

TAG标签: 微信小程序今天微信

http://www.xiaochengxub.com/read-107005.html