diff --git a/css/school.css b/css/school.css index e90502d..4a5b1ac 100644 --- a/css/school.css +++ b/css/school.css @@ -169,7 +169,7 @@ } .boxbox .details .right .brief .text { margin-right: 15px; - width: 898px; + width: 878px; } .boxbox .details .right .brief .img { width: 16px; diff --git a/css/school.less b/css/school.less index a299129..f77e1b8 100644 --- a/css/school.less +++ b/css/school.less @@ -186,7 +186,7 @@ .text { margin-right: 15px; - width: 898px; + width: 878px; } .img { diff --git a/css/subject.css b/css/subject.css index 99411d2..b5cf900 100644 --- a/css/subject.css +++ b/css/subject.css @@ -1,4 +1,4 @@ -.box { +.boxbox { width: 1200px; height: 396px; background-color: #ffffff; @@ -6,7 +6,7 @@ position: relative; margin-bottom: 20px; } -.box::after { +.boxbox::after { content: ""; position: absolute; top: -5px; @@ -19,35 +19,35 @@ border-radius: 18px; z-index: -1; } -.box .tab { +.boxbox .tab { height: 60px; font-size: 14px; color: #7f7f7f; border-bottom: 1px dotted #ebebeb; padding-left: 24px; } -.box .tab .img { +.boxbox .tab .img { width: 6px; height: 10px; margin: 0 15px; } -.box .tab .current { +.boxbox .tab .current { font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; font-weight: 650; font-style: normal; font-size: 14px; color: #000000; } -.box .info { +.boxbox .info { padding: 41px 60px 0; margin-bottom: 40px; } -.box .info .img { +.boxbox .info .img { width: 120px; height: 120px; margin-right: 40px; } -.box .info .title { +.boxbox .info .title { font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; font-weight: 650; font-style: normal; @@ -55,10 +55,10 @@ color: #000000; margin-bottom: 20px; } -.box .info .list { +.boxbox .info .list { flex-wrap: wrap; } -.box .info .list .item { +.boxbox .info .list .item { width: fit-content; height: 36px; line-height: 36px; @@ -72,7 +72,7 @@ margin-right: 10px; cursor: pointer; } -.box .info .list .item.pitch { +.boxbox .info .list .item.pitch { background-color: #7b8cd3; color: #ffffff; border: none; diff --git a/css/subject.less b/css/subject.less index 6a12efd..5a9b67b 100644 --- a/css/subject.less +++ b/css/subject.less @@ -1,4 +1,4 @@ -.box { +.boxbox { width: 1200px; height: 396px; background-color: rgba(255, 255, 255, 1); diff --git a/js/base.js b/js/base.js index b9e112c..bc79af5 100644 --- a/js/base.js +++ b/js/base.js @@ -52,14 +52,6 @@ const base = { this.left = null this.hideIcon = false }, 330) - - return - const button = document.querySelector(".button") - const container = document.querySelector(".container") - const containerWidth = container.offsetWidth - const buttonWidth = button.offsetWidth - const buttonLeft = (containerWidth - buttonWidth) / 2 - button.style.left = buttonLeft + "px" }, }, }