在FORM中使用DIV是否正确? [英] Is it correct to use DIV inside FORM?
本文介绍了在FORM中使用DIV是否正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要像这样的东西:
< form>
< input type =text/>
< div>一些< / div>
< div>另一个< / div>
< input type =text/>
< / form>
一般的做法是在里面使用 DIV
FORM
或者我需要一些不同的东西?
解决方案
$ b
表单
只会提交其输入类型控件(*还包含 Textarea
,选择
等等......)。
您无需担心 div
在表格
中。
I'm just wondering what are you thinking about DIV-tag inside FORM-tag?
I need something like this:
<form>
<input type="text"/>
<div> some </div>
<div> another </div>
<input type="text" />
</form>
Is it general practice to use DIV
inside FORM
or I need something different?
解决方案
It is totally fine .
The form
will submit only its input type controls ( *also Textarea
, Select
, etc...).
You have nothing to worry about a div
within a form
.
这篇关于在FORM中使用DIV是否正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文