开发者

Adding a MaxWidth/MaxHeight to JQuery Supersized

开发者 https://www.devze.com 2023-03-11 17:31 出处:网络
I have a client who suddenly want to restrain the size of the JQuery script Supersized开发者_Go百科. What he\'d like to happen is that the image only expands between 960px and 1020px. If you scale the

I have a client who suddenly want to restrain the size of the JQuery script Supersized开发者_Go百科. What he'd like to happen is that the image only expands between 960px and 1020px. If you scale the monitor below that, all other CSS elements would stay in place. I know, I know, defeats the purpose of the plugin, but the client does want the scaling between a min and max.

I've looked at the script and I could probably figure it out with a couple days of poking around, but I figured someone on this great board could sort it out quickly.

So any help greatly appreciated!


just edit the supersized-css file like this and you got it:

#supersized { ... position:absolute; ... }

#supersized img { ...position:relative; .... max-width:1020px; max-height:XXXpx; ...}

#supersized li { ... position:absolute; ...}


Use prettyPhoto light box it has a lots of parameters in JS to achieve desired output. http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

Hope this help!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号