Ruby on rails 如何在rails应用程序中获取背景图片
CSS: 我的图片文件位于资源/图像中,而css位于资源/样式表中。请尝试以下操作:Ruby on rails 如何在rails应用程序中获取背景图片,ruby-on-rails,image,background,Ruby On Rails,Image,Background,CSS: 我的图片文件位于资源/图像中,而css位于资源/样式表中。请尝试以下操作: body { margin: 0; background-image: url('../images/gplaypattern.png'); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; co
body {
margin: 0;
background-image: url('../images/gplaypattern.png');
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 20px;
color: #333333;
background-color:#cccccc;
/*background-color: #ffffff;*/
尝试
url('images/gplaypattern.png')代码>谢谢Yoshiji先生。然而,我仍然看不到我的背景。我觉得我已经尝试了所有可能的排列。这里是罗杰的答案
background-image: url('/assets/gplaypattern.png');