css - 使用 CSS 和 Bootstrap 3 突出显示当前悬停在 html 表中的行和列

标签 css twitter-bootstrap twitter-bootstrap-3

我希望能够使用 Bootstrap 3 或/和 plain css突出显示当前悬停的 html 行和列表

如果不使用自定义 javascript 并保持响应能力 Bootstrap 表,这是否可能?

谁能提供建议和/或链接?

最佳答案

添加 .table-hover 以在表格行上启用悬停状态

<table class="table table-hover">
  ...
</table

.table-responsive 类创建一个父 div 来响应

<div class="table-responsive">
  <table class="table table-hover">
    ...
  </table>
</div>

更新

:nth-child() 来识别 :hover 列号的解决方案

演示 http://jsfiddle.net/kGz9E/

引用:http://getbootstrap.com/css/#tables

关于css - 使用 CSS 和 Bootstrap 3 突出显示当前悬停在 html 表中的行和列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22193534/

相关文章:

javascript - 在输入文本中书写时保持专注于下拉列表

html - 无法很好地定位到中心

html - Font Awesome 图标悬停问题

html - 列的 Bootstrap 高度以更好地流动

html - <td> 添加 div 后尺寸会增加

javascript - 悬停在谷歌图表图例上,工具提示在模态后面

html - 导轨 4 : devise sign up form styling issues

css - 具有绝对子项的多个 div 的自动高度?

css - 表单的下拉菜单背景

javascript - 未捕获的 TypeError : $(. ..).modal 不是 Codeigniter 中的函数