[英]how to add a Scroll bar for a partial view rendered inside a modal window
I have the following Script and markup to render a partial view inside a modal popup:- 我有以下脚本和标记可在模式弹出窗口中呈现部分视图:-
$(function () {
$.ajaxSetup({ cache: false });
$("a[data-modal]").on("click", function (e) {
$('#myModalContent').load(this.href, function () {
$('#myModal').modal({
keyboard: true
}, 'show');
bindForm(this);
});
return false;
});
});
<!-- modal placeholder-->
<div id='myModal' class='modal fade in'>
<div class="modal-dialog">
<div class="modal-content">
<div id='myModalContent'></div>
</div>
</div>
</div>
but can i force the modal window to show a vertical scroll bar , if the partial view content exceed certain height ? 但是,如果部分视图内容超过特定高度,我是否可以强制模式窗口显示垂直滚动条?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.