Ued*_*uki 1 footer codepen vuetify.js
我有一个代码笔,这个代码笔里面有vuetify 2.2.15。
我使用页脚如下:
<div id="app">
<v-app>
<v-content>
<v-container>
<v-card>
<v-card-text>
Expected to align at bottom
</v-card-text>
</v-card>
</v-container>
<v-content>
<v-footer>
<v-col
class="text-center"
>
footer
</v-col>
</v-footer>
</v-app>
</div>
Run Code Online (Sandbox Code Playgroud)
在网络上运行的实际代码中,该页脚在绝对底部对齐。但在代码笔中,页脚并不是在绝对底部对齐,而是相对地跟随前一个组件。
是否有任何我应该使用的缺失堆栈?谢谢你的建议。
你应该使用absolute
你v-footer
喜欢的:
<v-footer absolute>
<v-col class="text-center">
footer
</v-col>
</v-footer>
Run Code Online (Sandbox Code Playgroud)
Absolute prop 适用position: absolute
于组件。
</v-content>
你也应该在页脚之后移动
你的最终代码应该是这样的:
<div id="app">
<v-app>
<v-content>
<v-navigation-drawer app></v-navigation-drawer>
<v-container>
<v-card
>
<v-card-text
>
Expected to align at bottom
</v-card-text>
</v-card>
</v-container>
<v-footer absolute>
<v-col
class="text-center"
>
footer
</v-col>
</v-footer>
</v-content>
</v-app>
</div>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3228 次 |
最近记录: |