jquery - 表格行悬停背景色圆 Angular 效果

标签 jquery css background

表格行有悬停背景。我需要在背景上做圆 Angular 。

table tbody tr#ClickableRow:hover {
  background-color: #fbf6e7;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  -khtml-border-radius: 20px;
  border-radius: 20px;
  cursor: pointer;
}
<tr id="ClickableRow">
  <td>
    <a href="http://somesite.com">Go Here</a>
    <p>To find about all the interestng animals found in this tourist attractions including zebra, giraffe..... ....
    </p>
  </td>
</tr>

这是行不通的。我仍然得到平方 bg。

最佳答案

尝试在 td 而不是 tr

上应用边框半径

body {
  margin: 100px;
}
table tbody tr#ClickableRow:hover td {
  background-color: #fbf6e7;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  -khtml-border-radius: 20px;
  border-radius: 20px;
  cursor: pointer;
}
<table>
  <tr id="ClickableRow">
    <td>
      <a href="http://somesite.com">Go Here</a>
      <p>To find about all the interestng animals found in this tourist attractions including zebra, giraffe..... ....
      </p>
    </td>
  </tr>
</table>

如果您的表格行有多个单元格,您可以这样做:http://jsfiddle.net/petersendidit/RzKbq/1/

关于jquery - 表格行悬停背景色圆 Angular 效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8989487/

相关文章:

html - 垂直对齐 : middle for an object floated from left to the right

html - css负边框形状

css - AngularJS样式设置背景

javascript - 如果未选择 radio ,则使用 jquery 隐藏加载的 div

javascript - 使用 jquery/ajax 加载外部页面 - 也加载外部页面的 jquery 脚本

javascript - jQuery.ScrollTo 和滚动事件无法正常工作

php - FPDF 背景图像 : what size for a good A4 background

javascript - 在 div 内向下滚动到 25px

jQuery - 检查刷新时的选择值?

html - 双背景,一个背景从中间重复 - css3