+ -
当前位置:首页 → 问答吧 → 紧急求助Css a链接问题

紧急求助Css a链接问题

时间:2011-10-21

来源:互联网

未标题-1.jpg (56.39 KB)
2011-10-21 11:01


a链接与图片之间有间距不知道是为什么,如上图红色标注的地方,在线等,高手帮忙解决一下。
css 中已经设置如下样式
body{margin:0 auto;text-align:center;font-family:Arial,Helvetica,sans-serif;font-size:12px; line-height:22px;color:#333;}
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,a{margin:0;padding:0;}
body,button,input,select,textarea{font:12px/1.5 tahoma,arial}
h1,h2,h3,h4,h5,h6{font-size:100%;}
address,cite,dfn,em,var{font-style:normal;}

ul,ol{list-style:none;}
a{text-decoration:none;color:#919191;}
a:hover{text-decoration:underline;color:#9c1a1a;}
fieldset,img{border:0;}
button,input,select,textarea{font-size:100%;}
legend{color:#000;}
table{border-collapse:collapse;border-spacing:0;}

.fl{float:left;}
.fr{float:right;}
.clear:after{content:".";display:block;width:0;height:0;clear:both;visibility:hidden}
* html .clear{height:1%;}
.clear{min-height:1%}
.defaultRed{color:#9c1a1a;}

作者: jiqingbb   发布时间: 2011-10-21

找到问题了,我用的是html5 与以前的html版本 img 的设置有3px的间距的区别。无语

作者: jiqingbb   发布时间: 2011-10-21