diff --git a/css/common.css b/css/common.css index 0d5ca49..63c0dea 100644 --- a/css/common.css +++ b/css/common.css @@ -46,7 +46,7 @@ body { height: 60px; background-color: #7b8cd3; border-radius: 153px; - position: fixed; + position: sticky; bottom: 15px; left: 50%; transform: translateX(-50%); diff --git a/css/common.less b/css/common.less index efa5ca0..bf92954 100644 --- a/css/common.less +++ b/css/common.less @@ -56,7 +56,7 @@ body { height: 60px; background-color: rgba(123, 140, 211, 1); border-radius: 153px; - position: fixed; + position: sticky; bottom: 15px; left: 50%; transform: translateX(-50%); diff --git a/css/search.css b/css/search.css index 5354236..255bf6b 100644 --- a/css/search.css +++ b/css/search.css @@ -262,7 +262,6 @@ } .boxbox .body .right .list .item { width: fit-content; - height: 36px; line-height: 36px; text-align: center; background-color: #ffffff; diff --git a/css/search.less b/css/search.less index e24169d..1f6c792 100644 --- a/css/search.less +++ b/css/search.less @@ -283,7 +283,7 @@ .item { width: fit-content; - height: 36px; + // height: 36px; line-height: 36px; text-align: center; background-color: rgba(255, 255, 255, 1); diff --git a/html/search.html b/html/search.html index afd373d..6e4a3a0 100644 --- a/html/search.html +++ b/html/search.html @@ -199,7 +199,7 @@ count.value = 0 getList() } - + const selectKW = name => { kw.value = name if (!historyList.value.includes(kw.value)) historyList.value.unshift(kw.value) @@ -255,7 +255,7 @@ return { showList, count, kw, submit, pl, historyList, selectKW, handleClick, openMoreSelect, closeMoreSelectAll } }, }) - + search.mount("#app")