IE 在 dojo AccordionPane 中强制使用水平滚动条
大家好,
我遇到了一个问题,看起来是由于 IE 的盒子模型错误造成的,但我不太确定如何在 dojo 中解决它。
我有一个 ContentPane,将其放入典型的 AccordionContainer 中,静态内容放置在 ContentPane 中。在所有其他浏览器上,如果 ContentPane 中的内容溢出底部,则会按照我们的预期出现垂直滚动条。但是,在 IE 中,当出现垂直滚动条时,也会出现水平滚动条。
很明显,IE 中的 ContentPane 没有考虑垂直滚动条的大小,因此当它们出现时,它会添加一个水平滚动条来容纳它们。
我希望在适当的时候出现水平滚动条,而不仅仅是因为添加了垂直滚动条。
知道如何在道场中干净地完成这个任务吗?
HI all,
I have and issue that looks like it's due to IE's box model bug, but I'm not quite sure how to solve it in dojo.
I have a ContentPane which I put into a typical AccordionContainer, and static content is palced in the ContentPane. On all other browsers, if the content in the ContentPane overflows the bottom, a vertical scrollbar appears as we would expect. However, in IE, a horizontal scrollbar appears as well when the vertical scrollbar appears.
It seems evident that the ContentPane in IE is not taking the size of the vertical scrollbars into account, so when they show up, it is adding a horizontal scrollbar to accomodate them.
I would like a horizontal scrollbar to appear when it's appropriate, not simply because a vertical scrollbar was added.
Any idea how to accomplish this cleanly in dojo?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可以尝试在CSS中使用overflow、overflow-x和overflow-y。
You might try playing with overflow, overflow-x and overflow-y in CSS.
尝试在内容窗格中添加overflow-x:auto 和overflow-y:hidden。
Try adding overflow-x:auto and overflow-y:hidden in your contentpane.