javascript
  • jquery
  • html
  • iframe
  • 2014-08-29 23 views 0 likes 
    0

    可以從iFrame中的html頁面中刪除div。 在下面的代碼中,我們正在獲取html頁面,並顯示在iframe中..我可以從下面的HTML頁面中取出。在iframe中顯示之前編輯頁面

    <script type="text/javascript"> (function(){ document.write(['<iframe name="myfxbook_market" width="100%" height=' + height + ' frameborder="0" allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0" src=' + "http://widgets.myfxbook.com/widgets/calendar.html"+ps+"></iframe>"].join('')); }()); </script>"

    或者是有任何其他方式顯示之前進行編輯這個頁面? 感謝您的幫助。

    +0

    刪除頁面?只是不包含代碼? – epascarello 2014-08-29 16:04:16

    +0

    這是我的網站中添加的小部件的代碼..只是想在添加之前對它進行一點編輯。 它從myfxbook.com中獲取它。那不是我的網站.. – user3845490 2014-08-29 16:08:51

    +0

    你想編輯一下什麼? iframe中的代碼或生成iframe的代碼... – epascarello 2014-08-29 16:15:20

    回答

    0

    很抱歉,您不允許使用來自其他 網站的iframe。

    但是,你可以把它放在你的頁面其他頁面 後面的一個大的iframe中,用z-index css和更多的CSS。

    看看這個; jQuery/JavaScript: accessing contents of an iframe

    相關問題