你好傢伙我試圖設置一個最大寬度和高度,以便當我的數據在我的單元展開它不會超過這個大小....似乎並不工作HTML最大寬度和高度在IE中不起作用
/*styling for Data Extraction tool. */
table.data_extract
{
border: 3px DarkGray solid;
border-collapse: collapse;
}
td.data_extract,
table.data_extract td
{
border-color : DarkGray;
border-style : groove;
border-width : thin;
border: #000000 1px solid;
text-align: center;
font-size: 7.5pt;
white-space: normal;
max-width: 125px;
max-height: 75px;
background-color:#FFFFFF;
padding-left: 4px;
padding-right: 4px;
}
table.data_extract th
{
border: #000000 1px solid;
background-color:#DDDDD0;
text-align: center;
font-size: 8.5pt;
padding: 10px;
}
HTML:
<table align="center" class="data_extract vert_scroll_table" >
<tr>
<c:forEach var="heading" items="${results.headings}">
<th class="data_extract">${heading}</th>
</c:forEach>
</tr>
<c:forEach var="row" items="${results.data}">
<tr>
<c:forEach var="cell" items="${row}" varStatus="rowStatus">
<td class="data_extract">
<c:choose>
<c:when test="${results.types[rowStatus.index].array}">
<c:set var="comma" value="," />
<c:forEach var="elem" items="${cell}" varStatus="cellStatus">
<c:set var="myVar" value="${cellStatus.first ? '' : myVar} ${elem} ${cellStatus.last ? '' : comma}" />
</c:forEach>
<span class="mouseover_text" title="${myVar}">${myVar}</span>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${cell.class.name eq 'java.sql.Timestamp' }">
<fmt:formatDate value="${cell}" pattern="${date_pattern}" />
</c:when>
<c:otherwise>
${cell}
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</td>
</c:forEach>
</tr>
</c:forEach>
</table>
你應該發佈你生成的HTML並告訴我們什麼版本的IE – 2012-02-23 19:33:03
什麼版本的IE? – Jrod 2012-02-23 19:33:51
IE8 .............. – 2012-02-23 19:34:57