<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>阿债的山寨实验室 &#187; font-size</title>
	<atom:link href="http://blog.declab.com/tag/font-size/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.declab.com</link>
	<description></description>
	<lastBuildDate>Thu, 27 May 2010 03:45:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>页面字体大小的设定</title>
		<link>http://blog.declab.com/design/2009/%e9%a1%b5%e9%9d%a2%e5%ad%97%e4%bd%93%e5%a4%a7%e5%b0%8f%e7%9a%84%e8%ae%be%e5%ae%9a/</link>
		<comments>http://blog.declab.com/design/2009/%e9%a1%b5%e9%9d%a2%e5%ad%97%e4%bd%93%e5%a4%a7%e5%b0%8f%e7%9a%84%e8%ae%be%e5%ae%9a/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 02:51:04 +0000</pubDate>
		<dc:creator>阿债</dc:creator>
				<category><![CDATA[用户体验设计]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[font-size]]></category>
		<category><![CDATA[字体大小]]></category>

		<guid isPermaLink="false">http://blog.declab.com/?p=52</guid>
		<description><![CDATA[今天在ChinaUnix.net上下载了一个《无懈可击的Web设计》前四章，学到了关于设置页面字体大小最佳方法。我们知道，Firefox上的字都比IE看上去小许多。 Simplified Box Model Hack(SBMH)由Edwardson Tan发明，它用更少的、语法上更容易理解的代码实现相同的结果(能为IE5/Win和所有其他浏览器指定不同的值)。 这次我们使用SBMH，那么前面的例子就会如下所示： body { font-size: small; } * html body { font-size: x-small; /* for IE5/Win */ f\ont-size: small; /* for other IE versions */ } 首先给对象设定正常的声明，使用我们意向中的small 值。然后，使用* html选择器来利用IE中的一个bug，以提供专门用于IE 浏览器的声明。IE5/Win 会忽略font-size属性中的反斜杠，因此可以放心地为它设置x-small 值，然后，针对其他版本的IE，再用small 值将x-small值覆盖掉。 No related posts. 以上关联文章由 Yet Another Related Posts Plugin 提供支持。


No related posts.

以上关联文章由 <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a> 提供支持。]]></description>
			<content:encoded><![CDATA[<p>今天在ChinaUnix.net上下载了一个《无懈可击的Web设计》前四章，学到了关于设置页面字体大小最佳方法。我们知道，Firefox上的字都比IE看上去小许多。<br />
<span id="more-52"></span></p>
<blockquote><p>
Simplified Box Model Hack(SBMH)由Edwardson Tan发明，它用更少的、语法上更容易理解的代码实现相同的结果(能为IE5/Win和所有其他浏览器指定不同的值)。<br />
这次我们使用SBMH，那么前面的例子就会如下所示：<br />
body {<br />
  font-size: small;<br />
  }<br />
* html body {<br />
  font-size: x-small; /* for IE5/Win */<br />
  f\ont-size: small; /* for other IE versions */<br />
  }<br />
首先给<body>对象设定正常的声明，使用我们意向中的small 值。然后，使用* html选择器来利用IE中的一个bug，以提供专门用于IE 浏览器的声明。IE5/Win 会忽略font-size属性中的反斜杠，因此可以放心地为它设置x-small 值，然后，针对其他版本的IE，再用small 值将x-small值覆盖掉。
</p></blockquote>


<p>No related posts.</p>
<p>以上关联文章由 <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a> 提供支持。</p>]]></content:encoded>
			<wfw:commentRss>http://blog.declab.com/design/2009/%e9%a1%b5%e9%9d%a2%e5%ad%97%e4%bd%93%e5%a4%a7%e5%b0%8f%e7%9a%84%e8%ae%be%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
