<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>清除表单边框和固定文本域大小</title>
<style>
input,
textarea {
/*清除表单边框*/
outline: none;
}
textarea {
/*禁止拖动多行文本框*/
resize: none;
}
</style>
</head>
<body>
<input type="text" />
<textarea rows="5" cols="20"></textarea>
</body>
</html>