我的mvc应用程序有kendo网格,我已经使用了
我找到了以下解决方案: 我已经编写了一些CSS,例如:
什么导致了主要问题?我如何只使用CSS解决这个问题?
position:absolute;
来冻结列,即对于表格的tr:firstChild,td:firstChild。
最近,在我们的服务器上升级到Chrome 45后,在Chrome中,表格显示为<(col1),(blank space),(col2),(col3)>,而其他浏览器(包括以前的Chrome版本)都以正确的格式呈现我的表格<(col1),(col2),(col3)>。
我甚至无法在我的Chrome中检查那个空格。我找到了以下解决方案: 我已经编写了一些CSS,例如:
@media screen and (-webkit-min-device-pixel-ratio:0) {
.tablexyz tbody th:first-child,
.tablexyz tbody tr:first-child {
position: relative;
width: 240px;
top: auto;
left: 20px;
}
}
我在网页中使用jQuery,并手动将其设置为绝对定位,效果很好:
$(".tablexyz tbody th:first-child").css({
position: "absolute",
width:"240px",
top:"auto",
left : "20px"
});
什么导致了主要问题?我如何只使用CSS解决这个问题?