在单元格边框处有两个单元格中断的表格行上使用边框半径进行圆角处理
我有一个包含两个单元格的表格行,并且该行具有悬停背景颜色,我试图使用边框半径将悬停背景颜色的角变圆,如下所示:
table tbody tr#ClickableRow:hover td
{
background-color: #fbf6e7;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
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 etc
</p>
</td>
<td>Call us:444-444-2322</td>
</tr>
它在单元格边框处正确断裂。如何解决这个问题?我无法选择行本身并应用半径..
I have a table row with two cells and the row has hover background color I am trying to to round the corners of hover background color using border radius like this:
table tbody tr#ClickableRow:hover td
{
background-color: #fbf6e7;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
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 etc
</p>
</td>
<td>Call us:444-444-2322</td>
</tr>
Its breaking right at the cell border. How can this be resolved? I can't select row itself and apply the radius..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在
TD
中放置一个DIV
,然后在 DIV 中添加您的内容。将边框应用于 DIV 而不是 TD。Put a
DIV
inside theTD
, add your content in the DIV. Apply the borders to the DIV instead of the TD.