有没有比layer更好的js弹出层框架,也就是说在content直接引入一个html路径,就可以打开这个页面(layer做得满足不了我的需求)
layer可以实现你的需求吧?
//iframe窗
layer.open({
type: 2,
title: false,
closeBtn: 0, //不显示关闭按钮
shade: [0],
area: [\'340px\', \'215px\'],
offset: \'rb\', //右下角弹出
time: 2000, //2秒后自动关闭
anim: 2,
content: [\'test/guodu.html\', \'no\'], //iframe的url,no代表不显示滚动条
end: function(){ //此处用于演示
layer.open({
type: 2,
title: \'很多时候,我们想最大化看,比如像这个页面。\',
shadeClose: true,
shade: false,
maxmin: true, //开启最大化最小化按钮
area: [\'893px\', \'600px\'],
content: \'//fly.layui.com/\'
});
}
});
@saonian: 好的,谢谢
@lzslr: 客气。