第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

一頁中多種不同類型的模態(tài)框

一頁中多種不同類型的模態(tài)框

溫溫醬 2023-12-11 15:06:26
在我們的頁面中,我們嘗試根據(jù)按鈕的數(shù)據(jù)目標屬性設(shè)置 3 種不同類型的模式。我們只能顯示第一個模態(tài),并且可以獲取要顯示的數(shù)據(jù),第二個和第三個模型不會顯示。這是所有模態(tài)的代碼:<div class="modal fade" id="staticBackdrop" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true"><div class="modal-dialog" role="document"><div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Shift Details</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span></button> </div>                  <div class="modal-body" id="normalBody">                   <p id="normalText"></p>                   <div class="modal-footer"> <div id="success-text"></div><button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button id="subOutButton" type="button" class="btn btn-secondary">Sub-Out</button> <button id="subInButton" type="button" class="btn btn-secondary">Sub-In</button>                   </div></div></div></div><div class="modal fade" id="yourShift" tabindex="-1" role="dialog" aria-labelledby="yourShiftLabel" aria-hidden="true"><div class="modal-dialog" role="document"><div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="yourShiftLabel">Shift Details</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span></button> </div>                  <div class="modal-body" id="yourShiftBody">                   <p id="yourShiftText"></p>                   <div class="modal-footer"><button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-secondary" data-dismiss="modal">Sub-Out</button>                   </div></div></div></div>
查看完整描述

1 回答

?
瀟湘沐

TA貢獻1816條經(jīng)驗 獲得超6個贊

</div>您忘記在代碼中添加一些關(guān)閉(我已用注釋“there”標記它):


    <div class="modal fade" id="staticBackdrop" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true">

<div class="modal-dialog" role="document">

<div class="modal-content">

 <div class="modal-header">

 <h5 class="modal-title" id="staticBackdropLabel">Shift Details</h5>

 <button type="button" class="close" data-dismiss="modal" aria-label="Close">

 <span aria-hidden="true">&times;</span>

</button>

 </div>

                  <div class="modal-body" id="normalBody">

                   <p id="normalText"></p>

                  </div> <!-- there -->

                   <div class="modal-footer">

 <div id="success-text"></div>

<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>

 <button id="subOutButton" type="button" class="btn btn-secondary">Sub-Out</button>

 <button id="subInButton" type="button" class="btn btn-secondary">Sub-In</button>

                   </div>

</div>

</div>

</div>


<div class="modal fade" id="yourShift" tabindex="-1" role="dialog" aria-labelledby="yourShiftLabel" aria-hidden="true">

<div class="modal-dialog" role="document">

<div class="modal-content">

 <div class="modal-header">

 <h5 class="modal-title" id="yourShiftLabel">Shift Details</h5>

 <button type="button" class="close" data-dismiss="modal" aria-label="Close">

 <span aria-hidden="true">&times;</span>

</button>

 </div>

                  <div class="modal-body" id="yourShiftBody">

                   <p id="yourShiftText"></p>

                   </div> <!-- there -->

                   <div class="modal-footer">

<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>

 <button type="button" class="btn btn-secondary" data-dismiss="modal">Sub-Out</button>

                   </div>

</div>

</div>

</div>


<div class="modal fade" id="needsSub" tabindex="-1" role="dialog" aria-labelledby="needsSubLabel" aria-hidden="true">

<div class="modal-dialog" role="document">

<div class="modal-content">

 <div class="modal-header">

 <h5 class="modal-title" id="needsSubLabel">Shift Details</h5>

 <button type="button" class="close" data-dismiss="modal" aria-label="Close">

 <span aria-hidden="true">&times;</span>

</button>

 </div>

                  <div class="modal-body" id="needsSubBody">

                   <p id="needsSubText"></p>

                   </div> <!-- and there -->

                   <div class="modal-footer">

<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>

 <button type="button" class="btn btn-secondary" data-dismiss="modal">Sub-In</button>

                   </div>

</div>

</div>

</div>


查看完整回答
反對 回復(fù) 2023-12-11
  • 1 回答
  • 0 關(guān)注
  • 161 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號