jQuery Isotope Plugin-添加内联& quot; display:none& quot; -无法弄清原因 [英] jQuery Isotope Plugin - Adding inline "display:none" - can't figure out why

查看:79
本文介绍了jQuery Isotope Plugin-添加内联& quot; display:none& quot; -无法弄清原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将同位素添加到新的Wordpress主题中.问题是它不会显示,因为某些东西在主同位素包装器中添加了内联(display:none)样式.

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 { 显示:无; /*为方便起见,您可以删除此*/ }

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

这篇关于jQuery Isotope Plugin-添加内联&amp; quot; display:none&amp; quot; -无法弄清原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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