How to catch resizing of TR element?
I have table like this:
<table id="myTable">
<tr id="myRow>
<td>aaa bbb ccc</td>
<td>aaa bbb ccc</td>
<td>aaa bbb ccc</td>
</tr>
<!-- few another rows -->
</table>
I don't fix height of TR element. So, height of TR can be changed if user resizes browser window or if cells content is being modified by JavaScript. How can I catch the moment when height of TR is changed?
UPDATE: it seems to be that height
is not valid attribute 开发者_如何学Gofor tr
element. So, now my question is: how to catch resizing of td
element?
Height isn't a valid attribute on a TR element, so you are probably out of luck unless you find a way to check for the resize on a TD element inside it.
If you are trying to detect the change to do some other layout corrections there is probably a better way using CSS to do this.
Maybe jQuery's resize binding could help
But why exactly do you need to do this?
精彩评论