我想删除Disqus插件的页脚.Disqus工作正常,但页脚看起来有点迭代.我想删除页脚,以便我只能看到相关的注释.
您可以在图像的末尾看到页脚.

<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>
Run Code Online (Sandbox Code Playgroud)
我只是试图隐藏页脚就是这样!
小智 40
在你的CSS中添加:
#disqus_thread {
position: relative;
}
#disqus_thread:after {
content: "";
display: block;
height: 55px;
width: 100%;
position: absolute;
bottom: 0;
background: white;
}
Run Code Online (Sandbox Code Playgroud)
您可以使用负边距和溢出隐藏.
#disqus_thread {
overflow: hidden;
iframe {
margin-bottom: -54px;
}
}Run Code Online (Sandbox Code Playgroud)
我的印象是新的 disqus使用了一个iframe,因此无法应用自定义CSS:
http://help.disqus.com/customer/portal/articles/526768-introducing-the-new-disqus-and-faq-
在大多数情况下,新的Disqus中的自定义是不同的,因为我们决定完全重新实现我们在iframe中的注释嵌入.这个iframe托管在disqus.com上,因此,浏览器不允许您的网站使用CSS语句将样式应用于它.