Whenever I deploy my application, it deploys correctly except the backgroud image I used in main.css does not appear. If I change it to a background color, it works but background image does not work for whatever reason. When I test run by using Browse, it works but once I change the Application name in app.yaml, the Browse does not work but the Deployment works but it doesn't show the background image. How can I get the back ground image to show?
Code in main.CSS:
body {
font-family: Comic Sans, Helvetica, sans-serif;
background-image: url(../stylesheets/goku-wallpaper-2.jpg);
background-repeat:repeat-x;
}
Code in app.yaml:
application: guestbooksky
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /stylesheets
static_dir: stylesheets
- url: /.*
script: helloworld.app
libraries:
- name: jinja2
version: latest
probably:
background-image: url(/stylesheets/goku-wallpaper-2.jpg);
if the image file is in the path of:
/stylesheets/
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.