Javascript 添加仅滚动到具有固定标题Angularjs的表体

Javascript 添加仅滚动到具有固定标题Angularjs的表体,javascript,html,css,angularjs,Javascript,Html,Css,Angularjs,我想知道如何才能将卷轴仅添加到具有固定标题的表体。我已经用jquery浏览了很多例子,但我想用角度的方式来做。这是我的扑克牌- 名称 版本 大小 修改日期 标签 描述 {{item.name} 0 0 0 {{item.label} {{item.description} {{bundles.bundleName} {{bundles.bundleVersion}} {{bundles.bundleSize} {{bundles.bundleModified} {{bundles.bundle

我想知道如何才能将卷轴仅添加到具有固定标题的表体。我已经用jquery浏览了很多例子,但我想用角度的方式来做。这是我的扑克牌-


名称
版本
大小
修改日期
标签
描述
{{item.name}
0
0
0
{{item.label}
{{item.description}
{{bundles.bundleName}
{{bundles.bundleVersion}}
{{bundles.bundleSize}
{{bundles.bundleModified}
{{bundles.bundleLabels}
{{bundles.bundleDescription}
{{components.value}}
{{components.Version}
{{components.Size}
{{components.Modified}}
{{components.Labels}}
{{components.Description}}

thead
tbody
更改为
display:block
。为
t车身设置高度
,并将
overflow-y
属性设置为
滚动

table thead {
  display: block;
}
table tbody {
  height: 200px;
  display: block;
  overflow-y: scroll;
}

这里有一个plunker演示:

你能提供多一点信息吗,比如:垂直滚动还是水平滚动?@andrepaulo我只需要垂直滚动条到表体部分。当前垂直滚动条用于整个表格。请查看这是否有助于您。。。
table thead {
  display: block;
}
table tbody {
  height: 200px;
  display: block;
  overflow-y: scroll;
}