Home >Web Front-end >HTML Tutorial >DIV background image positioning problem_html/css_WEB-ITnose

DIV background image positioning problem_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:43:431152browse

Correct writing

.custom-topNavigation_shadow {

width: 1024px;

height: 115px;

background: url('Images/document-block-main.png ') repeat-x 0 -380px;

}

Writing method not supported by IE8 or below, supported by IE9 or above, incorrect Writing

.custom-topNavigation_shadow {

width: 1024px;

height: 115px;

background: url('Images /document-block-main.png') repeat-x top -380px left 0;

}

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