表格增加行号和鼠标悬停行样式

This commit is contained in:
purocean
2020-11-25 13:31:10 +08:00
parent 245d84ebca
commit b078351b78
+17
View File
@@ -809,6 +809,23 @@ button:hover {
.view img {
background-color: #fff !important;
}
table tbody {
counter-reset: tr-number;
}
table tbody tr:hover {
outline: 2px #b3833b dashed;
}
table:hover tbody tr td:first-child:before {
counter-increment: tr-number;
content: counter(tr-number);
position: absolute;
right: 100%;
padding-right: 5px;
color: #999;
}
}
@media print {