我使用tailwindCSS并遇到make footer问题。
base.html
<body>
{% include "partials/nav.html" %}
{% block content %}
{% endblock %}
{% include "partials/footer.html" %}
</body>
footer.html
<footer class="w-full h-64 bg-gray-900 static bottom-0">
{% load static %}
<img src="{% static "images/logo_white.png" %}" width="70px"> <p class="text-white"> ©~~~~~~</p>
</footer>
我尝试了static,absolute,fixed,relative ...,但是.fixed覆盖了内容块并相对使页脚上升。或.mb-0,.bottom-0不起作用。
是否可以将页脚固定在底部?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句