Angular 13 页面末尾出现奇怪的空行

发布于 2025-01-11 15:36:56 字数 1287 浏览 0 评论 0原文

我使用在 Angular 12 上运行的 NGX-ADMIN 模板。 在更新到 Angular 13(并且仅更改 Angular 版本)之后,我遇到了这个问题,并且我不知道如何识别此类问题。 您有什么想法,或者您知道如何识别此类问题的根源吗?

我再次确认,确实是 Angular 版本从 12 到 13 的修改导致了这个问题。

Angular 也有同样的问题:14.0.0-next.5

问题链接:https:/ /github.com/akveo/ngx-admin/issues/5919

    "@angular/animations": "^13.2.5",
    "@angular/cdk": "^13.2.5",
    "@angular/common": "^13.2.5",
    "@angular/compiler": "^13.2.5",
    "@angular/core": "^13.2.5",
    "@angular/forms": "^13.2.5",
    "@angular/material": "^13.2.5",
    "@angular/platform-browser": "^13.2.5",
    "@angular/platform-browser-dynamic": "^13.2.5",
    "@angular/router": "^13.2.5",

经过一番研究,问题似乎从那里出现:

<div class="cdk-describedby-message-container cdk-visually-hidden" style="visibility: hidden;"><div id="cdk-describedby-message-1">Sort</div></div>

手动删除后,问题得到解决。但现在我该怎么做才能不出现

页面末尾的白线

问题在这里

I use the NGX-ADMIN template which runs on Angular 12.
Following an update to Angular 13 (and only a change in the versions of Angular), I encounter this problem, and I have no idea how to identify this type of problem.
Would you have an idea, or do you know how to identify this type of problem, the origin?

I confirm once again that it is indeed the modification of the versions of angular from 12 to 13 which generated this problem.

Same problem with Angular : 14.0.0-next.5

Link of the issue : https://github.com/akveo/ngx-admin/issues/5919

    "@angular/animations": "^13.2.5",
    "@angular/cdk": "^13.2.5",
    "@angular/common": "^13.2.5",
    "@angular/compiler": "^13.2.5",
    "@angular/core": "^13.2.5",
    "@angular/forms": "^13.2.5",
    "@angular/material": "^13.2.5",
    "@angular/platform-browser": "^13.2.5",
    "@angular/platform-browser-dynamic": "^13.2.5",
    "@angular/router": "^13.2.5",

After some research the problem seems to appears from there :

<div class="cdk-describedby-message-container cdk-visually-hidden" style="visibility: hidden;"><div id="cdk-describedby-message-1">Sort</div></div>

After manually deleting this, problem is solved. But now how cna i do in order that does not appear

white line at the end of the page

problem here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清风夜微凉 2025-01-18 15:36:56

答案在这里:https://github.com/angular/components/issues/24516

如果您不使用材料:
添加:@angular/cdk/a11y-prebuilt.css到你的全局CSS样式中(例如:style.scss)

Answer is here : https://github.com/angular/components/issues/24516

If you are not using material :
Add : @angular/cdk/a11y-prebuilt.css into you global css style (example : style.scss)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文