- テーブル(またはコンテンツ)すべての行にカーソルを渡すときの国境半径(10pxの)
- を必要とします(ありません
<table>
ちょうど<tr>
:背景色の変更(それは大丈夫だ)が、コンテンツが国境半径を維持する必要がある(それは今のところ大丈夫ではありません - >これは私の質問です)
BORDER-を作る方法<div class=content">
の半径が表示されています(trは "over"です単純なスクリプトがされ、それに乗っと境界半径は、ここ)ホバーに
を消失(イエロー色は灰色1ホバー=同一の幅と同じ境界半径)
.content{
width:100%;
height:auto;
border-radius:10px;
background-color:gray;
}
table{
width:100%;
cursor:pointer;
}
tr{
width:100%;
border-radius:10px !important;
}
table tr:hover{
background-color:gold;
border-radius:10px;
}
<div class="content">
<table>
<tr>
<td>hello</td>
<td>world</td>
</tr>
</table>
</div>
アメージング!良いですね! – mattvent