jQuery slideToggle jumps around

前端 未结 18 1293
迷失自我
迷失自我 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:06

    Does your document contains any DOCTYPE declaration? Without it, some browser render the page in "quirck" mode which doesn't always lead to the result you are expecting..

    see here

    To make sure your page render as intended, add the following declaration to the top of the page (that is, before the html tag).

    
    

提交回复
热议问题