如何根据周围的 div 容器动态调整 primefaces 画廊的大小 [英] How to resize primefaces galleria dynamically depending on the sorrounding div-container

查看:82
本文介绍了如何根据周围的 div 容器动态调整 primefaces 画廊的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(如何)是否可以根据周围 div 容器的大小动态调整 primefaces 画廊的大小?画廊应该总是填满整个周围的 div 容器.

(How) is it possible to dynamically resize primefaces galleria depending on the size of the sourrounding div-container? The galleria should allways fill the entire surrounding div-container.

jscript/jquery 是正确的方法吗?

Would be jscript/jquery the right approach?

http://www.primefaces.org/showcase-labs/ui/Galleria.jsf

推荐答案

尝试将 .ui-galleria 宽度属性设为 100%.确保 css 类是相对的.

Try make the .ui-galleria width attribute to 100%. Make sure that css class is relative.

这篇关于如何根据周围的 div 容器动态调整 primefaces 画廊的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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