Html 我需要一个页脚div,它应该是全宽的屏幕。怎么可能呢? 页脚
其ma代码,我需要创建一个全宽页脚div。请帮助我添加Html 我需要一个页脚div,它应该是全宽的屏幕。怎么可能呢? 页脚,html,css,footer,Html,Css,Footer,其ma代码,我需要创建一个全宽页脚div。请帮助我添加位置:固定并使用底部而不是页边距底部。这样,页脚将始终保持在屏幕底部60像素 <div style="text-align:left; font-weight:bold; background:#666666; margin-bottom: 60px; width: 100%; height: 40px;"> Footer </div> 是否希望div始终显示在页面底部? d
位置:固定编码>并使用底部
而不是页边距底部
。这样,页脚将始终保持在屏幕底部60像素
<div style="text-align:left;
font-weight:bold;
background:#666666;
margin-bottom: 60px;
width: 100%;
height: 40px;">
Footer
</div>
是否希望div始终显示在页面底部?
div {
text-align:left;
font-weight:bold;
background:#666666;
position: fixed;
bottom: 60px;
width: 100%;
height: 40px;
}
.footer{
width: 100%;
height: 60px;
background: red;
position: relative;
}