【发布时间】:2011-04-15 09:29:12
【问题描述】:
我的 wordpress 网站上的 Firefox 中存在多个 iframe 的问题。 我有一个 twitter “tweet” 按钮和一个 facebook “like” 按钮。它们都是我嵌入网站的 iframe。到目前为止没有问题。但是当我发布一个包含 iframe 嵌入 Vimeo 剪辑的帖子时,Vimeo 剪辑被“喜欢”按钮取代,“推文”按钮占据了“喜欢”按钮的原始位置。
我已经在 Firefox 和 Chrome 中对此进行了测试。在 Chrome 中一切看起来都不错,但在 FF 中却不行。
facebook嵌入代码:
<iframe id="facebook" name="facebook" src="http://www.facebook.com/plugins/like.php?href=<?php echo($url); ?>&layout=button_count&show_faces=false&width=90&action=like&font&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>
Twitter 嵌入代码:
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
<a href="http://twitter.com/share" class="twitter-share-button">Tweet</a>
帖子中嵌入的 Vimeo 代码:
<iframe src="http://player.vimeo.com/video/22382565?color=17bcda" width="400" height="225" frameborder="0"></iframe>
如果您查看顶部帖子,应该在“测试测试测试...”下方有一个 Vimeo 剪辑。在左侧边栏中,您可以看到两个推文按钮,应该是一个推文和一个赞。我想指出的是,所有这些在我的本地主机上都运行良好。 http://www.bentrovato.se/index_wp.php/
知道问题可能是什么吗?
【问题讨论】:
-
当我检查它时,Firefox 3.5 和最新的 Chrome 之间没有任何区别。
-
好的。嗯。我有 FF 3.6 和 Mac OSX 10.6
标签: wordpress firefox iframe twitter facebook-like