有没有办法让只有CSS模式跳转到页面顶部?
<a href="#modal-1" />MODAL LINK</a>
<div id="modal-1" class="modal">
<div class="modal-content">
<div class="header">
<a href="#"><i class="fa fa-times-circle fa-2x"/>XX</i></a>
</div>
<div class="copy">
<p>CONTENT GOES HERE</p>
</div>
<div class="cf footer">
</div>
</div>
<div class="overlay"></div>
</div>
答案 0 :(得分:0)
使用href="javascript:void(0)"
代替href="#"