maxlength="255" οnkeydοwn="if(this.value.length>=255) {event.returnValue=false}" 转载于:https://www.cnblogs.com/chuningning/p/9182413.html