css - 如何从网页中删除 Disqus 页脚

标签 css disqus

我想删除 Disqus 插件的页脚。 Disqus 工作正常,但页脚看起来有点重复。 我想删除页脚,以便我只能看到相关评论。

您可以在图片末尾看到页脚。

enter image description here

<div class="well">
  <div id="disqus_thread"></div>
  <script type="text/javascript">
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = 'destinationcompk'; // required: replace example with your forum shortname
    function disqus_config() {
      this.callbacks.afterRender.push(function() { alert('clayton') });
    }

    var disqus_identifier = "image_".concat(12);
    var disqus_title = "image_title".concat(12);

    /* * * 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>
  <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments
  </a></noscript>
</div>

Go to Fiddle Button

我只是想隐藏页脚而已!

最佳答案

在你的 CSS 中添加:

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

关于css - 如何从网页中删除 Disqus 页脚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20633406/

相关文章:

java - 用于从论坛获取帖子列表的 Disqus API

javascript - 在本地主机上使用 Disqus?

wordpress - Disqus 插件不适用于新的 WordPress 帖子

html - 无法缩小我的导航栏

html - 垂直对齐 SVG 图标旁边的文本

ruby-on-rails-3 - Disqus vs 定制 vs 其他一些在 Rails 3 中添加评论的选项?

c# - asp.net webforms 中的 DISQUS 评论

php - 如何在移动设备的 php 中隐藏 div 内容?

css - 图像和文本作为内容属性的值

css - 盒子大小的CSS中的所有元素