为什么我需要设置样式而不是使用 class?
Why am I needing to set a style rather than use class?
我正在关注 this example to get my footer to stay at the bottom on my site。
有效,但我需要使用 style="min-height: 100vh;"
样式设置正文,而不是使用 class min-vh-100
.
谁能帮我理解为什么 class 在我的网站上不起作用?
您正在加载 v4.1,它相当古老并且不包括 min-vh-*
类。我建议更新到最新的 v4.x.
我正在关注 this example to get my footer to stay at the bottom on my site。
有效,但我需要使用 style="min-height: 100vh;"
样式设置正文,而不是使用 class min-vh-100
.
谁能帮我理解为什么 class 在我的网站上不起作用?
您正在加载 v4.1,它相当古老并且不包括 min-vh-*
类。我建议更新到最新的 v4.x.