【发布时间】:2019-03-28 21:27:00
【问题描述】:
下面的代码运行良好
<ngb-pagination class="d-flex justify-content-end" [collectionSize]="100" [pageSize]="5"
[(page)]="currentPage" [maxSize]="5" [rotate]="true" (pageChange)="getToPage(currentPage)" [boundaryLinks]="true"
[ellipses]="true" size="lg"></ngb-pagination>
正如我从官方文档链接 - https://ng-bootstrap.github.io/#/components/pagination/api 中看到的,据说 size 输入可以在 html 中设置为“lg”或“sm”。
我希望它具有响应性,这意味着对于小屏幕 size 应该采用“sm”,而对于中等大小的屏幕应该采用“lg”。 该链接没有有关如何动态更改大小的信息。 使用 CSS 是另一种方式,但我希望它以引导方式完成。
【问题讨论】:
标签: angular ng-bootstrap