【发布时间】:2015-12-24 03:33:36
【问题描述】:
我在 html 中有一个动态表。 我可以通过以下函数获取我的表格行。
HTML:
<tr ng-click="heightChecker(this)" ng-repeat='DFC in DetailsOfFloorsCurrent'<td>blahblah</td></tr>
脚本:
$scope.heightChecker = function (row) {
alert(row.$index-2);
}
我想从页面顶部获取行高。 我可以得到我的行,但我无法从页面顶部获得像素高度。 有什么办法吗? (注意:我的表格是动态的,有 n 行 n 列。)
【问题讨论】:
标签: html html-table