BootStrap中模态框弹出位置重定位
<script>
$('#myModal').modal().css({
'margin-top': function () {
return ($(this).height() * 1.5);
}
});
</script>
在js页面中直接重新覆盖模态框css中的高度,或者覆盖外边距的原有样式,来实现重定位模态框的弹出位置。
<script>
$('#myModal').modal().css({
'margin-top': function () {
return ($(this).height() * 1.5);
}
});
</script>
在js页面中直接重新覆盖模态框css中的高度,或者覆盖外边距的原有样式,来实现重定位模态框的弹出位置。