开发者

jQuery FancyBox: How do I increase the width of the element #fancybox-wrap by 10 px?

开发者 https://www.devze.com 2023-01-06 04:27 出处:网络
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?

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;
    });
});
0

精彩评论

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