2012-07-25 57 views
0

我已經安裝了漂亮照片jQuery插件,但我需要設置燈箱的最小和最大高度和寬度,並且似乎無法使其工作。jQuery prettyPhoto - 爲燈箱設置最大高度和寬度

我試過更改prettyPhoto.css文件,但沒有運氣,我試着看prettyPhoto.js文件,並且無法計算出尺寸是如何設置的!

任何人都有任何想法如何做到這一點?在PrettyPhoto.css

+0

此問題已得到解決 – user1551210 2012-07-25 10:24:24

回答

2

查找div.pp_pic_holder文件/css/prettyPhoto.css!important 防爆應用所需的寬度。 width: 825px !important;

0

Here對於您的問題是一種可行的解決方法。這對我最有幫助。

3
$(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 
     }); 
    }); 

fixed window-size in prettyphoto