Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法“按原样”指定表格列宽。换句话说,我希望一列具有显示其内容所需的精确宽度。
这应该是默认情况。
<!-- "table-layout" is "auto" by default as well, just to force it --> <table border="1" style="table-layout:auto;"> <tr> <td>Column 1</td> <td>Column 2</td> </tr> </table>
这是它的样子