【发布时间】:2015-12-15 10:57:31
【问题描述】:
我有一个这样的 ModalPopupExtender:
<asp:ModalPopupExtender ID="ModalPopupExtender1" BackgroundCssClass="ModalPopupBG"
runat="server" CancelControlID="btnCancel" OkControlID="btnOkay" TargetControlID="Bt_Open_Dialog"
PopupControlID="Panel1" Drag="true" PopupDragHandleControlID="PopupHeader"
X="400" Y="400"
>
</asp:ModalPopupExtender>
当应用程序运行并打开 ModalPopup 时,为面板制作的 html/css 为:
<div class="popupConfirmation" style="position: fixed; z-index: 100001; left: 400px; top: 400px;" id="Panel1">
但我真正想要的是“左”和“上”属性(X 和 Y 坐标)不存在!
<div class="popupConfirmation" style="position: fixed; z-index: 100001;" id="Panel1">
这是一个问题,因为如果没有设置 X 和 Y,编译器总是会放入一些随机值,并且不可能写入空白坐标。
你知道怎么做吗?
【问题讨论】:
标签: c# css modalpopupextender