jQuery slideToggle jumps around

前端 未结 18 1355
迷失自我
迷失自我 2020-12-16 18:13

I\'m using the jQuery slideToggle function on a site to reveal \'more information\' about something. When I trigger the slide, the content is gradually revealed, but is loc

18条回答
  •  被撕碎了的回忆
    2020-12-16 19:01

    you can use a structure like this one:

    and in your css

    .details{
        position:relative;
    }
    .hidden{
        display:none;
    }
    

    i think thats it.

    your jquery call must be:

    $('.hidden').slideToggle("slow");
    

提交回复
热议问题