Modifying my iframe css contents

2019-03-04 18:03发布

<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条回答
\"骚年 ilove
2楼-- · 2019-03-04 18:27

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.

查看更多
登录 后发表回答