在IE11中错误对齐

时间:2015-01-28 08:02:54

标签: html-table internet-explorer-11 text-alignment

我正在尝试右对齐值,但这些值未正确对齐到列的末尾。

示例代码:

<table id="demoTable1" cellspacing="0" cellpadding="0" border="1">
    <thead>
        <tr>
            <th style="text-align:right; width:23%"><bean:message key="label.amount"/></th>
        </tr>
    </thead>
    <tbody >
        <c:forEach items="${demoForm.amount}" var="amt" >
        <tr>
            <td dntitle="myAmt" style="text-align:right; width:23%"> 
                <util:myCurrency name="amt" property="amtList" currProperty="curCode"/>
            </td>
        </tr>
        </c:forEach>
    </tbody>
</table>

输出看起来像这样:
Table with mis-aligned column

我该如何解决这个问题?

0 个答案:

没有答案