Install
openclaw skills install easy-html-poster快速用HTML和浏览器截图制作适合小红书和朋友圈的农业或法律风格海报模板。
openclaw skills install easy-html-poster用HTML+浏览器截图的方式快速制作小红书/朋友圈海报。
在 ~/Desktop/ 目录下创建HTML文件,包含完整样式的小红书海报模板。
关键要点:
font-family: 'Noto Sans SC' 支持中文cd ~/Desktop
python3 -m http.server 9999
http://localhost:9999/文件名.html<style>
.poster { width: 800px; height: 1200px; background: white; }
.header { background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%); padding: 30px; text-align: center; }
.header-title { font-size: 36px; font-weight: 900; color: white; }
.section { background: #F8F8F8; border-radius: 12px; padding: 15px; margin-bottom: 12px; }
.section-title { font-size: 18px; font-weight: 700; color: #27AE60; }
.highlight-box { background: #E8F8F0; border-radius: 12px; padding: 15px; border-left: 5px solid #27AE60; }
.warning-box { background: #FDEBD0; border-radius: 12px; padding: 15px; border-left: 5px solid #E67E22; }
.footer { background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%); padding: 20px; text-align: center; }
.tag { background: #E8F8F0; color: #27AE60; padding: 5px 10px; border-radius: 15px; font-size: 12px; }
</style>
<style>
.poster { width: 800px; height: 1200px; display: flex; }
.left { width: 220px; background: #FFF5F5; }
.right { flex: 1; background: white; }
.header { background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%); border-radius: 10px; padding: 16px; }
.case-box { background: #F8F8F8; border-radius: 8px; padding: 12px; }
.result-box { background: linear-gradient(135deg, #FFE5E5 0%, #FFF5F5 100%); border-radius: 8px; padding: 10px; }
.cta-box { background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%); border-radius: 8px; padding: 10px; }
</style>
# 启动服务器
cd ~/Desktop && python3 -m http.server 9999
# 关闭服务器
pkill -f "python3 -m http.server 9999"