隐藏“也在于Disqus”

时间:2015-09-02 13:24:36

标签: html css

我正在尝试使用此CSS隐藏网站上嵌入的Disqus评论部分的下半部分:

<fragment
    android:id="@+id/my_navigation_drawer"
    android:name="com.my.company.gui.drawer.DrawerFragment"
    android:layout_width="@dimen/my_nav_drawer_width"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    app:layout="@layout/my_drawer_navigation_fragment"
    tools:layout="@layout/my_drawer_navigation_fragment">
</fragment>

不知何故,CSS被覆盖并且仍然显示。 “也在于Disqus”部分看起来非常凌乱和不专业,因为它包含来自不相关主题的随机片段。

感谢。

2 个答案:

答案 0 :(得分:1)

css不适用于disqus html,因为它加载为 iFrame

你可以禁用&#34;同时开启&#34;通过取消选中设置&gt;框基本&gt; Engage管理页面上的发现复选框

答案 1 :(得分:0)

我使用此代码

<html>
<head>

<style>
#disqus_thread {
     position: relative;
}
#disqus_thread:after {
     content: "";
     display: block;
     height: 55px;
     width: 100%;
     position: absolute;
     bottom: 0;
     background: white;
}



</style>

</head>
<body>
<div id="disqus_thread">
<script type="text/javascript">
                    /* * * CONFIGURATION VARIABLES * * */
                    var disqus_shortname = 'xxxxxxx';
                    var disqus_identifier = 'xxxxxx-xxxxx';
                    /* * * DON'T EDIT BELOW THIS LINE * * */
                    (function () {
                        var dsq = document.createElement('script');
                        dsq.type = 'text/javascript';
                        dsq.async = true;
                        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
                        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
                    })();
                </script>
</body>
</html>