Youtube Subscribe Embed 剪掉了我图片的边角

Youtube Subscribe Embed is cutting off the corners of my image

当我使用 Google Devs https://developers.google.com/youtube/youtube_subscribe_button 上的官方嵌入代码嵌入我的 Youtube 频道时,它会切断我的图像的角,导致出现白角,因为我的网站有黑色背景一点都不好看

    <script src="https://apis.google.com/js/platform.js"></script>

<div class="g-ytsubscribe" data-channel="GoogleDevelopers" data-layout="full" data-theme="dark" data-count="default"></div>

https://imahappy.eu/ - Issue I have

是否可以设置样式 .yt-thumb {background: #f1f1f1;} 因为从元素检查器中删除它可以解决问题。

提前致谢! :)

由于 CORS restrictions,您无法直接编辑 iFrame 本身。 不过,我在这里看到了一个解决方法。 Youtube 使您可以生成没有频道图片的按钮。这样你就可以把按钮和图片分开使用了。

旁注:我注意到您有一个欧盟域,并且您还称呼欧盟公民。直接嵌入 Youtube 订阅按钮违反了欧盟的 GDPR 规定。您的网站也没有对您的所有联系方式留下适当的印象。