親からの2つのdiv
タグにFABが含まれています。その1つにtransform:translate3dが使用されています(app.component.html
)。
ページをスクロールすると、FABは「スタック」してスクロールしません。浮動アクションボタンはスクロールしません
私はこのFABは、このHTMLページ全体(特に:<div class="page-content">
)をオーバーレイしたい
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>
(ネイティブイメージのアップロードは動作しませんでした)
は、ここでは、スクロール後&前にどのように見えるかです:
注:場合
Similar but not duplicate
Related
Also Related
黄色の車の位置を固定してみましたが、スクロールしたときのページの流れに従っていますか? https://www.w3schools.com/cssref/pr_class_position.aspは、あなたのコードの2%のように投稿しているので、実際にあなたをより多く導くことはできません:) –
@UnknownPotato、はい私は持っています。これはうまくいかなかった。 – Moshe