优化 code 当 `preview: 'iframe'` 时的 `<iframe>` 容器,以支持背景透明

pull/1260/head^2
贤心 2023-05-26 12:12:42 +08:00
parent 3763a0f642
commit fc28a94cab
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ layui.define(['lay', 'util', 'element', 'form'], function(exports){
// 追加预览
if(isIframePreview){
elemPreviewView.html('<iframe></iframe>');
elemPreviewView.html('<iframe allowtransparency="true" frameborder="0"></iframe>');
}
// 执行预览