我正在尝试使用我自己的css修改iframe中的一些div类,并更改Twitter块的Drupal 8外观。但是,我遇到了很多错误,比如$ is not a function等等.我认为我的js加载得太快了(在js之前),但是,我检查了元素,一切都应该正常工作。(现在没有错误)
<iframe id="twitter-widget-0" class="twetter-timeline" >
<html>
<head></head>
<body>
<div c
我试图嵌入一个简单的HTML页面的谷歌工作表。我遵循的是:的指示
我在控制台中得到以下信息
Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-ktarjbJmNtF8IylbwgjSQoKrcQSdXJkqf60bj4nusHA=')
我正尝试在iframe中呈现我的React组件。我通过使用"react-frame-component“库让它工作。问题是样式被加载到iframe之外,在"head“元素的末尾。我想将其更改为加载到"iframe“元素的"head”中。我使用Webpack来生成包含JS和CSS的bundle,我看到我可以通过设置"insertInto“选项来更改"style-loader”加载样式的位置,但这会抛出一个错误:
Uncaught Error: Couldn't find a style target. This probably means