简体   繁体   English

将不显示CSS背景图像

[英]won't display CSS Background-Image

as i write where the image is located at it won't find it in the directory. 当我写图像所在的位置时,在目录中找不到它。 No matter what i do i tried quotations, no-quotations,switching the directory, still no help only when i put my image outside of a folder, is when i am able to see the image. 无论我做什么,只要尝试将引号,不引号,切换目录,还是只能将图像放到文件夹之外,便无济于事。 Here is my example of my code: 这是我的代码示例:

#Story {
background-image: url('Images/Story.png');
background-repeat:no-repeat;
height:45px;
width:75px;
text-align:center;
text-decoration:none;
color:#ededed;
float:left;
padding:13px;
font-family:"Helvetica";
font-size:18px;

} }

该路径是相对于css文件的..这可能是您的问题..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM