开发者

Full page jQuery slider

开发者 https://www.devze.com 2023-02-16 02:50 出处:网络
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 wh

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

精彩评论

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

关注公众号