Css 如何使我的主图像出现在我的报头和按钮部分的背景中

Css 如何使我的主图像出现在我的报头和按钮部分的背景中,css,wordpress,themes,Css,Wordpress,Themes,我试图实现以下代码,但什么也没发生 #masthead { background: url('data05/mono/public_html/wp/wp- content/themes/spacious/images/monostaff1024x512.png') no-repeat center; background-size: cover; } 我运气不好。我的文件路径格式不正确吗?您的url中的“wp-”后面有一个空格 此外,格式设置似乎不正确,请参见 data05/mono/p

我试图实现以下代码,但什么也没发生

#masthead {
background: url('data05/mono/public_html/wp/wp- 
content/themes/spacious/images/monostaff1024x512.png') no-repeat center;
background-size: cover;  
}

我运气不好。我的文件路径格式不正确吗?

您的url中的“wp-”后面有一个空格

此外,格式设置似乎不正确,请参见

data05/mono/public_html/wp/wp- 
content/themes/spacious/images/monostaff1024x512.png