在AngularJS固定头表 [英] Fixed header table in AngularJS
问题描述
我卡在涉及固定头表的问题。我使用AngularJS和放大器;引导建立一个Web应用程序。我不能使用 NG-格
,因为它不支持IE7。所以,我用填充表行NG-重复
。该应用程序的响应。所以,我不能给细胞/头给固定的宽度。有没有简单的方法有表头固定?
I'm stuck on a problem involving a fixed header table. I'm using AngularJS & Bootstrap to build a web application. I can't use ng-grid
as it doesn't support IE7. So, I'm populating the table rows by ng-repeat
. The application is responsive. So, I can't give fixed width to the cells/headers. Is there any simple way to have the table headers fixed?
我已经竖起了Plunker在固定头表AngularJS
I've put up a Plunker at Fixed header table with AngularJS
先谢谢了。
推荐答案
我创建了这个指令最近,您可以使用凉亭安装它:
I created a directive for this recently, you can install it using bower:
bower install angu-fixed-header-table
有关详细信息和工作的例子,你可以在的http://pointblankdevelopment.com.au/blog/angularjs-fixed-header-scrollable-table-directive
For more details and a working example you can see my blog post at http://pointblankdevelopment.com.au/blog/angularjs-fixed-header-scrollable-table-directive
这篇关于在AngularJS固定头表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!