适配小屏手机
This commit is contained in:
@@ -408,6 +408,7 @@ h3 b {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 0.4rem;
|
||||
z-index: 8;
|
||||
}
|
||||
|
||||
.my div {
|
||||
|
@@ -416,6 +416,7 @@ h3 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 px2rem(30);
|
||||
z-index: 8;
|
||||
|
||||
div {
|
||||
min-width: px2rem(328);
|
||||
|
@@ -424,7 +424,7 @@ function getListRank (type, page) {
|
||||
<img src="${item.avatar}" alt="">
|
||||
<span class="others-nick">${item.nick.length > 5 ? item.nick.slice(0, 5) + '...' : item.nick}</span>
|
||||
</div>
|
||||
<span class="others-diamond-num">${type == 1 ? `${unitProcessing(res.data.myRankInfo.num, 10000, 1, 'w')}` : `猜中 ${res.data.myRankInfo.num} 次`}</span>
|
||||
<span class="others-diamond-num">${type == 1 ? `${unitProcessing(item.num, 10000, 1, 'w')}` : `猜中 ${item.num} 次`}</span>
|
||||
</li>
|
||||
`
|
||||
});
|
||||
|
@@ -42,4 +42,5 @@ function move () {
|
||||
|
||||
}
|
||||
window.requestAnimationFrame(move);
|
||||
$('body,html').css({ "width": "100%", "position": "relative", "overflow": "auto" });
|
||||
}
|
Reference in New Issue
Block a user