久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      bootstrap的模態(tài)框在哪是什么

      bootstrap的模態(tài)框是覆蓋在父窗體上的,是一個子窗體;模態(tài)框的目的是顯示來自一個單獨的源內(nèi)容,可以在不離開父窗體的情況下有一些互動,子窗體可以提供信息交互等等,可以通過添加“.modal-sm”類來創(chuàng)建一個小模態(tài)框,添加“.modal-lg”類創(chuàng)建一個大模態(tài)框。

      bootstrap的模態(tài)框在哪是什么

      本教程操作環(huán)境:Windows10系統(tǒng)、bootstrap5版、DELL G3電腦

      bootstrap的模態(tài)框在哪是什么

      模態(tài)框(Modal)是覆蓋在父窗體上的子窗體。通常,目的是顯示來自一個單獨的源的內(nèi)容,可以在不離開父窗體的情況下有一些互動。子窗體可提供信息交互等。

      如何創(chuàng)建模態(tài)框

      以下實例創(chuàng)建了一個簡單的模態(tài)框效果 :

      <!DOCTYPE html> <html> <head>   <title>Bootstrap 實例</title>   <meta charset="utf-8">   <meta name="viewport" content="width=device-width, initial-scale=1">   <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">   <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>   <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>   <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script> </head> <body> <div class="container">   <h2>模態(tài)框?qū)嵗?lt;/h2>   <!-- 按鈕:用于打開模態(tài)框 -->   <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">     打開模態(tài)框   </button>       <!-- 模態(tài)框 -->   <div class="modal fade" id="myModal">     <div class="modal-dialog">       <div class="modal-content">             <!-- 模態(tài)框頭部 -->         <div class="modal-header">           <h4 class="modal-title">模態(tài)框頭部</h4>           <button type="button" class="close" data-dismiss="modal">&times;</button>         </div>             <!-- 模態(tài)框主體 -->         <div class="modal-body">           模態(tài)框內(nèi)容..         </div>             <!-- 模態(tài)框底部 -->         <div class="modal-footer">           <button type="button" class="btn btn-secondary" data-dismiss="modal">關閉</button>         </div>           </div>     </div>   </div>    </div> </body> </html>

      輸出結果:

      bootstrap的模態(tài)框在哪是什么

      模態(tài)框尺寸

      我們可以通過添加 .modal-sm 類來創(chuàng)建一個小模態(tài)框,.modal-lg 類可以創(chuàng)建一個大模態(tài)框。

      尺寸類放在 <div>元素的 .modal-dialog 類后 :

      <!DOCTYPE html> <html> <head>   <title>Bootstrap 實例</title>   <meta charset="utf-8">   <meta name="viewport" content="width=device-width, initial-scale=1">   <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">   <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>   <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>   <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script> </head> <body> <div class="container">   <h2>模態(tài)框?qū)嵗?lt;/h2>   <!-- 按鈕:用于打開模態(tài)框 -->   <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">     打開模態(tài)框   </button>       <!-- 模態(tài)框 -->   <div class="modal fade" id="myModal">     <div class="modal-dialog modal-sm">       <div class="modal-content">             <!-- 模態(tài)框頭部 -->         <div class="modal-header">           <h4 class="modal-title">模態(tài)框頭部</h4>           <button type="button" class="close" data-dismiss="modal">&times;</button>         </div>             <!-- 模態(tài)框主體 -->         <div class="modal-body">           模態(tài)框內(nèi)容..         </div>             <!-- 模態(tài)框底部 -->         <div class="modal-footer">           <button type="button" class="btn btn-secondary" data-dismiss="modal">關閉</button>         </div>           </div>     </div>   </div>    </div> </body> </html>

      輸出結果:

      bootstrap的模態(tài)框在哪是什么

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號