How can I restrict the table entry to expanding over the entire screen when the entry is too long? 5条回答 爱一瞬间的悲伤 (楼主) 2020-12-09 02:55 You need to specify BOTH the max-width and display styles (because the display attribute is set funny because it's a td, not a normal element) e.g. td{ max-width: 100px; display: inline-block; } 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
entry to expanding over the entire screen when the entry is too long? 5条回答 爱一瞬间的悲伤 (楼主) 2020-12-09 02:55 You need to specify BOTH the max-width and display styles (because the display attribute is set funny because it's a td, not a normal element) e.g. td{ max-width: 100px; display: inline-block; } 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You need to specify BOTH the max-width and display styles (because the display attribute is set funny because it's a td, not a normal element) e.g.
max-width
display
td{ max-width: 100px; display: inline-block; }