我正在尝试使用弹出式切换显示表单。
<li>
<a href="#" rel="popup" tabindex="0" data-toggle="popover" title="SIGN IN" data-placement="bottom" data-content='<form>
<input type="text">
</form>
'>Sign in</a>
</li>
但无法使其正常工作。我怎样才能做到这一点?
答案 0 :(得分:0)
Doc:Bootstrap modals
<script type="text/javascript" src="js/modal.js"></script>
<a href="#" data-toggle="modal" data-target="#signin">
<div id="signin" class="modal hide fade" style="display: none; ">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Sign In</h3>
</div>
<div class="modal-body">
<form action="signin.html" method="post">
...
</form>
</div>
</div>
答案 1 :(得分:0)