本文介绍了Angular UI 引导手风琴 - 展开创建滚动条和页面“跳转";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 angular ui bootstrap 手风琴.一切都很好,除了当我展开一个足够大的手风琴部分时,浏览器会显示页面的滚动条,整个页面会向左摇动滚动条的宽度.当手风琴足够小以至于不需要滚动条时,页面会回到原来的大小.

I'm using the angular ui bootstrap accordian. Everything works great except when I expand an accordian section that is big enough to cause the browser to show a scrollbar for the page, the whole page jolts to the left by the amount of the width of the scrollbar. When the accordian is small enough that a scrollbar isn't needed, the page jolts back to the original size.

我不知道该怎么办……这是否需要破解,或者是否有使用手风琴设置或引导程序的优雅解决方案?

I'm not sure what to do about this...does this require a hack, or is there some elegant solution using accordian settings or bootstrap?

推荐答案

我认为你唯一的解决方案是始终显示滚动条

I think your only solution is to always show the scrollbar

如何始终显示垂直滚动条浏览器?

这篇关于Angular UI 引导手风琴 - 展开创建滚动条和页面“跳转";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 12:34
查看更多