html - 表格行边框半径不起作用 - 替代方案?

标签 html css row css-tables

如果您在这里查看我的网站:http://mcderp.x10.mx/members.php ,当鼠标悬停在底行时,您可以看到该行没有圆 Angular ,我尝试将“溢出:隐藏”应用于具有圆 Angular 的表类,但这不起作用! :(

最佳答案

您必须为单个单元格设置样式。 Firefox 和 Chrome 上的工作示例:http://jsfiddle.net/AyKE7/

CSS

table {
    border-collapse: collapse;
}
th,
td {
    padding: 4px 7px;
}
/* hover */
tr:hover th,
tr:hover td {
    background-color: lightblue;
}
/* hover, left cell */
tr:hover th {
    border-radius: 5px 0 0 5px;
}
/* hover, last cell on he right */
tr:hover td:last-child {
    border-radius: 0 5px 5px 0;
}

关于html - 表格行边框半径不起作用 - 替代方案?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15700853/

相关文章:

php - HTML onclick 不触发函数

javascript - HTML5 和 Javascript 仅在可见时播放视频

html - 如何在特定维度后在列表中显示滚动条?

html - 如何修改 bootstrap 3 导航栏响应尺寸

html - 设置过渡持续时间后无法覆盖打印样式中的填充

python - 删除python中小于某个值的行

javascript - keyup 在 IE 8 中不起作用

html - :hover isn't applying full background to li

sql - 如何消除表中两列的重复

postgresql - 如何将集合返回函数的输出插入到表中