为什么不是textarea输入[type =" textarea"]? [英] Why isn't textarea an input[type="textarea"]?
本文介绍了为什么不是textarea输入[type =" textarea"]?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么有元素< textarea>
而不是< input type =textarea>
?
解决方案
也许这有点过头了,但... ...
< blockquote>
另外,我想建议多行文本字段与单行字段(text)具有不同的类型(例如textarea),因为它们实际上是不同类型的东西,并暗示客户端处理的不同问题(语义)。
Why is there an element <textarea>
instead of <input type="textarea">
?
解决方案
Maybe this is going a bit too far back but…
Also, I’d like to suggest that multiline text fields have a different type (e.g. "textarea") than single-line fields ("text"), as they really are different types of things, and imply different issues (semantics) for client-side handling.
– Marc Andreessen, 11 October 1993
这篇关于为什么不是textarea输入[type =" textarea"]?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文