Modifying my iframe css contents

荒凉一梦 提交于 2019-12-20 06:12:56

问题


<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>


$(document).ready( function () {
    $('#iView').load( function () {
        $('this').contents().find("html").css("background-image","none");
    });
});



  <iframe src="http://l2-playcard.dnsalias.com:85/CRM/web/login.aspx" id="iView" frameborder="0"></iframe>

My iframe background not change please help me ?


回答1:


Your use of an absolute URI implies that you are trying to access content on another domain.

This is impossible (baring the use of postMessage combined with the co-operation of the site you are trying to access) for security reasons.



来源:https://stackoverflow.com/questions/18830738/modifying-my-iframe-css-contents

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!