Home > Web Front-end > HTML Tutorial > Background image problem in css_html/css_WEB-ITnose

Background image problem in css_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:16:10
Original
1207 people have browsed it

background: url({dede:global.cfg_templets_skin/}/default/images/nav-icons.png);

background:url(../images/nav-icons.png);/*能够在本地正常显示背景图片*/
Copy after login

background:url(../images/nav-icons.png);/*在CMS中不能正常显示背景图片*/
Copy after login

background: url({dede:global.cfg_templets_skin/}/images/nav-icons.png);/*依然不能正常显示背景图片*/
Copy after login

Picture placement In templets/default/images
How should I write the path? ?


Reply to discussion (solution)

url{/templets/default/images/nav-icons.png}

Direct url(images/nav-icons .png) will do

If the url ("image/nav-icons.png") is in the css, pay attention to whether the format of your image is correct

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template