마스터 페이지에 사용자 정의 컨트롤이 있습니다. IE7 (또는 IE8 호환성 모드)에서 볼 때 ContentPlaceHolders의 페이지 내용을 렌더링합니다. 나는 모든 요소의 Z- 인덱스를 수작업으로 설정하려고 시도했지만, 아무 것도 컨트롤을 앞에 놓지는 않았습니다. 다른 사람이이 문제를 겪었습니까? 그것은 크롬, 파이어 폭스, 사파리, 그리고 IE8 호환되지 않는에서 작동합니다.ASP.NET 마스터 페이지의 ASP.NET 사용자 컨트롤이 IE7에서 볼 때 내 주요 콘텐츠 뒤에 렌더링됩니다.
내 마스터 페이지의 내 Doctype을 다음과 같이 변경했지만 다른 용도는 아닙니다.
<asp:Panel ID="pnlPopup" runat="server" CssClass="modalPopup" Width="233px" style="z-index: 1000" >
<p>Are you sure? Your current shopping cart is valid only for the current Dealer ID. Switching Dealer IDs will reset your cart according to the new Dealer ID chosen.</p>
<br />
<div align="center" style="z-index:99">
<asp:Button ID="OkButton" runat="server" Text="Ok" />
<asp:Button ID="CancelButton" runat="server" Text="Cancel" />
</div>
</asp:Panel>
그리고 CSS : 사용자 정의 컨트롤에서
<%@ Register Src="controls/UserInfo.ascx" TagName="UserInfo" TagPrefix="uc1" %>
<div class="head-links">
<uc1:UserInfo ID="UserInfo1" runat="server" />
</div>
: 마스터 페이지에서
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
.modalPopup {
background-color:white;
border-width:1px;
border-style:solid;
border-color:Gray;
padding:3px;
width:250px;
}
.head-links
{
position: absolute;
top: 0px;
right: 70px;
text-align: left;
width: 170px;
}
.head-links a
{
color: #fff;
text-decoration: underline;
}
.head-links a:hover
{
color: #fff;
text-decoration: none;
}
불행히도 로그인 할 수있는 것은 없습니다. 그리고 샘플은 여기에 게시하기에는 너무 길습니다. 어제부터 AjaxControlToolkit 또는 ModalPopupExtender와 아무 관련이 없다는 것을 깨달았습니다. 만약 내가 asp : panel을 사용자 콘트롤에 넣었다면 메인 페이지 콘텐트 앞에서 가져올 수 없다. – fr0man