C# IE6中的Jquery对话框和asp.net dropdownlist z索引问题
我在我的aspx页面中创建了jquery弹出对话框和asp.net dropdownlist控件。C# IE6中的Jquery对话框和asp.net dropdownlist z索引问题,c#,jquery,asp.net,jquery-ui,internet-explorer,C#,Jquery,Asp.net,Jquery Ui,Internet Explorer,我在我的aspx页面中创建了jquery弹出对话框和asp.net dropdownlist控件。 <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascr
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript" ></script>
<script src="//code.jquery.com/ui/1.10.0/jquery-ui.js" type="text/javascript" ></script>
<script type="text/javascript">
$(document).ready(function () {
$('#div_popup').dialog({
resizable: true,
height: 300,
width: 300,
position: 'center',
zIndex: 10000
});
});
</script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" type="text/css" />
<style type="text/css" >
#div_dropdownlist
{
margin-left : 50%;
margin-top : 50%;
z-index: -1;
}
#div_popup
{}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="div_dropdownlist">
<asp:DropDownList runat="server" ID="ddlList" Width="200px"></asp:DropDownList>
</div>
<div id="div_popup">
My test Popup
</div>
</form>
</body>
</html>
我把jquery对话框的css样式改为
$('#div_popup').dialog({
...
zIndex: 10000
});
但在IE6中,当我拖动该控件时,jquery弹出窗口无法通过asp.net下拉列表框显示
以下是中提到的。,供您参考
有一个ie错误,选择框显示在顶部。
我会按照建议隐藏选择框,或者为ie6使用垫片。您是否尝试更改弹出窗口上的Z索引而不是下拉列表?您好@EliteGamer,请再次查看我的更新代码。
$('#div_popup').dialog({
...
zIndex: 10000
});