jQuery prettyPhoto – 设置灯箱的最大高度和宽度
我已经安装了漂亮的照片jQuery插件,但我需要设置灯箱的最小和最大高度和宽度,似乎无法让它工作。
我已经尝试更改prettyPhoto.css
文件并且没有运气,我尝试查看prettyPhoto.js
文件并且无法确定如何实际设置尺寸!?
任何人都知道如何做到这一点?
$(document).ready(function(){ $("a[rel^='prettyPhoto']").prettyPhoto({ allow_resize: true, /* Resize the photos bigger than viewport. true/false */ default_width: 500, default_height: 344, horizontal_padding: 20 }); });
在prettyphoto固定窗口大小
在PrettyPhoto.css文件/css/prettyPhoto.css中查找/css/prettyPhoto.css
并使用!important
Ex应用所需的宽度。 width: 825px !important;
以下是您的问题的可能解决方法。 这对我最有帮助。