function(body){
    var iframeWin = this
    ,iframeDOM = iframeWin.document;
    
    //清除影响版面的css属性
    body.find('*[style]').each(function(){
      var textAlign = this.style.textAlign;
      this.removeAttribute('style');
      $(this).css({
        'text-align': textAlign || ''
      })
    });
    
    //修饰表格
    body.find('table').addClass('layui-table');
    
    //移除不安全的标签
    body.find('script,link').remove();
  }
function(body){
    var iframeWin = this
    ,iframeDOM = iframeWin.document;
    
    
    body.find('*[style]').each(function(){
      var textAlign = this.style.textAlign;
      this.removeAttribute('style');
      $(this).css({
        'text-align': textAlign || ''
      })
    });
    
    
    body.find('table').addClass('layui-table');
    
    
    body.find('script,link').remove();
  }
function ( body ) { var iframeWin = this , iframeDOM = iframeWin . document ; //清除影响版面的css属性 body . find ( '*[style]' ) . each ( function ( ) { var textAlign = this . style . textAlign ; this . removeAttribute ( 'style' ) ; $ ( this ) . css ( { 'text-align' : textAlign || '' } ) } ) ; //修饰表格 body . find ( 'table' ) . addClass ( 'layui-table' ) ; //移除不安全的标签 body . find ( 'script,link' ) . remove ( ) ; }
iframe初始化
iframe初始化