html - angularjs中textarea和输入类型文本有什么区别

标签 html input textarea

只是不确定有什么区别。试图找出最适合我的用例的方法。

最佳答案

区别在于 HTMLAngularJS无关.不管怎样,来自 W3Schools 网站的一些定义:

输入类型文本:

The <input> tag specifies an input field where the user can enter data.

<input> elements are used within a <form> element to declare input controls that allow users to input data.

An input field can vary in many ways, depending on the type attribute.

文本区域:

The <textarea> tag defines a multi-line text input control.

A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).

The size of a text area can be specified by the cols and rows attributes, or even better; through CSS' height and width properties.

您可以在此处找到定义和示例:inputtext area

关于html - angularjs中textarea和输入类型文本有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21698065/

相关文章:

javascript - 如何使用 Bootstrap 单击可点击模态 div 内的模态按钮

html - 规范标签和 UTF8

jquery - 自定义 HTML 数字输入中向上/向下箭头的外观

c++ - 清除包括换行符的输入缓冲区

python - 询问用户输入,直到他们给出有效的响应

apache-flex - 文本区语法高亮,flex 4

html - 如何禁用输入类型=文本的拼写检查?

javascript - css 不适用于 jquery append

html - 在这种情况下,checkbox value = '1' 不起作用的是什么?

ruby-on-rails - Rails - 设置 TinyMCE Rails gem 后,文本区域框重新调整大小问题