我无法理解我在这里做了什么错误。 CSS样式应该是独立的但是我的两个表“rcorners1”表似乎是由“water_table”为什么我的CSS表格样式混合
的设置会影响我有两个表的CSS的第一台
table.water_table tr:nth-child(even) {background-color: #f2f2f2}
table.water_table tr:hover {background-color: #f5f5f5}
table.water_table th {background-color: #ffffff;}
table.water_table th, td {
padding: 15px;
text-align: left;
}
我的第一台长相像
<table border="0" align="center" class="water_table" id="water_table">
我的第二个表中的CSS
table.rcorners1 {
border-radius: 10px;
border: 1px solid #a4b3bd;
padding: 2px;
margin: 3px;
width: 120px;
height: 160px;
float: left;
}
我的第二个表看起来像
<table width="100%" border="0" class="rcorners1" id="rcorners1">