如何覆盖Iframe中的样式? [英] How to override styles in Iframe?

查看:529
本文介绍了如何覆盖Iframe中的样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 https://twitter.com/about/resources/followbutton上的twitter关注我们的小工具,我想更改文本的颜色。现在文本是aqua蓝色,不能很好地在我的网站的背景。

I am using the twitter follow us widget from https://twitter.com/about/resources/followbutton and I would like to change the color of the text. Right now the text is aqua blue which doesn't work well on my sites background.

有没有办法覆盖iframe中的样式?如果是,如何?

Is there a way to override the styling inside the iframe? If so, how?

推荐答案

无法修改iframe中的内容的DOM或样式。你最好做的是链接到不同样式的iframe,因为twitter提供了明亮和黑暗的主题。

There's no way to modify the DOM or style of the content in an iframe. The best you can do is link to a different-styled iframe, as twitter offers both light and dark themes.

编辑:话虽如此, < a> 标记,可用于进一步自定义主题。尝试修改数据按钮 data-text-color data-link-颜色参数!

That being said, there are several parameters in the <a> tag that can be used to customize the theme even further. Try modifying the data-button, data-text-color, and data-link-color parameters to your liking!

这篇关于如何覆盖Iframe中的样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆