4像素偏移“Like”按键 [英] 4 pixel offset of "Like" button

查看:198
本文介绍了4像素偏移“Like”按键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想排列我网站上的所有社交媒体按钮。 LinkedIn,GoogleOne和Twitter按钮都垂直对齐,但我似乎无法弄清楚为什么FaceBookLike按钮会向下跳4个像素。

I would like to line up all of the social media buttons on my site. The LinkedIn, GoogleOne and Twitter buttons all align vertically, but I can't seem to figure out why the FaceBook "Like" button jumps down 4 pixels.

我已经尝试调整margin-top,vertical-alignment css等等。似乎什么都没有移动这个按钮。

I've tried adjusting the margin-top, the vertical-alignment css, etc. Nothing seems to move this button back up.

推荐答案

我已经使用了它,它似乎一致地工作,对其他浏览器的呈现没有任何伤害:

I've used this and it seems to work consistently with no harm to other browsers presentation:

.fb-like { line-height: 0; }

这篇关于4像素偏移“Like”按键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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