亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

modal彈出兩層

怎么彈出兩層?就是在這個modal上加個按鈕再彈出

正在回答

1 回答

<!DOCTYPE HTML>

<html>

<head>

? ? <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

? ? <title>模態彈出窗的使用</title>

? ? <link rel="stylesheet" >

</head>

<body>


<!-- data-target觸發模態彈出窗元素 -->

<button class="btn btn-primary" data-toggle="modal" data-target="#mymodal-data" type="button">通過data-target觸發</button>

<!-- 模態彈出窗內容 -->

<div class="modal fade" id="mymodal-data" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">

? ? <div class="modal-dialog">

? ? ? ? <div class="modal-content">

? ? ? ? ? ? <div class="modal-header">

? ? ? ? ? ? ? ? <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>

? ? ? ? ? ? ? ? <h4 class="modal-title">模態彈出窗標題</h4>

? ? ? ? ? ? </div>

? ? ? ? ? ? <div class="modal-body">

? ? ? ? ? ? ? ? <p>模態彈出窗主體內容</p>

? ? ? ? ? ? </div>

? ? ? ? ? ? <div class="modal-footer">

? ? ? ? ? ? ? ? <button type="button" class="btn btn-default" data-dismiss="modal">關閉</button>

? ? ? ? ? ? ? ? <button type="button" class="btn btn-primary" id="goon">繼續</button>

? ? ? ? ? ? </div>

? ? ? ? </div>

? ? </div>

</div>

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

? ? <div class="modal-dialog">

? ? ? ? <div class="modal-content">

? ? ? ? ? ? <div class="modal-header">

? ? ? ? ? ? ? ? <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>

? ? ? ? ? ? ? ? <h4 class="modal-title">模態彈出窗標題</h4>

? ? ? ? ? ? </div>

? ? ? ? ? ? <div class="modal-body">

? ? ? ? ? ? ? ? <p>模態彈出窗主體內容</p>

? ? ? ? ? ? </div>

? ? ? ? ? ? <div class="modal-footer">

? ? ? ? ? ? ? ? <button type="button" class="btn btn-default" data-dismiss="modal">關閉</button>

? ? ? ? ? ? ? ? <button type="button" class="btn btn-primary">保存</button>

? ? ? ? ? ? </div>

? ? ? ? </div>

? ? </div>

</div>

<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>

<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

<script>

? ? $(function(){

? ? ? ? $("#goon").click(function(){

? ? ? ? ? ? $("#modal").modal("toggle");

? ? ? ? })

? ? })

</script>

</body>


0 回復 有任何疑惑可以回復我~
#1

筆桿戰神 提問者

非常感謝!
2016-09-22 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

modal彈出兩層

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號