- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
http://preview.goodinkproductions.com/CG8F13
我已经设法让页脚跨越整个站点(不同于容器和 AOK 中的正文)。但是,我无法让页脚背景变得坚实。看起来我下面有一条纯色带,但页脚内容不在那个“空间”中。我想要的只是一个包含内容的固定跨度页脚!
CSS
/* 页脚 ---------------------------------------------- ------------------------------*/
#footer {
width: 100%;
background-color:#FF8800;
}
#footer-content{
width: 950px;
height: 80px;
margin-left: auto;
margin-right: auto;
}
#footer p {
color: #878787;
font-size: 12px;
}
#footer blockquote {font-size:11px; color:#999;}
#footer a {
color: #a59b8c;
}
#footer a:hover {
color: #cab99f;
}
#footer span {
vertical-align: middle;
}
#footer h2 {
font-size: 15px;
margin: 0 0 2px;
padding: .3em 0;
line-height: 1.5;
font-family: "Lato", Arial, Helvetica, sans-serif;
font-weight: 700;
color: #ebb058;
}
.wsite-footer { /* make sure enough space between element footer and attribution */
margin-bottom: 15px;
}
HTML ---------------------------------------------- ------------------------------ {标识} {菜单} {电话:短信} {社会的} {搜索} {内容}
</div>
</div>
<div style='padding: 20px; width:100%; text-align:center;'>{footer}</div>
</body>
<div id="footer">
<div id="footer-content">
</div>
</div>
</html>
结束
最佳答案
我不太明白这里发生了什么,但你需要将页脚 div 放在 body 标签内。
</div>
</div>
<div style='padding: 20px; width:100%; text-align:center;'>{footer}</div>
<div id="footer">
<div id="footer-content">
</div>
</div>
</body>
</html>
关于html - #footer 背景纯色不适用于容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25109614/
我正在尝试更改iOS背景颜色,但是我认为透明度(alpha:1)似乎在起作用并改变了预期的颜色。 In **AppDelegate.m** rootView.backgroundColor = [
https://www.dropbox.com/s/4zkhtdv4yaqhpxy/Screenshot%20from%202015-01-28%2010%3A42%3A02%201.png?dl=0
照明不工作,对象显示为纯色。颜色本身随 Material 或照明参数而变化,但没有阴影或任何纯灰色。 部分代码如下: glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
ppt幻灯片生成时,系统默认是无色背景填充,幻灯片设计需要手动设置背景效果,可设置颜色填充或者图片背景填充。本文将对此介绍具体实现方法。 jar文件导入方法(参考): 步骤1:在java程序中可
我是一名优秀的程序员,十分优秀!