gpt4 book ai didi

html - IE 溢出滚动

转载 作者:行者123 更新时间:2023-11-28 11:33:52 24 4
gpt4 key购买 nike

如何删除滚动条但允许在 Internet Explorer 中滚动?它在 FireFox/Chrome/Safari 中看起来不错,但在 IE 中看起来非常糟糕,基本上无法使用。

这是我的 CSS:

<style type="text/css">
table
{
display:inline-block;
overflow:auto;
white-space: nowrap;
}
th, td
{
display:inline-block;
height:100px;
width:100px;
overflow:hidden;
white-space: pre-wrap;
}
th {
text-align: left;
}
td {
vertical-align: top;
padding-top:0px;
}
</style>

这是我的表格在 IE9-11 中的屏幕截图(它们看起来都一样):

hideous ie table

太可怕了...

这是代码 http://jsfiddle.net/EZM6x/ 的 fiddle

最佳答案

找到它运行的 IE 版本,然后使用它。

<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=//put version here">
<![endif]-->

关于html - IE 溢出滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21006626/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com