我正在尝试在网站上编辑 Google Form iframe 的外观。我可以使用站点的样式表之一添加 CSS,但 Google 自己的样式表嵌入在头部,在 iframe 中,所以我不能覆盖,只是增加。但是,当然,我想覆盖它。所以我试图在 iframe 的头部添加一个指向我自己的特定样式表的链接,但是这个:
$(document).ready(function() {
$('<link media="screen" type="text/css" href="http://companeros.ca/wp-content/themes/organic_non-profit/GFstyle.css" rel="stylesheet">').appendTo('#content iframe html head');
});
不工作。
这可能吗?我错过了一些明显的东西吗?