ColorBox의 상단에 표시된 ModalPopupExtender에 간단한 <input type="text" />
을 표시했습니다. 그것은 잘 보여,하지만 사용자가 쓸 수 없습니다. 아무도 잘못 말할 수 있습니까?입력 필드가 작동하지 않습니다.
<%@ 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>
텍스트 상자를 클릭 할 수 있습니까? 아니면 요소를 검사하면 텍스트 상자로 이동합니까? 아니면 겹치는 부분입니까? – Pete
그것은 오른쪽 커서를 보여 주지만, 클릭하면 "깜박이는 커서"가 보이지 않습니다. 나는 그 요소를 확인했는데, 그 앞에 뭔가있는 것 같지 않습니다. 최신 버전의 Colorbox를 다운로드하면 코드를 테스트 할 수 있습니다. – perene
마지막 태그에서 입력 태그의 읽기 전용 속성은 무엇입니까? –