Layui弹框随内容的高度而自动增高

原创
2017/11/01 18:50
阅读数 5.8K
	layer.open({
		type: 2,
		title: '公告详情',
		shadeClose: true,
		maxmin: false, //开启最大化最小化按钮
		area: ['450px', '260px'],
		content: '/notice/checkNotice?flag=true&id=' + id,
		success: function(layero, index){
			layer.iframeAuto(index);
			layer.style(index, {
				// 重新居中的样式
				top: (layui.$(window).height() - layui.$(layero).height()) / 2
			})
		}
	});

 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部