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.
如何为 atleat IN CHROME 支持的 tr 或 td 设置最大高度?
这里有一个不适用于 chrome 的答案: How to fix height of TR?
我找到了答案,所以如果有人感兴趣,我把它放在这里:
<td><div style='overflow-y:scroll;max-height:70px;'>...</div></td>
但现在我有另一个问题;我把这个 div 放在一个 TD 上,我很确定它很大;我不会把这个 div 放在其他 TD 上,尽管我可以为其他 TD 做。现在我的问题是我如何理解其他 TD 的最大高度,所以我可以将这个 TD 的最大高度设置为与其他 TD 一样大?
谢谢