折雨的天空
Layer.open弹出框,使用框架时,最大化高度不自动改变的问题
2020-6-11 我好笨


参考:



https://fly.layui.com/jie/45029/







实际解决,比参考多一步。







[#zeyu#]



layer.open({
type: 2,
title:op_title,
skin: 'layui-layer-rim', //加上边框
area: ['60%', '70%'], //宽高
fix: false, //不固定
maxmin: true,
content:url,
end:function(){
},
full: function(dom) {
$(dom).find('.layui-layer-content').css('height','100%');
$(dom).find('iframe[name^="layui-layer-iframe"]').css('height','95%');
}
});









[/#zeyu#]









发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容