简体   繁体   English

如何删除剑道网格选定行中的边框底部

[英]How to delete border-bottom in kendo grid selected row

I have grid with kendo when i changed selected row background-color but when i selected row it has also shows me border-bottom as in image当我更改所选行的背景颜色时,我有剑道网格,但是当我选择行时,它也显示了我的边框底部,如图

剑道网格选择的行与边框底部

I want to delete that blue line.Also i tried the css like this but not worked.我想删除那条蓝线。我也试过这样的 css 但没有奏效。

.k-grid .k-state-selected tr {
    border-bottom: none;
}

How to solve this?如何解决这个问题?

From looking at the Kendo Grid's page on grid selection, it looks like it is the row ( tr ) which has the class k-state-selected .从查看关于网格选择的 Kendo Grid 页面,看起来它是具有类k-state-selected的行( tr )。

The above CSS selector that you've attempted to use says that the element you're trying to style is a tr tag that is an ancestor of the element with the class k-state-selected .您尝试使用的上述 CSS 选择器表示您尝试设置样式的元素是一个tr标记,它是具有类k-state-selected的元素的祖先

This is not true as the row itself is what has that class.这不是真的,因为行本身就是具有该类的内容。 You can fix it like so:你可以像这样修复它:

.k-grid tr.k-state-selected {
    border-bottom: none;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM