(一)項目需求+效果圖
1.需求
不同的手機型號,按鈕距離底部的距離相等。
2.效果圖
(二)代碼+代碼解析
1.代碼
/* 拒絕和同意按鈕的樣式 */
.reject {
margin-left: 10%;
width: 35%;
line-height: 10px;
position: fixed;
bottom:15px;
}
.agree {
margin-left: 56%;
width: 35%;
line-height: 10px;
position: fixed;
bottom:15px;
}