![](/img/trans.png)
[英]Header/Content/Footer layout with scrollable content and footer pinned to viewport bottom
[英]MudBlazor scrollable content with pinned ToolBar
我想使用 MudBlazor 庫實現以下結果。
所有這些都顯示在抽屜的主要內容中
<MudMainContent>
<MudPaper Class="d-flex flex-grow-1 gap-4" Elevation="0">
<MudLayout>
// Here i will write the whole component
</MudLayout>
</MudPaper>
</MudMainContent>
到目前為止,我已經完成了以下工作
<div class="d-flex flex-grow-1 flex-row">
<MudPaper Elevation="25" Class="flex-grow-1">
<MudToolBar>
A-Element
</MudToolBar>
<div class="d-flex flex-column" style="max-height:100vh;min-height:100vh; overflow:scroll;">
// Here there will be a ForEach loop creating elements B-Element
</div>
<MudPaper Elevation="25" Class="d-flex flex-row px-2 mx-4" Style="">
C-Element
</MudPaper>
</MudPaper>
</div>
我怎樣才能做到這一點??
嘗試這個:
<div class="d-flex flex-column" style="height:100vh; overflow-x:auto;">
// Here there will be a ForEach loop creating elements B-Element
</div>
在相同的條件下,我發現這個解決方案很有用:
<MudPaper Class="d-flex flex-column overflow-x-auto " Height="100vh">
Your Content
</MudPaper>
有關更多信息,您可以閱讀以下內容:
我閱讀了這個答案,然后基於它編寫了我的解決方案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.