layer.open()type=2打开一个新浪财经的页面,如何控制这个新打开的页面

layer.open一个第三方的页面的时候,想通过success回调的时候隐藏部分区域,比如头部和尾部
操作的时候会报跨域的问题,我检查了说是dom操作的时候不能跨域获取dom对象。也看了相关的文档。

      //执行
        util.fixbar({
          bar1: '',
          showHeight:250,
          bgcolor:'#DA3B40 !important',
          css:{right:1,top:400},
          click: function(type){
            console.log(type);
            if(type === 'bar1'){
              layer.open({
                  type: 2,
                  maxmin:true,
                  scrollbar:false,
                  title: ["环球股指(来源新浪财经)",'font-size:20px;text-align:center;color:#DA3B40;font-weight:900'],
                  shade: 1,
                  area:($(window).width()<1440)? ['68%', '100%']:['52%', '100%'],
                  content: sina_finance_url,
                  success:function(layero,index){ //获取里面iframe内部的元素,进行隐藏
                      // alert($(window).width())
                      var frameId = "#"+layero.find('iframe')[0].id;
                      $(frameId).contents().find('#financeApp_pics');
                  }
              });
            }
          }
        });

出现跨域错误

我想达到隐藏头部和尾部的效果

跨域是不可以操作的,除非你能改源头代码,这种情况,你可以自己写一个脚本,爬取到这个页面后,本地处理下,然后显示本地的内容

第三方改不了