내가화이트 사업부
div를 (페이지와 0.6의 불투명도 100 %입니다) 반 투명 DIV에 작은 흰색 사업부를 표시하려고 :
<div id="confirmDialogSingle" class="Loading" runat="server" visible="false">
<div id="msgBox" class="loadingImg">
<br /> You already have a request on the chosen date. Are you sure you want to submit this request?<br /><br />
<asp:Button ID="BtnConfirmSingle" runat="server" Text="Yes" Width="60px" onclick="BtnConfirmSingle_Click" />
<asp:Button ID="BtnNo" runat="server" Text="Cancel" onclick="BtnNo_Click" />
</div>
</div>
을
CSS :
.Loading
{
width: 100%;
height: 100%;
top:0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
position: fixed;
background: white;
opacity:0.6;
z-index:9999;
transition: width 2s; -moz-transition: width 2s;/* Firefox 4 */ -webkit-transition: width 2s; /* Safari and Chrome */ -o-transition: width 2s; /* Opera */
}
.loadingImg
{
opacity: 1;
margin: auto;
width: 700px;
text-align: center;
height: 150px;
padding: 10px;
background-color: white;
border:1px solid #d9a0e2;
}
문제는 작은 사업부 (.loadingImg)가 화면의 중앙에 표시되지 않고있다 (도 50 % 상단 시도하고 50 %를 떠난)과 그 배경은 여전히 존재한다 투명하게 표시됨 흰색의 nstead!
나를 위해 센터를 수평으로 정렬하는 것 같습니다. 세로로 정렬하는 것에 대해 이야기하고 있습니까? 왜냐하면 그게 더 어렵 기 때문이야. – Coop
예 화면 가운데에 가로, 세로로 정렬하기를 원합니다 – user1986761