先看效果:
.wxss文件
.button_type {
height: 100rpx; //按钮高度
margin-left: 50rpx; //距离左边距
bottom: 10rpx; //距离底部距离
background-color: #f93; //背景颜色
position: fixed; //固定
width: 88%; //长度
}
当然最重要的是position的用法:position用法详解