jQuery Isotope Plugin - 添加内联“display:none” - 不能弄清楚为什么 [英] jQuery Isotope Plugin - Adding inline "display:none" - can't figure out why

查看:151
本文介绍了jQuery Isotope Plugin - 添加内联“display:none” - 不能弄清楚为什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将同位素添加到我的新Wordpress主题。问题是,它不会显示,因为一些东西正在添加一个内联(显示:无)样式到主同位素包装器。

I'm trying to add Isotope to my new Wordpress theme. The issue is that it won't display because something is adding an inline (display:none) style to the main isotope wrapper.

看起来像这样:

 <div id="container" class="photos clearfix isotope" style="position: relative; overflow: hidden; display: none;">

我刚刚在样式表中添加了以下CSS覆盖:

I just added the following CSS override to my style sheet:

.isotope {
  display:block !important;
}

有更好的办法吗?我觉得这是一个棘手的解决方案...

Is there a better way to go about this? I feel like it's a tacky solution...

推荐答案

/* EXPANDED BOX */

.item-content {
display:none; / *为可用性,您可以删除此* /
}

.item-content { display: none; /* for usability you could remove this */ }

这篇关于jQuery Isotope Plugin - 添加内联“display:none” - 不能弄清楚为什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆