问题
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