jQuery Isotope Plugin - Adding inline “display:none” - can't figure out why

我的梦境 提交于 2019-12-13 08:26:47

问题


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.

It looks like this:

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

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...


回答1:


/* EXPANDED BOX */

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



来源:https://stackoverflow.com/questions/13974594/jquery-isotope-plugin-adding-inline-displaynone-cant-figure-out-why

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!