css - 如何在没有垂直滚动的情况下将基于页面大小的数据加载到 ui-grid-viewport 中?

标签 css angularjs

更新:

我是 Angular 的新手。 我想将分页数据加载到没有垂直滚动条的 ui.grid 中。 假设我有 100 个数据,页面大小为 50。我想将所有 50 个数据显示到没有右侧滚动条的 ui.grid 中。当页面大小设置为 100 时,100 个数据将显示到网格中。我能够删除滚动条,但无法显示 50 条数据。 Existing UI是当前 View 。但我想从集成的 ui.grid 中删除标记的滚动条。 请帮帮我。

谢谢。

最佳答案

这次一些重写的​​样式(css)帮助了我。 ui-grid-paginationui-grid-auto-resize 是必需的。

这是代码

.ui-grid-pager-panel
{   
    position:relative !important;
}

.grid, .ui-grid
{   
    height:auto;
}
.ng-isolate-scope
{
    height:auto !important;
    #overflow: scroll ;
}
.ui-grid-canvas{

    width:auto;
    height:auto !important;
}
.ui-grid-viewport{
    height:auto !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
}
.ui-grid-pager-container,.ui-grid-pager-count-container
{
    padding-top:5px;
}

我已经解决了。这是 link .

谢谢

关于css - 如何在没有垂直滚动的情况下将基于页面大小的数据加载到 ui-grid-viewport 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47791892/

相关文章:

html - 横向移动网站不会向下滚动

javascript - 使用 jQuery 将 ng-model 添加到 div

angularjs - 使用 $http 区分取消的请求和真正出错的请求

javascript - 如何使用 css 渐变在 jQuery Slider 的两个 handle 之间设置背景

css - 如何阻止 DIV 元素在表格中被推下?

css - 在我的页面中集成视频全屏的最佳解决方案

javascript - angularjs-脚本没有输出

javascript - 工具提示背景颜色变淡 angular-chart.js

javascript - 如何使用 meteor 从集合中提取项目?

html - CSS:根据当前颜色更改字体颜色