我旁边有一个下拉列表和文本框。当我首先单击文本框而不键入任何字母,然后单击下拉列表(您的立即点击应该只是下拉而不是表格上的其他位置)。这时我可以看到下拉的宽度增加并悬停在文本框中。我需要避免这样做,并保持相同的下拉宽度。此问题仅在IE 11中发生
这是我的代码
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
});
</script>
</head>
<body>
<select name="SearchScope" title="Search Scope" id="idSearchScope" style="width: 200px !important">
<option value="/locator.aspx?name=Common.Search.Global.MainPage">All of these words</option>
<option value="/locator.aspx?name=Common.Search.Global.MainPage">Any of these words</option>
</select>
<input type="text" style="width: 200px" value="" placeholder="Enter text to search"><br><br>
</body>
</html>
注意:当我从文本中删除占位符时,我不会发现此问题。有关如何保持下拉宽度相同的问题吗?首先单击文本框,然后单击下拉列表,而不删除文本框的占位符?