0
我工作的公司使用模態窗口來爲我們的請求提供預約功能。我想創建一個超鏈接,我可以在社交媒體上使用該超鏈接將流量引導至此表單。我如何可以輕鬆地創建超鏈接而不調整網站的代碼直接去模態窗口如何創建模態窗口的外部超鏈接
我工作的公司使用模態窗口來爲我們的請求提供預約功能。我想創建一個超鏈接,我可以在社交媒體上使用該超鏈接將流量引導至此表單。我如何可以輕鬆地創建超鏈接而不調整網站的代碼直接去模態窗口如何創建模態窗口的外部超鏈接
只需使用按鈕,然後使用btn-link
類,使之爲超鏈接
<button type="button" class="btn btn-link" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>