且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

< DIV>和< select>标签

更新时间:2022-12-01 09:21:19

规范

From the specification:

<!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector -->

即有一个名为SELECT的元素,开始标记是必需的,结束标记是必需的。它的孩子可以是OPTGROUP元素和/或OPTION元素,并且必须至少有一个元素。

i.e. There is an element called "SELECT", the start tag is required, the end tag is required. It's children can be OPTGROUP elements and/or OPTION elements and there must be at least one of them.

由于DIV不是OPTGROUP或OPTION,答案是

Since a DIV is not an OPTGROUP or an OPTION, the answer is no.