在FORM中使用DIV是否正确?

编程入门 行业动态 更新时间:2024-10-13 06:21:10
本文介绍了在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是否正确?

本文发布于:2023-11-26 08:35:27,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:是否正确   FORM   DIV

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!