可以从 bootstrap 3 手动调整模态窗口的大小 用鼠标将它们拖到你的工作区? 我希望当模式打开时可以根据需要调整手册的大小。 可以这样做吗?
谢谢。
最佳答案
我认为很难在 bootstrap modal 上添加所有非 native 选项。
你也许可以使用 http://jqueryui.com/dialog/并将其风格化。
HTML
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
jQuery
<script>
$(function() {
$( "#dialog" ).dialog();
});
</script>
如果你真的想使用bootstrap,尝试实现Resizable和 Draggable在 jQuery 用户界面上
The ability to work side-by-side with jQuery UI (something which caused a number of widgets to break visually) The ability to theme jQuery UI widgets using Bootstrap styles. Whilst I love jQuery UI, I (like others) find some of the current themes to look a little dated. My hope is that this theme provides a decent alternative for others that feel the same. To clarify, this project doesn't aim or intend to replace Twitter Bootstrap. It merely provides a jQuery UI-compatible theme inspired by Bootstrap's design. It also provides a version of Bootstrap CSS with a few (minor) sections commented out which enable the theme to work along-side it.
关于jquery - 手动调整大小和拖动 bootstrap 3 modals,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19298105/