<!DOCTYPE html>
<html>css
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
textarea {
display: block;
width: 500px;
height: 200px;
margin: 10px auto;
border: 1px solid red;
resize: none;
font-size: 34px;
}
</style>
</head>html
<body>
<textarea name="" rows="" cols="" id="box"></textarea>
</body>.net
</html>htm
參考連接 :https://blog.csdn.net/skiof007/article/details/6181145blog