<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Firefox Bug: inline/inline-block的间隙</title>
	<atom:link href="http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html</link>
	<description>专注于网站前端设计与前端开发</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:46:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: boston</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-2#comment-18491</link>
		<dc:creator>boston</dc:creator>
		<pubDate>Tue, 22 Feb 2011 18:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-18491</guid>
		<description>哎呀，示例代码被过滤了:从来一下
例子inline元素，在你的编辑器中将下面两个标签之间回车看看产生的空格:&lt;span&gt;hi&lt;/span&gt;&lt;span&gt;hi&lt;/span&gt;
例子把下面的div标签转为inline-block显示代码紧凑点写，之间别换行，就不会在firefox或其他浏览器中有空格了：&lt;div&gt;hoo&lt;/div&gt;&lt;div&gt;hoo&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>哎呀，示例代码被过滤了:从来一下<br />
例子inline元素，在你的编辑器中将下面两个标签之间回车看看产生的空格:&lt;span&gt;hi&lt;/span&gt;&lt;span&gt;hi&lt;/span&gt;<br />
例子把下面的div标签转为inline-block显示代码紧凑点写，之间别换行，就不会在firefox或其他浏览器中有空格了：&lt;div&gt;hoo&lt;/div&gt;&lt;div&gt;hoo&lt;/div&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: boston</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-2#comment-18489</link>
		<dc:creator>boston</dc:creator>
		<pubDate>Tue, 22 Feb 2011 17:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-18489</guid>
		<description>关于这个问题，原来很多人不知道啊。呵呵~其实很简单，当原素被转换为inline-block显示的时候，那么该元素会具有inline的一些属性，所以当你在标签之间换行的时候会产生空格，inline-block之间的间距就是一个空格的位置，你要算间隙是几个像素，其实依赖于你的字体设置大小，空格是个字符啊，所以-margin补间距之类的方法不可取，所以大家每个人出来的负值都不一样（-_-!）。空格是由inline-block标签之间换行产生的，那么解决方法简单了，不要在转换为inline-block的标签的代码之间换行就行了，开发人员一定要在精确布局的时候要注意一下。话说这个也不是firefox之类浏览器的bug，inline-block具有inline的一些属性，那么inline标签代码之间换行本来就会有空格产生的；IE倒是奇怪没有产生空格，但是也讲的通。
例子inline元素，在你的编辑器中将下面两个标签之间回车看看产生的空格:hhhhhh
例子inline-block元素代码紧凑点写，就不会在firefox或其他浏览器中有空格了：jjjjjj</description>
		<content:encoded><![CDATA[<p>关于这个问题，原来很多人不知道啊。呵呵~其实很简单，当原素被转换为inline-block显示的时候，那么该元素会具有inline的一些属性，所以当你在标签之间换行的时候会产生空格，inline-block之间的间距就是一个空格的位置，你要算间隙是几个像素，其实依赖于你的字体设置大小，空格是个字符啊，所以-margin补间距之类的方法不可取，所以大家每个人出来的负值都不一样（-_-!）。空格是由inline-block标签之间换行产生的，那么解决方法简单了，不要在转换为inline-block的标签的代码之间换行就行了，开发人员一定要在精确布局的时候要注意一下。话说这个也不是firefox之类浏览器的bug，inline-block具有inline的一些属性，那么inline标签代码之间换行本来就会有空格产生的；IE倒是奇怪没有产生空格，但是也讲的通。<br />
例子inline元素，在你的编辑器中将下面两个标签之间回车看看产生的空格:hhhhhh<br />
例子inline-block元素代码紧凑点写，就不会在firefox或其他浏览器中有空格了：jjjjjj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wentis</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-1#comment-14422</link>
		<dc:creator>wentis</dc:creator>
		<pubDate>Wed, 12 Jan 2011 11:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-14422</guid>
		<description>都是牛人！</description>
		<content:encoded><![CDATA[<p>都是牛人！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 苏昊</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-1#comment-13267</link>
		<dc:creator>苏昊</dc:creator>
		<pubDate>Thu, 30 Dec 2010 08:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-13267</guid>
		<description>跟你得到相同结论啦，不过最终解决了。letter-spacing: -0.34em;word-spacing: -0.3em; 字体是Tahoma，字体不同的话，数值也是不同的。</description>
		<content:encoded><![CDATA[<p>跟你得到相同结论啦，不过最终解决了。letter-spacing: -0.34em;word-spacing: -0.3em; 字体是Tahoma，字体不同的话，数值也是不同的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uxfan</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-1#comment-10989</link>
		<dc:creator>uxfan</dc:creator>
		<pubDate>Mon, 22 Nov 2010 15:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-10989</guid>
		<description>letter-spacing:-1em; 这个解决方案怎么样呢</description>
		<content:encoded><![CDATA[<p>letter-spacing:-1em; 这个解决方案怎么样呢</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 李杰</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-1#comment-10154</link>
		<dc:creator>李杰</dc:creator>
		<pubDate>Thu, 04 Nov 2010 02:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-10154</guid>
		<description>刚好碰到这问题 
给外层容器定义letter-spacing=-4px，再对内部的inline-block的元素设置letter-spacing=0</description>
		<content:encoded><![CDATA[<p>刚好碰到这问题<br />
给外层容器定义letter-spacing=-4px，再对内部的inline-block的元素设置letter-spacing=0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cqiliang</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-1#comment-9980</link>
		<dc:creator>cqiliang</dc:creator>
		<pubDate>Fri, 29 Oct 2010 07:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-9980</guid>
		<description>设置font-size方式在safari和chrome中不行，看样式时因为他们font-size没法设0，只能1px，而letter-spacing在opera中也无效。</description>
		<content:encoded><![CDATA[<p>设置font-size方式在safari和chrome中不行，看样式时因为他们font-size没法设0，只能1px，而letter-spacing在opera中也无效。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: riant</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-1#comment-9648</link>
		<dc:creator>riant</dc:creator>
		<pubDate>Tue, 19 Oct 2010 15:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-9648</guid>
		<description>晕哦，inline-block 我发现我很常用哦，不用清除浮动，能直观的吧父层撑开，这个空隙的bug嘛，关照程序将循环写在一行里就是了，不过代码就很脆弱了，下次试试 font-size:0;   : )</description>
		<content:encoded><![CDATA[<p>晕哦，inline-block 我发现我很常用哦，不用清除浮动，能直观的吧父层撑开，这个空隙的bug嘛，关照程序将循环写在一行里就是了，不过代码就很脆弱了，下次试试 font-size:0;   : )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaaa</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-1#comment-7070</link>
		<dc:creator>aaaa</dc:creator>
		<pubDate>Wed, 28 Jul 2010 01:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-7070</guid>
		<description>空隙和字体也有关系。Arial和Helvetica是-3px,宋体是-6px</description>
		<content:encoded><![CDATA[<p>空隙和字体也有关系。Arial和Helvetica是-3px,宋体是-6px</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robin</title>
		<link>http://www.qianduan.net/firefox-bug-inline-inline-block-gap.html/comment-page-1#comment-5690</link>
		<dc:creator>robin</dc:creator>
		<pubDate>Wed, 23 Jun 2010 08:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.qianduan.net/?p=11506#comment-5690</guid>
		<description>今天刚好碰到这个这个问题，受教了，谢谢</description>
		<content:encoded><![CDATA[<p>今天刚好碰到这个这个问题，受教了，谢谢</p>
]]></content:encoded>
	</item>
</channel>
</rss>

