本文介绍了是<输入>没有<形式>的良好形成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有 是否有效?

有一个标记页面中某些字段的过程,但刚刚发现一个页面的输入字段未按我的预期进行标记.
我花了一段时间,但发现获取表单元素然后获取字段的过程是导致这些被遗漏的原因,因为没有表单.

Have a process for marking up some fields in pages and just found a page with input fields that where not being marked up as I expected.
It's taken me a while but worked out that the process of getting the form elements then getting the fields is what caused these to be missed because there is no form.

推荐答案

without a 看起来有效,是的(至少对于 html 4.01,看看 17.2.1 的结尾):

<input> without a <form> appears valid, yes (at least for html 4.01, look near the end of 17.2.1):

用于创建控件的元素通常出现在 FORM 内元素,但也可能出现在外面FORM 元素声明时它们用于构建用户接口.这在内在事件部分.注意窗体外的控件不能成功控制.

这篇关于是&lt;输入&gt;没有&lt;形式&gt;的良好形成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 22:04
查看更多