jQuery FancyBox: How do I increase the width of the element #fancybox-wrap by 10 px?
In jQuery FancyBox, I need to increase the width of the element #fancybox-wrap by 10 px. What is the easiest way to achi开发者_如何学Ceve this?
Thanks.
if you are in jQuery 1.4
you could
$(document).ready() {
$("#fancybox-wrap").width(function(i,width){
return width + 10;
});
});
精彩评论