“最大高度”和水平滚动条导致 IE8 进入兼容模式 (ASP.NET)
我正在使用 ASP.NET 拥有一个可以向下扩展到某一点的面板,此时用户可以在面板内垂直和水平滚动(水平滚动是因为一个 GridView 有很多列,这是不可能的)在面板/div 中显示没有水平滚动条)
问题是,如果我将包含 GridView 的面板(asp:Panel 控件)设置为具有 Scrollbars="Both",并且在面板上设置了最大高度,则 IE8 会刷新为兼容模式。如果我删除最大高度,或者只有垂直滚动条,它就可以正常工作。有什么解决方法吗?
谢谢
I'm using ASP.NET to have a panel that can expand downwards to a certain point, at which point the user can scroll within the panel, both vertically and horizontally (horizontally because one GridView has a lot of columns which would be impossible to display without horizontal scrollbars in the panel/div)
Problem is, if I set the panel (asp:Panel control) that holds the GridView to have Scrollbars="Both", and have a max-height set on the panel, IE8 refreshes into compatibility mode. If I remove the max height, or have only vertical scrollbars, it works fine. Any workarounds for this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 X-UA 兼容的元标记告诉 IE8 以标准模式渲染页面:
Use an X-UA-compatible meta-tag to tell IE8 to render your page in standards mode: