粘性页脚不起作用,让我的右栏变得疯狂
我想在这个结构中使用粘性页脚,任何人都可以为我编写代码,因为我尝试了很多技术,但没有一个对我来说完美工作......
<body>
<div id="wrapper">
<div id="header">
<div id="logo"></div>
<div id="appoint">
<ul>
<li>[email protected] </li>
</ul>
</div><!--appoint div close-->
<div id="navi">
</div><!--navigation div close-->
</div><!--header div close-->
<div id="slidecontainer">
</div> <!--closing tag for container-->
<div id="feature">
<div id="featurewrap">
</div> <!--feature wrap close-->
</div> <!--feature div close-->
<div id="leftcol">
</div><!--leftcolumn div close-->
<div id="rightcol">
</div><!--right column div close-->
</div><!--wrapper div close-->
<div id="footer_wrap">
<div id="footer">
<div id="footerleft">
</div><!--footerleft div close-->
<div id="footerright">
</div><!--footerright div close-->
</div> <!--footer main div close-->
</div><!--footer div close-->
此外,我还使用全宽重复背景body 和 footer_wrapper 这就是我遇到的问题........
I want to use sticky footer in this structure, can anyone write the code for me cause i have tried a lot of techniques but none of them are working perfectly for me.......
<body>
<div id="wrapper">
<div id="header">
<div id="logo"></div>
<div id="appoint">
<ul>
<li>[email protected] </li>
</ul>
</div><!--appoint div close-->
<div id="navi">
</div><!--navigation div close-->
</div><!--header div close-->
<div id="slidecontainer">
</div> <!--closing tag for container-->
<div id="feature">
<div id="featurewrap">
</div> <!--feature wrap close-->
</div> <!--feature div close-->
<div id="leftcol">
</div><!--leftcolumn div close-->
<div id="rightcol">
</div><!--right column div close-->
</div><!--wrapper div close-->
<div id="footer_wrap">
<div id="footer">
<div id="footerleft">
</div><!--footerleft div close-->
<div id="footerright">
</div><!--footerright div close-->
</div> <!--footer main div close-->
</div><!--footer div close-->
Also i am using full width repeating backgrounds for body and footer_wrapper that is the problem i am having........
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,您需要以下样式:
注意底部边距中的 #wrapper 必须具有页脚底部和顶部边距的总和负值,如果您有...
在您的代码中:
问候,
OK, you need the following style :
Note on #wrapper in bottom margin must have a negative value of the total of and bottom and top margins of footer if you have ...
On your code:
Regards,