jpe*_*rom 9 css internet-explorer css-transforms microsoft-edge
添加类似于transform:translate(0px, -45px)表行的CSS转换时,Internet Explorer(已测试10和11)和Microsoft Edge无法正确显示转换.
使用一些简单的代码作为示例:
<table style="width:500px;">
<tbody>
<tr style="height: 30px; background-color:red; color:white;">
<td>1</td>
</tr>
<tr style="height: 30px; background-color:blue; color:white;">
<td>2</td>
</tr>
<tr style="height: 30px; background-color:yellow; color:black; transform:translate(0, -45px);">
<td>3</td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
此屏幕截图显示了问题:第3行应位于第1行和第2行的顶部,但在IE/Edge中,它尚未移动.几乎任何其他现代浏览器都按预期运行.Microsoft指出IE 10+和Edge应支持(无前缀)转换,并且基于该标准,支持具有显示表行的元素.
有没有人知道为什么这不起作用?