fix-iframe-content.sh 460 B

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