开发者

Full page jQuery slider

I'm trying to adapt the Coda Slider at jQuery for D开发者_如何学Cesigners to take up the entire page (100% width / 100% height) but as soon as I change the height of the .scroll class to 100%, the whole thing disappears. Does anyone know what I can do to fix it?


try

$(document).ready(function(){
    var docWidth = $(document).width();
    var docHeight = $(document).height();

    $(".scroll").css({
        "height":docHeight,
        "width":docWidth
    });
});

the values may need to be in pixels not %.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜