修改我的iframe css内容 [英] Modifying my iframe css contents

查看:124
本文介绍了修改我的iframe css内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<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>

我的iframe背景没有改变请帮帮我?

My iframe background not change please help me ?

推荐答案

您使用绝对URI意味着您尝试访问另一个域中的内容。

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

这是不可能的禁止使用 postMessage 结合您尝试访问的网站的合作)。出于安全考虑。

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

这篇关于修改我的iframe css内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆