我添加了一个 HTML5 模式对话框来登录,单击链接后可以“打开”它。
但是当我加载我的页面时,我很快就会看到对话框,这不是我的意图。
如何在页面加载时阻止它“加载”?
提前致谢,
网页链接:http: //www.solar-sell.eu/
(显示模态对话框的按钮在右下角)
亲切的问候,
jdank
加载它的代码:
<a href="#openModal" class="modallink"><div class="mijnsolarsell"></div></a>
<div id="openModal" class="modalDialog">
<div>
<a href="#close" title="Venster sluiten" class="close">X</a>
<h2>Mijn Solar Sell - Inloggen</h2>
<form method="POST" action="http://www.solar-sell.eu/">
<input class="inputinlognaam" type="text" name="username" size="15" />
<input class="inputwachtwoord" type="password" name="password" size="15" />
<input class="inlogbutton" value="" type="submit" />
</form>
</div>
</div>
CSS:
.modalDialog {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.8);
z-index: 99999;
opacity:0;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
pointer-events: none;
}