【发布时间】:2015-08-17 18:25:23
【问题描述】:
我坚持使用粘性页脚。
请注意,我希望页脚始终显示在屏幕底部,而不是页面。
如果重要的话,我正在使用 sharepoint Designer 2013 进行编码。
我使用的 CSS:
.wrapper {
min-height: 100%;
height: auto;
height: 100%;
margin: 0 auto -30px;
overflow: visible;
}
.footer, .push {
height: 30px;
clear: both;
}
.footer {
background: #0072C6;
color: #fff;
line-height: 30px;
text-align: center;
}
html,body {
margin-bottom: -30px;
}
HTML 结构:
<form id="form1" runat="server">
<div class="wrapper">
</div>
<div class="footer">
<span>This is my SharePoint 2013 Footer</span></div>
</form>
页脚没有粘性。请问,谁能帮帮我?
提前致谢。如果您需要更多详细信息,请告诉我。
【问题讨论】:
-
使用
position:fixed -
嗨,阿米特。我按照 Neophyte 的回答进行了尝试。但是,问题是页脚现在实际上与屏幕底部的文本重叠。你能提供一些帮助吗?这是一个示例。 jsfiddle.net/Escape_Character/xzqqebdt/12
-
你应该使用
height来实现这一点..
标签: html css sharepoint