in my project images are not showing in chrome web browser but working properly in atom live server, image location- \\Documents\\myapp\\images CSS folder location-\\Documents\\myapp\\style.css
this is how i'm directing an image - background-image:url('../images/img1.jpeg');
Instead of
background-image:url('../images/img1.jpeg');
Use: background-image:url('images/img1.jpeg');
Your CSS file is in \\Documents\\myapp\\style.css
and image file inside \\Documents\\myapp\\images
, From CSS
file you do not have to go back to parent folder using ../
可能是缓存问题,请在按住shift
键的同时尝试按F5
键
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.