CSS resize 代码编辑器示例
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;