简体   繁体   English

jQuery Masonry-流体布局问题

[英]jQuery Masonry - Issue with Fluid layout

I am working on a site which was made by another developer using the jQuery Masonry plugin. 我在一个由另一个开发人员使用jQuery Masonry插件制作的网站上工作。 The site is working fine but the layout is responsive. 该网站运行正常,但布局响应良好。 The problem here is that I need to add some elements which are non responsive and due to this I need to make the whole site non responsive. 这里的问题是,我需要添加一些无响应的元素,因此,我需要使整个站点无响应。

The site contains lots of style sheets and JavaScripts, so I don't know where to start and what code to supply as reference. 该站点包含许多样式表和JavaScript,因此我不知道从哪里开始以及提供哪些代码作为参考。

But it would be helpful if someone can suggest obvious ways by which I can make the layout non-responsive. 但是,如果有人可以提出一些明显的方法来使布局无响应,那将很有帮助。

So far I have removed all the @media elements from style sheets...but this hasn't worked... 到目前为止,我已经从样式表中删除了所有@media元素...但是这没有用...

Thanks in advance... 提前致谢...

I managed to fix the issue by setting a fixed width on the container which holds the masonry divs.. 我设法通过在容纳砖石div的容器上设置固定宽度来解决此问题。

<div id="container" class="masonry" style="width: 1150px !important;">
.....
.....
</div>

Hope this helps someone.. 希望这对某人有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM