<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我正在编写网站代码并尝试制作背景图片,但该图片无法显示。任何想法都会有所帮助
nav{
background-image: url("/top-Bar.png") 0 0 no-repeat;
height: 100%;
width: 100%;
}
最佳答案
你在使用background-image
,而你应该使用background
:
nav{
background: url("/top-Bar.png") 0 0 no-repeat;
height: 100%;
width: 100%;
}
编辑:以上假定您的图片路径当然是正确的。
关于html - 最新版本的 chrome 中的 css 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34317949/