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.
我怎样才能在多个 td 上水平重叠?text-overflow似乎没有削减它
text-overflow
你是这个意思吗?
<table border="1"> <thead> <tr> <th>id</th> <th colspan="2">Name</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>John</td> <td>Doe</td> </tr> <tr> <td>2</td> <td>Jane</td> <td>Doe</td> </tr> </tbody> </table>
JSFiddle 演示