Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
抱歉问了这么模糊的问题,但我真的不知道我们怎么称呼它们,我所拥有的只是形象
如何创建一个下拉列表,其中我可以有无法选择的父类别,但可以选择子类别
您可以使用<optgroup>选择内的元素
<optgroup>
<select> <optgroup label="test"> <option value="value">value 1</option> </optgroup> </select>