咁點做好呢?
以下方法只適用於same domain, protocol and port~!
//HTML
<iframe src="" frameborder="0" scrolling="no" id="iframe1" />
//JS
//找出header然後remove
$("#iframe1").attr('src', 'someURL');
$('#iframe1').live('load', function (){
$("#iframe1").contents().find("div.header").remove();
});
$('#iframe1').live('load', function (){
$("#iframe1").contents().find("div.header").remove();
});
沒有留言:
發佈留言