HTML 在线渲染工具
输入 HTML
渲染
清空
<!DOCTYPE html> <html> <head> <title>示例页面</title> <style> body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; background: #f8f9fa; } .header { text-align: center; padding: 30px; background: linear-gradient(135deg, #3498db, #2ecc71); color: white; border-radius: 10px; margin-bottom: 30px; } .card-container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; } .card { background: white; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 20px; width: 200px; text-align: center; transition: transform 0.3s; } .card:hover { transform: translateY(-5px); } .card i { font-size: 2.5rem; margin-bottom: 15px; color: #3498db; } .btn { display: inline-block; margin-top: 20px; padding: 12px 25px; background: #e74c3c; color: white; text-decoration: none; border-radius: 30px; font-weight: bold; transition: all 0.3s; } .btn:hover { background: #c0392b; transform: scale(1.05); } </style> </head> <body> <div class="header"> <h1>欢迎使用HTML渲染工具</h1> <p>在左侧编辑HTML代码,右侧实时预览效果</p> </div> <div class="card-container"> <div class="card"> <h3>实时渲染</h3> <p>所见即所得的编辑体验</p> </div> <div class="card"> <h3>快速高效</h3> <p>无需刷新即时更新</p> </div> <div class="card"> <h3>响应式</h3> <p>适配所有设备尺寸</p> </div> </div> <a href="#" class="btn">开始创建您的页面</a> </body> </html>
字符:
0
行数:
0
渲染预览
全屏