的main.css
body{
width:100%;
height:100%;
overflow:hidden;
background:url('/assets/background-calculations.png');
}
body #content{
z-index:5;
background:url('/assets/handwritten-text.png');
// background:white;
width:100%;
height:100px;
}
body #footer,#header{
height:100px;
width:100%;
margin:0 auto;
}
index.html.erb是空白
疑问
,当我在内容的CSS取消注释background:white;
其工作,但是当我设置背景链接它不工作,但如果我将它设置为内容的div相同的URL不能正常工作,请大家帮忙轨CSS设置背景图片
你能提供完整链接到背景图片?没有它:) – s0d4pop 2012-08-13 03:50:19
目前谈论的开发环境我无法检查你的CSS的事情是,当我使用的背景图片的身体,它的工作,但对于其他的div它不是例如 体{ 后台工作 – Abhimanyu 2012-08-13 03:56:21
:URL(” /assets/handwritten-text.png'); } 是工作,但上面没有 – Abhimanyu 2012-08-13 04:01:01