【发布时间】:2011-10-10 13:44:20
【问题描述】:
我在 AddThis 论坛上问过这个问题,但到目前为止还没有任何答复。希望有人可以帮助我。
相关页面位于右下角http://preview.ami.co.nz/products。
-
如果在 Chrome 或 Firefox 中查看,“分享”一词位于橙色“+”AddThis 按钮的左侧。
-
但是,在 IE(至少 IE8 和 6)上,“共享”一词在右侧!它应该看起来像它在 Chrome 和 FF 上的样子,但我不知道 IE 对它做了什么。
为了让事情变得更加奇特 - 不同页面上的相同代码在所有浏览器中看起来都是正确的!查看http://preview.ami.co.nz
任何建议将不胜感激。
PS。这是我在这些页面上添加的标记:
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style" style="display: <%= SocialMediaVisibility %>">
<a class="addthis_button_compact">Share</a>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e0a5ac2480330c8"></script>
<!-- AddThis Button END -->
【问题讨论】:
-
虽然我无法确定有问题的 CSS 导致它的行为如此,但我能够重现这一点。
-
与问题无关:仅供参考,对于编码练习,您的
SocialMediaVisibility变量应输出none或inline,就像今天您输出的那样:<div class="addthis_toolbox addthis_default_style" style="display: ">女巫不是良好编码的好例子;)
标签: css internet-explorer firefox google-chrome addthis