在某些网站上,我使用 Facebook 的“点赞”按钮,从昨天开始,“点赞”按钮的左侧和右侧现在有很大的空白。我尝试了一切,但无法摆脱这些边缘。现在它弄乱了我网站上的其他内容,因为利润太大了。
我做了一个jsfiddle并将边距设为红色。如何去掉两边的这些边距?
我希望我所做的一切都是正确的,因为这是我的第一篇文章。
谢谢:)
https://jsfiddle.net/oc39Lxg8/
body {
margin: 0;
padding: 0;
}
.fb-like {
margin: 0;
padding: 0;
left: 0;
background-color: red;
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>fb bttn test</title>
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_EN/sdk.js#xfbml=1&version=v5.0"></script>
</head>
<body>
button is not comming up here, but it is in my js fiddle, please take a look there https://jsfiddle.net/oc39Lxg8/
<div class="fb-like" data-href="https://jsfiddle.net/" data-width="" data-layout="button_count" data-action="like" data-size="large" data-share="false"></div>
</body>
</html>
最佳答案
查看 Facebook 的支持页面,发现有一个关于此问题的错误报告。您可以在此处关注其进度 huge margins around the like button
关于html - Facebook 点赞按钮的边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59589571/