1、高度自适应: success: function(layero, index) { layer.iframeAuto(index); }, 2、layer垂直居中 进入layer.js,增加几行代码。具体如图: