td单元格上的固定高度和宽度--HTML
我想在我的手机上设置一个固定的高度和宽度: 如果$elem上有一个长数组,表就会变大td单元格上的固定高度和宽度--HTML,html,css,Html,Css,我想在我的手机上设置一个固定的高度和宽度: 如果$elem上有一个长数组,表就会变大 <table align="center" class="data_table vert_scroll_table" > <tr> <c:forEach var="heading" items="${results.headings}"> <th clas
<table align="center" class="data_table vert_scroll_table" >
<tr>
<c:forEach var="heading" items="${results.headings}">
<th class="narrow">${heading}</th>
</c:forEach>
</tr>
<c:forEach var="row" items="${results.data}">
<tr>
<c:forEach var="cell" items="${row}" varStatus="rowStatus">
<td class="narrow" style="width:75px;height:75;">
<c:choose>
<c:when test="${results.types[rowStatus.index].array}">
<c:forEach var="elem" items="${cell}" varStatus="cellStatus">
<span class="mouseover_text" title="${elem}, ">${elem}<c:if test="${!cellStatus.last}">, </c:if></span>
</c:forEach>
</c:when>
<c:otherwise>
${cell}
</c:otherwise>
</c:choose>
</td>
</c:forEach>
</tr>
</c:forEach>
</table>
尝试添加“TableLayout:fixed”作为表格CSS的一部分。也许这会解决您的问题。尝试添加“表布局:固定”作为表的CSS的一部分。也许这会解决你的问题。也许你的身高有问题,因为你没有正确定义它:
<td class="narrow" style="width:75px;height:75;">
将px像这样放置:
<td class="narrow" style="width:75px;height:75px;">
也许你的身高有问题,因为你没有正确定义它:
<td class="narrow" style="width:75px;height:75;">
将px像这样放置:
<td class="narrow" style="width:75px;height:75px;">
因此,只需通过应用相应的CSS属性定义固定的高度+宽度即可。换句话说,你的问题是什么?因此,只需通过应用相应的CSS属性来定义一个固定的高度+宽度。换句话说,你的问题是什么?