更新时间:2022-12-11 21:45:40
您可以使用 jQuery 的 .content()
函数来访问它.
You can use jQuery's .content()
function to access it.
$('yourIframe').contents().find('#yourItemYouWantToChange').css({
opacity: 0,
color: 'purple'
});
这是一个示例,向我展示了如何将 css 应用于通常位于屏幕左上角的 jQuery 徽标.请注意,它必须是相同的域/端口等,这就是我的示例在 iframe 中使用 jsfiddle 的原因.
http://jsfiddle.net/pPqGe/