html - <td> 中的旋转文本在 Windows Internet Explorer 8 (IE8) 中无法正确显示

标签 html css internet-explorer-8 html-table

我已将 PDF 文件编码为 HTML。你可以从这个链接看到它:http://akibslab.com/mike

<td>中有一些文字它由 CSS3 变换元素旋转。旋转文本的 CSS 代码是:

.vertical_text {
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    transform: rotate(-90deg);
}

问题是文本在 IE8 中显示不正确,文本超出了 <td> .您可以从屏幕截图中看到它。 Here

最佳答案

为元素设置固定宽度,添加嵌套元素,将IE8的旋转应用于嵌套元素而不是当前元素。

但鉴于 IE8 的市场份额微乎其微,目前只需为 IE8 提供合理的后备样式就足够了。

关于html - <td> 中的旋转文本在 Windows Internet Explorer 8 (IE8) 中无法正确显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37753460/

相关文章:

css - 在 LESS 中使用 IE8 @media\0screen 查询

javascript - 带有 if-else 函数的 Onclick 事件在 IE8 中不起作用

javascript - 如何在div内容中显示另一个html

javascript - jQuery 将 Href 匹配到 div ID

html - Bootstrap Popover 全屏带边距

html - 我可以使用 CSS 在视口(viewport)中垂直居中固定高度的 DIV 吗?

javascript - 提交表单并使用 href 标签在弹出窗口中打开它

html - 流体表 : Truncate cell contents when needed, 否则保持表尽可能窄

html - css 下拉菜单在 IE 中不起作用

javascript - IE8 和 console.log - 如果开发人员控制台未打开则回退到 stub