ie7: background image does not show up at all

旧城冷巷雨未停 提交于 2020-01-07 02:11:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!