简体   繁体   English

Facebook Like Button post to wall覆盖了文章

[英]Facebook Like Button post to wall overlay the article

I have a bit of problem here. 我这里有点问题。

The Facebook like button on my web page when they click on the like button they will have an overlay popup window say to post it on their wall and the normal one should be like this 当他们点击相似的按钮时我的网页上的Facebook喜欢按钮,他们将有一个覆盖弹出窗口说贴在墙上,正常的应该是这样的

在此输入图像描述

But mine after I click it goes under and I can't even click or do anything on it. 但我点击它后,我甚至无法点击或做任何事情。

在此输入图像描述

I don't know how to fix this because I'm not sure if this is the problem of the code or it is the layout of the page. 我不知道如何解决这个问题,因为我不确定这是代码的问题还是页面的布局。

    <li><div class="fb-like" data-href="<?php the_permalink(); ?>" data-send="false" data-layout="box_count" data-width="55" data-show-faces="false"></div></li>

Inspect your page with Firebug, find the Facebook overlay element and check if changing z-index of this element will fix it. 使用Firebug检查您的页面,找到Facebook overlay元素并检查更改此元素的z-index是否会修复它。 If yes, just add the rule to your own CSS with !important attribute. 如果是,只需使用!important属性将规则添加到您自己的CSS中。 I had issue of this kind few months ago and it worked fine for me. 我几个月前就遇到了这种问题,它对我来说很好。

I actually fixed by using these. 我实际上通过使用这些来修复。

.fb_iframe_widget_lift {
    z-index: 1;
}

.entry {
    line-height: 1.5;
}

.content iframe {
    max-width: 1200%;
}

.entry p {
    padding-top: 1em;
    padding-bottom: 1em;
}

.entry img {
    max-width: 100%;
}

.entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6 {
    margin-bottom: 15px;
    line-height: 1em;
    font-family: Helvetica;
    font-weight: normal;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM