【发布时间】:2016-04-11 14:34:38
【问题描述】:
我有一个简单的页面和一个模式。这在(很多)旧版本的引导程序中有效,但由于我升级到新版本,它不再“工作”了:
页面加载,然后变暗(一切正常!),但模式窗口根本没有出现,我可以(为此?)也不能点击它......
模态的html:
<div class="modal hide fade" id="myModal">
<div class="modal-header" style="background:#f6b33d -moz-linear-gradient(center top , #f6b33d 5%, #d29105 100%) repeat scroll 0 0;">
<a class="close" data-dismiss="modal">×</a>
<h3 style="color:#ffffff;">Please Note:</h3>
</div>
<div class="modal-body">
<p>You can put whatever text you want in here... or form or whatever you want..</p>
</div>
</div>
js:
$(window).load(function(){
setTimeout(function(){
$('#myModal').modal('show');
}, 5000);
});
见http://codepen.io/Malachi/pen/bpLrPy
我错过了什么??
【问题讨论】:
标签: jquery twitter-bootstrap twitter-bootstrap-3 bootstrap-modal