在这种特定情况下如何隐藏 ie8 中的滚动条?
我试图让 IE 隐藏滚动条,推荐的食谱似乎不起作用:
例如 this.scrollbar='no'; <- 没有效果
this.style.overflow='隐藏'; <- 这会隐藏垂直滚动条并引入水平滚动条。
this.style.overflow-y='隐藏'; <-- 这会冻结 IE8。
我还能做什么?
发现.... this.style.overflowY='hidden';作品。
I am trying to make IE to hide a scrollbar, The recommended recipes do not seem to work:
E.g. this.scrollbar='no'; <- no effect
this.style.overflow='hidden'; <- this hides the vertical scrollbar and introduces a horizonal one.
this.style.overflow-y='hidden'; <-- this freezes IE8.
What else could i do?
Found out.... this.style.overflowY='hidden'; works.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该有效:
这仅适用于 IE。
This should work:
This is strictly IE only.