# 有没有办法对CSS的tiktok和Instagram嵌入进行样式设置？

**URL:** <https://meta.discourse.org/t/isnt-there-a-way-to-style-css-tiktok-and-instagram-embed/256962>\
**Category:** Development\
**Created:** [2023 年3 月 3 日 15:09 UTC](https://meta.discourse.org/t/isnt-there-a-way-to-style-css-tiktok-and-instagram-embed/256962 "2023-03-03T15:09:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
发布日期： [2023 年3 月 3 日 15:35 UTC](https://meta.discourse.org/t/isnt-there-a-way-to-style-css-tiktok-and-instagram-embed/256962/2 "2023-03-03T15:35:53Z")

</div>

由于[同源策略](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy)，您通常无法操作来自不同域的 iframe 的内容——如果没有这种限制，您就可以，例如，用 CSS 替换一张图片，使其看起来像是某个 Instagram 用户发布了他们未发布的内容。

---

_[View the full topic](https://meta.discourse.org/t/isnt-there-a-way-to-style-css-tiktok-and-instagram-embed/256962)._
