问题
body {
background: #f6f6f6 url(http://path.to.image/body-bg.gif) repeat-x;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
line-height: 1.5;
}
works in everything but ie7.
what's wrong here?
回答1:
url(/body-bg.gif)
is skipped by ie7 use url(body-bg.gif)
instead!
回答2:
Maybe the line-height is causing the issue, try taking it out. Also, try body { height:1%; }
来源:https://stackoverflow.com/questions/3610556/ie7-background-image-does-not-show-up-at-all