mirror of
https://gitee.com/layui/layui.git
synced 2025-12-26 22:25:48 +08:00
优化 code 当 preview: 'iframe' 时的 <iframe> 容器,以支持背景透明
This commit is contained in:
@@ -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>');
|
||||
}
|
||||
|
||||
// 执行预览
|
||||
|
||||
Reference in New Issue
Block a user