我对基础揭示按钮有一些问题。当我点击弹出按钮时,它会移动网址而不是显示弹出窗口(例如.www.website.com/#)
这是我的代码:
<a href="#" data-reveal-id="firstModal" class="button succes">Popup</a>
<div id="firstModal" class="reveal-modal small" data-reveal>
<h2>Some Title</h2>
</div>
在我的代码末尾
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/jquery-ui/jquery-ui.js"></script>
<script src="bower_components/modernizr/modernizr.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/foundation/js/foundation.min.js"></script>
<script src="bower_components/foundation/js/foundation/foundation.reveal.js"></script>