我已经通过 iframe 在我的网站中嵌入了一个 soundcloud 播放器。我想知道是否可以在 iframe 中编辑 css 并更改背景颜色?
iFrame 链接:
< iframe width="100%"height="450"scrolling="no"frameborder="no"allow="autoplay"src="https://w.soundcloud.com/player/?> url=https%3A//api.soundcloud.com/playlists/666712575%3Fsecret_token%3Ds-z7Zki&color=7b5cff&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&"visual="false""">
最佳答案
不,这是不可能的,如果 iframe 与父文档位于同一域中,您只能在 iframe 中编辑 css。
关于javascript - 编辑 iframe 的 css(soundcloud 嵌入式播放器),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55081877/