KCBR6502さん、こんにちは。
このようなコードではいかがでしょうか。
html
<html>
<head>
</head>
<body>
<div class="endAnn">
<div class="endAnnBox">
<!--#この部分は文字にしてありますが、画像の場合は画像を -->
<p>終了</p>
<!--#
<img src="#" alt="#" />
-->
</div>
</div>
<div id="wrapper">
<div id="section01"></div>
<div id="section02"></div>
<div id="section03"></div>
<div id="section04"></div>
<div id="section05"></div>
<div id="fotter"></div>
</div>
</body>
</html>
CSS
.endAnn{
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
margin:auto;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
z-index:99;
}
.endAnnBox{
width:100%;
height:100%;
position:relative;
z-index:1;
}
.endAnnBox p{
color:#fff;
position:absolute;
z-index:2;
top:0;
left:0;
right:0;
bottom:0;
margin:auto;
width:100%;
height:20%;
text-align:center;
}
何かしらの告知+告知の下の層は触らせたくないという想定で
告知をfixedにし追尾する形にしてあります。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/21 04:34