Google PlusOne 按钮有一些底部边距

发布于 2024-12-01 15:28:14 字数 1305 浏览 2 评论 0原文

plusone 与其他人相比

我想知道我看到的问题是否仅针对我的网站,或者是否是已知问题问题。

我有一些社交小部件可以很好地对齐,但由于某种原因,PlusOne 没有正确对齐。

我使用 Firebug 将其与 Facebook Like 小部件进行比较,根据 CSS,它们的高度完全相同,并且没有边距或填充。他们的 CSS 看起来是一样的。

<div>
        <fb:like layout="button_count" show_faces="false" width="90" action="like" font="verdana" colorscheme="light"></fb:like>

        <g:plusone size="medium"></g:plusone>

        <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=d9550e2f-f25a-4e2e-ae45-7a51cf7e3d46&amp;type=website&amp;buttonText=Share%20item!&amp;embeds=true&amp;style=rotate"></script>
        &nbsp;<font face='Verdana, Arial, Helvetica, sans-serif' size='1'><a href='/mmh/recommend/send.php?prodid=$!product.id'><img src="/images/icons/icon_email.gif" border="0"> Email item</a></font>
</div>

实际上我有一个链接,我发生了同样的事情:http://news.makemeheal.com/celebrity- Plastic-surgery/jennifer-aniston-weighs-on-prince-williams-hair-loss/(如有必要,减小窗口大小,以便 Fbook 和G+在同一行)

plusone compared to others

I'd like to know if the issue I see is just for my site or if this is a known issue.

I have some social widgets that align pretty well, but for some reason the PlusOne is not aligned correctly.

I used Firebug to compare it with the Facebook Like widget, and according to the CSS, they are both exactly the same height and neither have margins or padding. Their css looks identical.

<div>
        <fb:like layout="button_count" show_faces="false" width="90" action="like" font="verdana" colorscheme="light"></fb:like>

        <g:plusone size="medium"></g:plusone>

        <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=d9550e2f-f25a-4e2e-ae45-7a51cf7e3d46&type=website&buttonText=Share%20item!&embeds=true&style=rotate"></script>
         <font face='Verdana, Arial, Helvetica, sans-serif' size='1'><a href='/mmh/recommend/send.php?prodid=$!product.id'><img src="/images/icons/icon_email.gif" border="0"> Email item</a></font>
</div>

Actually I have a link where the same thing i happening: http://news.makemeheal.com/celebrity-plastic-surgery/jennifer-aniston-weighs-on-prince-williams-hair-loss/ (if necessary, reduce your window size so Fbook and G+ are on the same line)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

飘落散花 2024-12-08 15:28:14

使用这个:

<span style="position:relative; top:3px">
<div class="g-plusone" data-size="small" data-annotation="none"></div>
</span>

Use this:

<span style="position:relative; top:3px">
<div class="g-plusone" data-size="small" data-annotation="none"></div>
</span>
国际总奸 2024-12-08 15:28:14

有同样的问题。我将 Google+ 代码放入

中,并使用 CSS 将

max-height 属性限制为 70px 并且成功了。

Had same issue. I put the Google+ code in a <div> and used CSS to limit the max-height property of <div> to 70px and it worked.

七月上 2024-12-08 15:28:14

在 +1 按钮周围放置一个 div (class=froogle),将它们全部浮动,然后根据需要设置样式。它对我有用:

.facebook-like, .twitter-share-button, .froogle {
  float: left;
  margin-right: 10px;
}

Put a div (class=froogle) around the +1 button, float them all and then style as you want. It worked for me:

.facebook-like, .twitter-share-button, .froogle {
  float: left;
  margin-right: 10px;
}
掀纱窥君容 2024-12-08 15:28:14

您可以尝试使用相对定位,例如将以下 CSS 添加到 G+ 按钮:

position: relative;
top: 5px; /* Or whatever looks right */

虽然它可能会解决您的问题,但它并不能准确显示问题的原因。

You could try using relative positioning, e.g. add the following CSS to the G+ button:

position: relative;
top: 5px; /* Or whatever looks right */

Although, while it may fix your problem it doesn't exactly show the cause of the issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文