- #!/bin/bash
- # 更新所有页面的body和container样式
- for file in pages/*.html; do
- echo "更新页面样式: $file"
-
- # 更新body样式
- sed -i '' 's/height: auto;/height: auto; overflow-y: auto; overflow-x: hidden;/' "$file"
-
- # 更新page-container样式
- sed -i '' 's/min-height: 100vh;/min-height: 100vh; width: 100%; max-width: 100%; box-sizing: border-box;/' "$file"
-
- echo "更新完成: $file"
- done
- echo "所有页面更新完成!"
|