簡體   English   中英

模態顯示不正確

[英]Modal don't show up correctly

我的模式出現問題,無法正確顯示

https://github.com/gothraven/Problem

當我檢查頁面的代碼源時,我有了這個“ test.html”,當我復制並粘貼它時,它可以在一個高效的html文件中正常工作。

但這是原始的php文件“ modif_ques.php”,其中包含文件modifc_popup.php,addc_popup.php

我檢查了頁面檢查器,發現了這個,我不知道這是怎么發生的(在這里檢查)

<div id="modif_data_Modal" class="modal fade" style="display: none;">
    <div class="modal-dialog">
        <div class="modal-content">a lot of things here</div>
    </div>
</div>

當我單擊它成為

<div id="modif_data_Modal" class="modal fade in" style="display: block; padding-right: 19px;">
    <div class="modal-dialog">
        <div class="modal-content">a lot of things here</div>
    </div>
</div>

我找到了答案,這是我的代碼中的問題

我刪除了,這是一個錯誤

<form></form>

並改變了這個

<a href='modif_champ.php?cid=$row[cid]' class ='close' data-toggle='modal' data-target='#modif_data_Modal'><i class='glyphicon glyphicon-cog'></i></a>

有了這個

<button class='close' data-toggle='modal' data-target='#modif_data_Modal'><i class='glyphicon glyphicon-cog'></i></button>

我不知道,但很明顯地要展示模態,我們需要使用<button>按鈕而不是<a>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM