CSS滚动条问题
I have used Accordion and Slideshow on my site.
http://www.delightbranding.com/
when you click Play. For some reason the scroll bar appears shifting the page.
Guess i am missing setting height for some div. Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这似乎是个坏苹果:
当选择“Play”项时,该 div 会扩展到 HTML 内容下方,导致页面增大。
This one seems to be the bad apple:
When the "Play" item is selected, this div expands below the HTML content, causing your page to grow.
从
.control-next
css 类中删除高度Remove the height from
.control-next
css class这种情况只发生在 IE9 中(我敢打赌所有版本的 IE),并且只有当我的浏览器窗口很短时才会发生。
我倾向于在我的 html 标签中添加一条 CSS 规则,
该规则始终将滚动条放置在页面上,这样较长的内容就不会导致浏览器的行为不一致。
不确定这在这种情况下是否对您有帮助,但值得一试。
this is only happening for me in IE9 (I'd wager all versions of IE) and only when my browser window is short.
I tend to add a CSS rule to my html tag of
Which places the scrollbar on the page always so that longer content doesn't make the browser behave inconsistently.
Not sure if this will help you in this case, but worth a try.