mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
优化 code 当 preview: 'iframe'
时的 <iframe>
容器,以支持背景透明
This commit is contained in:
parent
3763a0f642
commit
fc28a94cab
@ -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>');
|
||||
}
|
||||
|
||||
// 执行预览
|
||||
|
Loading…
Reference in New Issue
Block a user