We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML5 中的表单,无论是在表现方面,还是在功能方面,都非常优越,使用 HTML5 表单的某些特性,可以轻松的开发出以往需要写大量代码的表单页面效果。
今天要介绍的是表单的 form 特性,利用它可以把从属于表单的元素放在任何地方,只需指明该元素的 form 特性值为表单 id 即可,这样该元素就从属于表单了。
form
<!-- 这里用 form="form1" 指明对应的表单 --> <input type="text" name="username" form="form1" required> <form id="form1"> <input type="submit" value="提交"> </form>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
HTML5 中的表单,无论是在表现方面,还是在功能方面,都非常优越,使用 HTML5 表单的某些特性,可以轻松的开发出以往需要写大量代码的表单页面效果。
今天要介绍的是表单的
form
特性,利用它可以把从属于表单的元素放在任何地方,只需指明该元素的 form 特性值为表单 id 即可,这样该元素就从属于表单了。The text was updated successfully, but these errors were encountered: