remove facebook likebox scroll bar

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 18:29:57

问题


I want to remove the facebook likebox scroll bar and am having issues as it seems they load the styles for the likebox as investigation indicates styles loaded after page loads.

I have identified 'pluginLikeboxStream' as the class that i want to overwrite or add 'overflow: hidden' too too but don't know how to add to or overwrite the default style from facebook.

I've tried local css file, and jquery without success.

Any ideas

    (function (d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=445282282200701";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));'

html:

<div class="fb-like-box" data-href="https://www.facebook.com/mypage" data-width="355" data-height="400" data-show-faces="false"
                data-stream="true" data-border-color="#FFFFFF" data-header="false">
            </div>

回答1:


The Facebook likebox is loaded as an IFrame within the div you declare.

You don't have any control over the styling of an IFrame from another source.

Facebook give you some control over how the like box is displayed but you can't do anything beyond that.




回答2:


try this css:

.pluginLikeboxStream{
overflow:hidden !important;
}


来源:https://stackoverflow.com/questions/14644209/remove-facebook-likebox-scroll-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!