layui iframe弹出层高度自适应,并垂直居中

1、高度自适应: 代码: success: function(layero, index) {   layer.iframeAuto(index); }, 2、垂直居中 进入layer.js,增加几行代码。具体如图: 代码:   var bodyHH = document.documentElement.clientHeight;  if(heg + titHeight + btnHeight >
相关文章
相关标签/搜索