打印

[求助] 请问一下,图片和文字之间在火狐下有间距 怎么去掉呀!

代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style>
*{ margin:0px; padding:0px;}
.content{ width:980px; height:auto; clear:both; margin:0px auto;}
.index_left{width:320px; float:left; background-color:#0000FF;}
.index_right{ width:650px; float:right;}
.r_left{float:left; width:320px; border:0px #FF0000 solid;}
.r_left li{ display:block;text-align:center;border:1px #0000ff solid;float:left;margin:2px;}
.r_left li span{display:block;line-height:24px; margin:0px; background-color:#0099FF;}

.r_right{float:right; width:320px; background-color:#FF0000;}
</style>
<title>无标题文档</title>
</head>

<body>
<div class="content">
       <div class="index_left">1<br />1<br />1<br /></div>
       <div class="index_right">
              <div class="r_left">
                     <ul>
                            <li><img src="http://bbs.512auto.com/Images/userface/king.gif" /><span>叮当猫</span></li>
                            <li><img src="http://bbs.512auto.com/Images/userface/king.gif" /><span>叮当猫</span></li>
                            <li><img src="http://bbs.512auto.com/Images/userface/king.gif" /><span>叮当猫</span></li>
                            <li><img src="http://bbs.512auto.com/Images/userface/king.gif" /><span>叮当猫</span></li>
                     </ul>
              </div>
              <div class="r_right">1<br />1<br />1<br /></div>
       </div>
</div>
<div></div>
</body>
</html>
img{display:block}
早晨从中午开始
太感谢了!
或者        vertical-align:middle;

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!