开发者

How switch off image border in IE

I'm trying to remove the image border in ie, but I get some strange behavior.

Here's my code:

开发者_如何学Go
img {border: none}
<img src="..." border="0" style="border: 0"/>

But it's still not working, and IE debugger shows me image border: medium. And my div is larger by 10px per image.


Try

img {
  border-width: 0;
}


Remove border from image link:

a img
{
     border:0px;
}

Works fine on IE


there is no value 'none', use border: 0 instead


This fix is included in Eric Meyer's Reset CSS, you might be interested:

/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜