Facebook 分享按钮右对齐

问题描述

我正在尝试将 FB share button 与框中的右侧对齐。问题是按钮右侧的计数器,每个字符都会使按钮变宽,所以我无法设置合适的宽度。

  • iframe删除宽度值无济于事。
  • width: auto; 没有帮助。
  • width: 135px; 如果计数器为 3 位长,则很适合,但如果它更短,则留有余量。

.share {
  display: inline-block;
  float: right;
  text-align: right;
  width: 135px;
  height: 34px;
  overflow: visible;
}
<footer>
  <iframe class='share' src='https://www.facebook.com/plugins/share_button.PHP?href=SOME_URL&layout=button_count&size=large&width=110&height=28' width='110' height='28' frameborder='0'></iframe>
</footer>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)