【发布时间】:2021-01-29 02:27:30
【问题描述】:
我正在开发一个带有Visual Studio 2019、C# 和.NET Framework 4.7 的ASP.NET 网站
我在母版页上插入了这个css class,因为我的所有页面都有垂直滚动条,我想始终在页面底部显示<footer>。
在浏览器Google Chrome 和Microsoft Edge 上css class 工作正常,但在浏览器Internet Explorer 11 上,页脚文本会随着网页移动。
我该怎么做?
footer{
position:fixed;
bottom:0;
}
<div>
<footer>
<p style="font-size:20px">My Company</p>
</footer>
</div>
【问题讨论】:
-
请提供更多详细信息,页面上发生了什么,您可以检查元素并查看类是否应用正常?
标签: html css asp.net internet-explorer-11 footer