Javascript 定位图元以覆盖跨度
表达问题的最好方法是用 如果你看一下,你会发现我试图覆盖选择框,而不是整个家长的家长(span1和span2)Javascript 定位图元以覆盖跨度,javascript,css,position,overlay,Javascript,Css,Position,Overlay,表达问题的最好方法是用 如果你看一下,你会发现我试图覆盖选择框,而不是整个家长的家长(span1和span2) 有什么我遗漏的吗?您的覆盖范围应该在您想要覆盖的选择之前定义,类似这样的操作可以做到: <span> <span id="cover">Block the selects</span> <select><option>Select 1</option></select> <
有什么我遗漏的吗?您的覆盖范围应该在您想要覆盖的选择之前定义,类似这样的操作可以做到:
<span>
<span id="cover">Block the selects</span>
<select><option>Select 1</option></select>
<select><option>Select 2</option></select>
<select><option>Select 3</option></select>
</span>
阻止选择
选择1
选择2
选择3
只需将位置:相对
添加到包装跨度: