- 博客(0)
- 资源 (3)
空空如也
bootstrap-toast 的消息提示垂直居中
只需将属性修改成"positionClass": "toast-top-center",
代码如下//toastr提示框
toastr.options = {
"closeButton": false,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-top-center",
"preventDuplicates": false,
"onclick": null,
"showDuration": "5000",
"hideDuration": "1000",
"timeOut": "100000",
"extendedTimeOut": "0",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
};
2017-09-14
bootstrap 的弹窗垂直居中
引用bootstrap-dialog弹窗插件所以得弹窗都垂直居中了
如:
$.imgpic = function(src) {
var $textAndPic = $('<div></div>');
$textAndPic.append('<img width="100%" height="100%" src="'+src+'"/>');
BootstrapDialog.show({
title : '图片展示',
message : $textAndPic
});
};
2017-09-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人