CSS resize 代码编辑器示例

CSS resize1 个文件更新于 2026-04-06
html公开前 25 行,完整代码需登录
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>CSS resize 代码编辑器示例</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      padding: 20px;
    }

    .code-editor {
      width: 500px;
      height: 300px;
      border: 1px solid #2c3e50;
      border-radius: 4px;
      overflow: hidden;
      resize: both;
      display: flex;
      flex-direction: column;
    }

    .code-header {
      background-color: #34495e;

登录后可以查看完整源码、在线编辑并实时预览运行效果。