左边最小修改为260px

This commit is contained in:
daihh
2022-10-08 15:58:41 +08:00
parent 34aea2cd7c
commit 402734e40d
2 changed files with 3 additions and 2 deletions

View File

@@ -278,7 +278,7 @@ body {margin: 0px;padding: 0px;}
width: 1100px;
}
.xcontent2-minor{
width: 234px;
width: 260px;
}
.portal-ranking{
padding: 20px 15px;

View File

@@ -452,6 +452,7 @@ export default {
.clientHeight;
let outerHeight = document.documentElement.clientHeight;
let scrollTop = document.documentElement.scrollTop;
let outerWidth = document.querySelector(".xcontent2-minor").clientWidth;
if (outerHeight + scrollTop + 350 >= innerHeight) {
if (this.moreState == 1 && this.course.pageIndex < 4) {
this.loadMore();
@@ -459,7 +460,7 @@ export default {
}
if (scrollTop > 830) {
document.querySelector("#fixd-box").style.cssText =
"position: fixed;top: -914px;";
"position: fixed;top: -914px;width:"+outerWidth+"px";
} else {
document.querySelector("#fixd-box").style.cssText = "position: static";
}