<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS取消表单轮廓和防止文本域拖拽</title>
<style>
input,textarea{
outline:none;//取消轮廓
}
textarea{
resize: none;//防止文本域拖拽
padding:20px;
}
</style>
</head>
<body>
<input type="text">
<textarea name="" id="" cols="30" rows="10"></textarea>
</body>
</html>