부모 중 하나의 div
태그에 FAB가 포함되어 있습니다 (app.component.html
). 그 중 하나에는 transform : translate3d가 사용됩니다.
페이지를 아래로 스크롤하면 FAB이 '붙어서'스크롤되지 않습니다.
는 HTML :플로팅 작업 버튼이 스크롤되지 않음
<div cdk-scrollable="" class="mat-sidenav-content" ng-reflect-ng-style=" " style="margin-left: 0px; margin-right: 0px; transform: translate3d(0px, 0px, 0px);">
<div class="page-container">
<router-outlet></router-outlet>
<app-carbuilder _nghost-wxw-148="">
<button style="position: absolute;bottom: 16px;right: 16px;z-index: 5" data-toggle="collapse" data-target="#demo" aria-expanded="false" aria-controls="demo" md-fab>
<md-icon>
directions_car
</md-icon>
</button>
<div class="page-content">
<p>content</p>
</div>
여기가 스크롤 한 후 & 전에 보이는 방법 (기본 이미지 업로드가 작동하지 않았다) :
나는 (<div class="page-content">
구체적으로)이 FAB이 전체 HTML 페이지를 오버레이 할 :
참고 : 경우 사람에
Similar but not duplicate
Related
Also Related
노란 차의 위치를 고정 시켜서 스크롤 할 때 페이지의 흐름을 따라 보았습니까? https://www.w3schools.com/cssref/pr_class_position.asp, 2 %의 코드를 게시 한 이후로 더 많은 것을 실제로 안내 할 수는 없습니다 :) –
@UnknownPotato, 예. 이것은 작동하지 않았다. – Moshe