我正在显示<input type="text" />
在 ColorBox 顶部的 ModalPopupExtender 中的简单内容。它显示正常,但用户无法在其中写入。谁能告诉我出了什么问题?
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<script src="Scripts/jquery.colorbox-min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#testbutton').click(function () {
$.colorbox({ inline: true, width: "50%", open: true, href: "#messageform",
onClosed: function () {
$('#messageform').hide();
},
onOpen: function () {
$('#messageform').show();
}
});
});
});
</script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<input id="testbutton" type="button" value="click" />
<div id="messageform" style="display: none;">
<asp:Button ID="open" runat="server" />
</div>
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server" BackgroundCssClass="modalBackground"
DropShadow="true" PopupControlID="Panel1" TargetControlID="open">
</ajaxToolkit:ModalPopupExtender>
<div id="Panel1">
<input type="text" name="foo" value="" /> <--- **This shows, but can't enter text**
</div>
</asp:Content>