如果数组为空,我有以下代码我想删除tbl-content
类recordList
<table id="gradient-style">
<tbody class="tbl-content">
<tr>
<%
for (RecordBean record : recordList) {
// some code here to get result
}
%>
<%
if (recordList.isEmpty())
{
%>
<tr>
<td colspan="12" align="center" style="color: red;font-family: verdana">
<h3>No Search records </h3>
</td>
</tr>
<%
}
%>
</tbody>
</table>
这是CSS
.tbl-content{
height: 650px;;
overflow: auto;
position: absolute;
border: 1px solid gray;
border-top: none;
}