更新的XHTML宽度构造?

Ref*_*efu 4 xhtml visual-studio-2010

我建了这样一张桌子:

<table width="100%" border="0">
    <tr>
        <td width="20%">
            Nombre
        </td>
    </tr>
</table>
Run Code Online (Sandbox Code Playgroud)

但我有一个警告"验证(XHTML 1.0 Transitional):属性'宽度'被认为是过时的.建议使用更新的结构"

XHTML中宽度的新构造是什么?

And*_*rew 5

width属性<td>已被弃用.

您应该width使用CSS width属性替换该属性:

<table width="100%" border="0">
    <tr>
        <td style="width: 20%;">
            Nombre
        </td>
    </tr>
</table>
Run Code Online (Sandbox Code Playgroud)