你能嵌套 html 表单吗? [英] Can you nest html forms?
本文介绍了你能嵌套 html 表单吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以嵌套这样的html表单
所以这两种形式都有效?我的朋友遇到了这个问题,subForm
的一部分有效,而另一部分却没有.
解决方案
总之,没有.一个页面中可以有多个表单,但它们不应嵌套.
来自 html5 工作草案:><块引用>
4.10.3 form
元素
内容模型:
流内容,但没有表单元素后代.
Is it possible to nest html forms like this
<form name="mainForm">
<form name="subForm">
</form>
</form>
so that both forms work? My friend is having problems with this, a part of the subForm
works, while another part of it does not.
解决方案
In a word, no. You can have several forms in a page but they should not be nested.
From the html5 working draft:
4.10.3 The
form
elementContent model:
Flow content, but with no form element descendants.
这篇关于你能嵌套 html 表单吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文