我一直在自学Wordpress主题开发, 并在我的网站上有一个定制主题(由另一位开发者不久前制作)。我希望能够下载页脚背景图片, 但似乎找不到正确的网址。在Style.css文件中, 页脚背景图像声明为
background: url(images/layout/bg-footer-boards.jpg)
但是mysite.com/images/layout/bg-footer-boards.jpg、mysite.com/wp-content/images/layout/bg-footer-boards.jpg和mysite.com/themes/mytheme/wp-content/ images / layout / bg-footer-boards.jpg都给了我404。我认为这只是我缺少的文件路径, 但是任何帮助将不胜感激!
#1
CSS url()是相对于文件而不是Webroot的。
所以images / layout / bg-footer-boards.jpg
是指与.css文件位于同一文件夹中的名为images /的文件夹。
来源:
https://www.srcmini02.com/64825.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41211.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57