1. <textarea> autofocus属性使得文本在页面加载后获得焦点 2. 设置<textarea> resize=none; 可以固定文本大小,使其不能拖拽。 转载于:https://www.cnblogs.com/linxd/p/4390186.html