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;
background-color: #f5f5f5;
}
.resizable-container {
width: 400px;
height: 300px;
min-width: 200px;
min-height: 150px;
max-width: 800px;
max-height: 600px;
border: 2px solid #9b59b6;
padding: 20px;
overflow: auto;
resize: both;
background-color: #f4f4f4;