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;
}
/* 文本域默认可以调整,但可以通过 resize 属性控制 */
.textarea-resize-both {
width: 300px;
height: 150px;
padding: 10px;
border: 2px solid #3498db;
resize: both;
overflow: auto;
display: block;
margin-bottom: 20px;
font-family: Arial, sans-serif;
font-size: 14px;
}