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.
精彩评论