如何生成浅色主题的Mastodon帖子/Toot嵌入URL?
解决Mastodon嵌入内容浅色主题的问题
要让Mastodon的嵌入帖子显示浅色主题,你用错了参数值——正确的主题参数值是light,而非你尝试的mastodon_light或mstdn_light。
直接修改URL即可,格式如下:
https://mstdn.social/@eladratson/109366816613595747/embed?theme=light
如果通过URL参数仍未生效,也可以在嵌入的iframe标签里添加data-theme="light"属性强制指定浅色主题,示例代码:
<iframe src="https://mstdn.social/@eladratson/109366816613595747/embed" data-theme="light" width="600" height="400" frameborder="0"></iframe>
补充说明:Mastodon嵌入支持的主题参数值共三个:light(浅色)、dark(深色)、auto(跟随系统主题),可按需选择。
内容的提问来源于stack exchange,提问作者Elad Ratson
相关产品推荐
相关产品推荐

