Twitter bootstrap Twitter引导模式窗口
单击一个按钮,我想显示一个模式窗口 这就是我所实现的Twitter bootstrap Twitter引导模式窗口,twitter-bootstrap,modal-dialog,Twitter Bootstrap,Modal Dialog,单击一个按钮,我想显示一个模式窗口 这就是我所实现的 <a class="btn addIdeaBtn" data-toggle="modal" href="#addIdea" >Launch Modal</a> <!-- Model Window ================================================== --> <!-- Placed at the end of the document so t
<a class="btn addIdeaBtn" data-toggle="modal" href="#addIdea" >Launch Modal</a>
<!-- Model Window
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<div class="modal hide fade in" id="addIdea">
<div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h3>Add Idea</h3>
</div>
<div class="modal-body">
<form action="" method="post">
<textarea id="addIdeaPopUp" class="tinymce" name="" cols="" rows=""></textarea>
</form>
</div>
<div class="modal-footer"> <a href="home.html" class="btn">Close</a> <a href="home.html" class="btn btn-primary">Add Idea</a> </div>
</div>
×
添加想法
当我点击按钮时,模态窗口出现,然后消失:p
按钮位于屏幕底部左侧,作为页脚粘贴。我不太清楚为什么在没有看到更多源代码的情况下会发生这种情况。。。但是: 将类“tinymce”添加到文本区域是导致窗口消失的原因 tinymce的某些内容必须与引导冲突 您可能需要手动初始化引导模式窗口,或者注意tinymce如何初始化自己
希望这足以让您走上正确的道路。尝试从模式中删除
类中的。JS会自动在hide
和in
之间切换。由于您的按钮设置为切换模式,它将消失,因为它认为它是可见的
意思是:
那只是一个类。我们还没有把TunyMCE纳入这个项目。