【问题标题】:How to align footer at the bottom of the webpage with tailwind and Next.js如何将网页底部的页脚与 tailwind 和 Next.js 对齐
【发布时间】:2021-11-22 22:12:12
【问题描述】:

这是一个典型的代码,但不幸的是它没有工作。

<div className='bottom-0'>
  <Footer/>
</div>

【问题讨论】:

    标签: html next.js tailwind-css


    【解决方案1】:

    要使其正常工作,我们需要转到您要在其上应用页脚的页面:

    在我的情况下 pages/index.js 页面 index.js

    现在回到 pages/_app.js _app.js

    这会起作用

    不要忘记提及“h-screen”类,否则它将不起作用

    【讨论】:

    • 点击链接,你可以看到图片,如果它帮助了这个答案
    • 请不要将代码作为图像包含,但更喜欢复制粘贴。 why ?
    猜你喜欢
    • 2011-04-01
    • 2012-08-25
    • 2013-03-01
    • 2014-08-13
    • 1970-01-01
    • 2019-05-27
    • 2019-04-09
    • 2018-09-10
    • 2022-01-15
    相关资源
    最近更新 更多