【发布时间】:2014-05-23 02:26:45
【问题描述】:
我正在使用 joomla 设计一个网站并使用引导框架。 现在我的页脚有问题。基本上我使用一个简单的网格布局,我希望网站的内容部分位于页面的中心,并且我已经实现了左侧和右侧的空间。 现在我希望页脚不像内容那样在中间,而是在页面的末尾和整个宽度上,而不是固定的。所以我想通常向下滚动页面,在它的末尾,页脚将出现全宽。 我搜索了很长时间,但我没有找到任何有效的解决方案。 我希望有人可以帮助我实现它...
下面是我使用的php页面的脚本和css文件
index.php
<!DOCTYPE html>
<html>
<head>
<jdoc:include type="head" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!-- main container -->
<div class='container'>
<!-- header -->
<div class="mainMenuTop"/>
<div class='row'>
<jdoc:include type="modules" name="position-1" style="well" />
</div>
<div class='row'>
<!-- main content area -->
<div class='span12'>
<div class="article">
<jdoc:include type="component" />
</div>
</div>
</div>
<!-- footer -->
<div class='row'>
<div class='span12'>
<div class='footer'>
<jdoc:include type="modules" name="footer" style="none" />
</div>
</div>
</div>
</div>
</body>
</html>
style.css
body
{
overflow-y: scroll;
background: url(../images/Test.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.article
{
padding: 25px;
margin-top: 30px;
margin-bottom: 30px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.5);
background: rgba(255, 255, 255); /* The Fallback */
font-size: 12pt;
font-family:"Calibri", Times, serif;
}
.footer
{
height: 50px;
border-top: solid 1px black;
}
亲切的问候, 呸呸呸
【问题讨论】: