inline-block元素间间隙产生及去除详解

解决方案

#demo{
	font-size:0;
	[;font-size:12px;];
	*font-size:0;
	font-family:arial;
	[;letter-spacing:-3px;];
	*letter-spacing:normal;
	*word-spacing:-1px;
}
#demo span{
	display:inline-block;
	*display:inline;
	*zoom:1;
	font-size:14px;
	letter-spacing:normal;
	word-spacing:normal;
}

 

<div id="demo">
	<div>我是一个div</div>
	<div>我是一个div</div>
	<span>我是一个span</span>
	<span>我是一个span</span>
	<div>我是一个div</div>
	<span>我是一个span</span>
</div>

 

详情请看http://demo.doyoe.com/css/inline-block-space/

赞 (0)
分享到:更多 ()