Home >Web Front-end >HTML Tutorial >The problem that the background cannot be displayed_html/css_WEB-ITnose

The problem that the background cannot be displayed_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:25:491228browse

.main .content_box{/* width:1156px;height:auto; */width:100%;background:url(./images/img/bg.png) repeat-x scroll 0 0;border-top: 1px solid #ddd;}
This is the code
The picture is the part where the background is not displayed

This is the background of Taobao University displayed


Reply to the discussion (solution )

Have you looked in the browser debugging tool and found the specified image in url(./images/img/bg.png)?

It should be that the path of the background is wrong

Statement:
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