diff --git a/css/common.css b/css/common.css index 6760986..032f4a8 100644 --- a/css/common.css +++ b/css/common.css @@ -63,8 +63,7 @@ body { border-radius: 153px; position: sticky; bottom: 15px; - left: 50%; - transform: translateX(-50%); + left: calc((100vw - 640px) / 2); z-index: 100; } .base .left { diff --git a/css/common.less b/css/common.less index fe0440e..9395ed3 100644 --- a/css/common.less +++ b/css/common.less @@ -78,8 +78,9 @@ body { border-radius: 153px; position: sticky; bottom: 15px; - left: 50%; - transform: translateX(-50%); + // left: 50%; + // transform: translateX(-50%); + left: calc((100vw - 640px) / 2); z-index: 100; .left { width: 450px; diff --git a/html/details.html b/html/details.html index c8f6af4..88c7721 100644 --- a/html/details.html +++ b/html/details.html @@ -15,6 +15,9 @@
+
+ +
@@ -670,7 +673,7 @@
diff --git a/img/details-icon.png b/img/details-icon.png index f463893..30584e6 100644 Binary files a/img/details-icon.png and b/img/details-icon.png differ diff --git a/img/subject.png b/img/subject.png index 46789f4..4bb42b1 100644 Binary files a/img/subject.png and b/img/subject.png differ diff --git a/js/common.js b/js/common.js index 4d6bb41..f4c16cc 100644 --- a/js/common.js +++ b/js/common.js @@ -133,7 +133,7 @@ function getBaseData() { // 处理数据 resolve(basicData) return - } + } $ajaxget("/api/home/basicData").then(res => { if (res.code != 200) return