Sea*_*mes 3 javascript css facebook
我们在facebook按钮上看到了一种奇怪的行为.用例如下:
position: absolute现在是1000px高,透明元素覆盖了比页面上的FB like按钮更低的所有元素.以下是我们看到的一些其他奇怪的行为:
display: block返回页面后呈现.显然这是一个已知问题.
https://developers.facebook.com/x/bugs/663421210369743/
我们使用以下方法解决了这个问题:
.fb-like {
display: inline-block !important;
vertical-align: middle !important;
margin-right: 1.5em;
line-height: 30px;
width: 81px !important;
height: 22px !important;
position: relative;
z-index: 1002;
}
.fb-like > span {
vertical-align: top !important;
min-width: 81px !important;
min-height: 22px !important;
}
.fb-like > span > iframe {
min-width: 81px !important;
min-height: 22px !important;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1029 次 |
| 最近记录: |