1
我有一個鏈接,我想打開模式彈出。我使用的引導3.Bootstrap模式彈出不打開鏈接上彈出點擊
這是我的代碼:
<a id="auto-topup2" href="#" data-target="#auto-topup" >
<i class="fa fa-clock-o fa-lg "></i>
<?php echo __('Schedule AutoVend', $my_account_info['customerGroup']) ?>
</a>
我掛像這樣:
<div class="modal fade" id="auto-topup" tabindex="-1" role="dialog aria-labelledby="auto-topup" aria-hidden="true">
<div class="container">
<!-- Container Code -->
</div>
</div>
但它不是打開彈出,什麼是錯?
不需要'data-target'? – Geetika
不,引導程序將使用href作爲您的數據目標 – user65439
太棒了,它的工作。 thanx :) – Geetika