DEVtoy
语言 · 简体中文

HTML 预览

在沙盒中预览 HTML 和 CSS。预览会阻止脚本和远程资源。

使用方法

  1. 粘贴输入内容或加载下方示例。
  2. 调整选项后点击“预览 HTML”。
  3. 检查结果,然后复制或下载。

无需上传,无需账户,处理完全在浏览器内完成。

输入示例
<!doctype html><html><head><style>body{font:16px system-ui;padding:24px;color:#18324b;background:#f0f7fc}article{max-width:560px;padding:24px;background:white;border-radius:16px}h1{color:#087f8c}li{margin:8px 0}code{background:#eef2f6;padding:3px 6px}</style></head><body><article><p>DEVtoy · Release notes</p><h1>Build something useful</h1><p>Preview <strong>HTML</strong> and <em>inline styles</em> together.</p><ul><li>Semantic headings and lists</li><li>Unicode: café, 日本語, 👋</li><li>Code: <code>npm run build</code></li></ul><blockquote>Small details make better tools.</blockquote><a href="https://example.com/docs">Read the documentation</a></article></body></html>

相关工具