开发者

css: background-image for tag img doesn't work in IE

i ha开发者_开发百科ve the following script

css:
img
{
    background-image:url("man.png");
    background-repeat:no-repeat;
    padding-top:6px;
    padding-bottom:60px;
    padding-left:10px;
    padding-right:10px;
    margin-right:5px;
    border: 0;

}

it works fine in all browsers, but in IE doesn't. could you tall me why? thanks


When applying a background image to an <img> tag, add display: block; to your CSS.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜