差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
start [2025/06/22 17:01] – jason | start [2025/06/23 09:07] (目前版本) – jason | ||
---|---|---|---|
行 3: | 行 3: | ||
< | < | ||
< | < | ||
- | /* 整体布局样式 | + | /* 外層容器 |
# | # | ||
display: flex; | display: flex; | ||
行 9: | 行 9: | ||
justify-content: | justify-content: | ||
align-items: | align-items: | ||
- | height: 75vh; | + | |
+ | padding: 0 1em 15em; | ||
text-align: center; | text-align: center; | ||
+ | box-sizing: border-box; | ||
} | } | ||
- | /* 网站标题 | + | /* 標題 |
# | # | ||
- | font-size: 2.5em; | + | font-size: 2.2em; |
- | margin-bottom: | + | margin-bottom: |
- | color: # | + | color: #2c3e50; |
} | } | ||
- | /* 简短描述 */ | + | /* 描述文字 |
# | # | ||
- | font-size: 1.2em; | + | font-size: 1.1em; |
- | color: #555; | + | color: #666; |
- | margin-top: | + | margin-top: |
- | | + | |
} | } | ||
- | /* 搜索输入框 */ | + | /* 搜索表單 */ |
+ | # | ||
+ | display: flex; | ||
+ | flex-wrap: wrap; | ||
+ | justify-content: | ||
+ | gap: 0.5em; | ||
+ | width: 100%; | ||
+ | max-width: 480px; | ||
+ | } | ||
+ | |||
+ | /* 搜索框 */ | ||
# | # | ||
- | | + | |
- | height: | + | height: |
- | font-size: | + | font-size: |
padding: 5px 15px; | padding: 5px 15px; | ||
- | border-radius: | + | border-radius: |
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
- | box-shadow: inset 0 1px 3px rgba(0, | + | box-shadow: inset 0 1px 2px rgba(0, |
outline: none; | outline: none; | ||
- | | + | |
+ | min-width: 0; | ||
} | } | ||
- | /* 搜索按钮 */ | + | /* 按鈕 */ |
# | # | ||
- | padding: | + | |
- | font-size: | + | |
- | border-radius: | + | font-size: |
+ | border-radius: | ||
border: none; | border: none; | ||
- | background-color: | ||
- | color: white; | ||
cursor: pointer; | cursor: pointer; | ||
+ | white-space: | ||
} | } | ||
- | /* 按钮 hover */ | + | |
- | # | + | |
- | | + | /* 響應式調整 |
+ | @media (max-width: 480px) { | ||
+ | # | ||
+ | font-size: 1.6em; | ||
+ | } | ||
+ | |||
+ | # | ||
+ | font-size: 0.95em; | ||
+ | margin-bottom: | ||
+ | } | ||
+ | |||
+ | # | ||
+ | flex-direction: | ||
+ | align-items: | ||
+ | gap: 0.5em; | ||
+ | } | ||
+ | |||
+ | # | ||
+ | | ||
+ | | ||
+ | border-radius: 10px; | ||
+ | } | ||
} | } | ||
</ | </ | ||
行 63: | 行 97: | ||
<input type=" | <input type=" | ||
<input type=" | <input type=" | ||
- | <input type=" | + | < |
</ | </ | ||
- | <p class=" | + | <p class=" |
+ | <p class=" | ||
</ | </ | ||
</ | </ | ||