本文介绍了在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是否正确?
发布评论