diff --git a/scripts/nodes/search.mjs b/scripts/nodes/search.mjs index 0d8f2f2..36d999d 100644 --- a/scripts/nodes/search.mjs +++ b/scripts/nodes/search.mjs @@ -62,7 +62,7 @@ export function search({ homePath = '', isHome } = {}) { { type: 'element', tagName: 'input', - properties: { id: ['mysearch-input'], type: 'search' }, + properties: { id: ['mysearch-input'], type: 'search', placeholder: '搜索备忘清单' }, children: [], }, { diff --git a/scripts/style/style.css b/scripts/style/style.css index 4fcbea3..be8dc04 100644 --- a/scripts/style/style.css +++ b/scripts/style/style.css @@ -1260,6 +1260,10 @@ body.search { justify-content: center; } +.mysearch-input input::placeholder { + font-weight: normal; + font-size: 1.3rem; +} .mysearch-input { height: 3.5rem; display: flex;