简体   繁体   中英

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文件的..这可能是您的问题..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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