HTML/CSS/JS 在线代码运行工具,主打代码快速测试,粘贴代码、一键运行,实时预览渲染效果,高效验证代码逻辑与页面样式。

<> .wce-wrap *.wce-wrap *::before.wce-wrap *::after { box-sizing: border-box; } .wce-wrap { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; overflow: hidden; margin: 24px 0; font-size: 14px; } /* 顶部栏 */ .wce-topbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid rgba(0,0,0,.1); gap: 10px; flex-wrap: wrap; } .wce-topbar-left { display: flex; align-items: center; gap: 10px; } .wce-topbar-right { display: flex; align-items: center; gap: 8px; } .wce-dots { display: flex; gap: 6px; } .wce-dots span { width: 12px; height: 12px; border-radius: 50%; display: block; } .wce-dots span:nth-child(1) { background: #ff5f57; } .wce-dots span:nth-child(2) { background: #febc2e; } .wce-dots span:nth-child(3) { background: #28c840; } .wce-title { font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; opacity: .75; } /* 字号控制 */ .wce-fontsize { display: flex; align-items: center; border: 1px solid rgba(0,0,0,.15); border-radius: 6px; overflow: hidden; } .wce-fontsize button { background: none; border: none; padding: 3px 9px; cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1; opacity: .55; transition: opacity .15s; } .wce-fontsize button:hover { opacity: 1; } .wce-fontsize-val { font-size: 11px; padding: 0 5px; min-width: 30px; text-align: center; opacity: .45; } /* 快捷键提示 */ .wce-kbd-hint { font-size: 11px; opacity: .4; border: 1px solid rgba(0,0,0,.15); border-radius: 4px; padding: 2px 8px; white-space: nowrap; } /* Ace 编辑器容器 */ #wceAce { width: 100%; height: 520px; } /* 状态栏 */ .wce-statusbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 13px; border-top: 1px solid rgba(0,0,0,.08); font-size: 11px; opacity: .5; flex-wrap: wrap; gap: 8px; } .wce-statusbar-left.wce-statusbar-right { display: flex; align-items: center; gap: 12px; } .wce-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #28c840; flex-shrink: 0; } /* 底部工具栏 */ .wce-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-top: 1px solid rgba(0,0,0,.1); flex-wrap: wrap; gap: 8px; } .wce-footer-left { display: flex; gap: 6px; flex-wrap: wrap; } .wce-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(0,0,0,.15); border-radius: 6px; padding: 5px 11px; cursor: pointer; font-size: 12px; font-weight: 500; background: none; transition: border-color .15sopacity .15s; white-space: nowrap; opacity: .65; } .wce-btn:hover { opacity: 1; border-color: rgba(0,0,0,.35); } .wce-btn-primary { background: #8ca86d; color: #fff !important; border-color: transparent; opacity: 1; box-shadow: 0 2px 8px rgba(192,120,74,.3);padding: 8px 20px; font-size: 14px; } .wce-btn-primary:hover { opacity: .9; border-color: transparent; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(192,120,74,.4); } /* Toast */ .wce-toast { position: fixed; bottom: 22px; right: 22px; padding: 9px 15px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); font-size: 13px; font-weight: 500; box-shadow: 0 6px 20px rgba(0,0,0,.15); opacity: 0; transform: translateY(6px); transition: opacity .22s easetransform .22s ease; z-index: 99999; pointer-events: none; display: flex; align-items: center; gap: 7px; background: #fff; color: #222; } .wce-toast.show { opacity: 1; transform: translateY(0); } @media (max-width: 600px) { .wce-fontsize.wce-kbd-hint { display: none; } #wceAce { height: 300px; } }
在线代码运行工具
Ctrl+Enter 运行  |  Ctrl+Space 补全  |  Ctrl+/ 注释
14px
HTML 行 1,列 1 0 字符
UTF-8 RUNOOB Editor

本页面只供测试,更多高级功能可以使用 AI IDE: