2024年2月7日发(作者:)
代码实现如下: table{overflow: hidden;} td, th{ padding: 10px; position: relative; outline: 0; } td:hover::after, th:hover::after {
content: '';
background-color: lightblue; position: absolute;
left: 0; height: 10000px; top: -5000px; width: 100%; z-index: -1; } td:hover::before { background-color: lightblue; content: '';
height: 100%; top: 0; left: -5000px; position: absolute;
width: 10000px; z-index: -1; }
具体代码:


发布评论