开发者

#container shifts to the left after third #btnAdd click?

开发者 https://www.devze.com 2023-03-30 00:25 出处:网络
I have no idea why this happens, but after clicking #btnAdd for the third time and ad开发者_如何转开发ding the third set of form elements, the entire #container structure moves slightly to the left.

I have no idea why this happens, but after clicking #btnAdd for the third time and ad开发者_如何转开发ding the third set of form elements, the entire #container structure moves slightly to the left.

Here's my JSBin (JsFiddle is down): http://jsbin.com/enowiv/edit#javascript,html

Does anyone know why this is?

Comments, thoughts and of course, answers would be greatly appreciated :)!!


It's because the vertical scrollbar is showing on the third click.

You can get it to always show by using the CSS:

body {
    overflow-y: scroll;
}
0

精彩评论

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