<?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>FoxLing - 前端开发 &#187; input</title>
	<atom:link href="http://foxling.org/tag/input/feed/" rel="self" type="application/rss+xml" />
	<link>http://foxling.org</link>
	<description>不积跬步 无以至千里</description>
	<lastBuildDate>Sat, 19 Nov 2011 16:29:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>关于输入框input文字垂直居中的问题</title>
		<link>http://foxling.org/html-css-xml/input-line-height/</link>
		<comments>http://foxling.org/html-css-xml/input-line-height/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 11:35:26 +0000</pubDate>
		<dc:creator>FoxLing</dc:creator>
				<category><![CDATA[HTML/CSS/XML]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[line-height]]></category>
		<category><![CDATA[垂直居中]]></category>
		<category><![CDATA[行高]]></category>

		<guid isPermaLink="false">http://wp.foxling.cn/as-flex-air/input-line-height/</guid>
		<description><![CDATA[Demo地址：/examples/input-line-height.html 在默认值的情况下，FireFox的默认文字好像较小，所以，尽量在全局设置时，定义一下各元素的文字大小。 .demo1 { line-height:25px; font-size:14px;} 设置了line-height后，FireFox没有什么问题，但IE高没有变化，里面的line-height变动了，貌似是overflow:hidden的效果。~~ .demo2 { line-height:25px; height:25px; font-size:14px;} 行高和高一起设置，FireFox不支持在input使用line-height .demo3 { height:19px; font-size:14px; padding:6px 0 0 0;} 最后用padding的方法，解决问题，padding-top=(height-font-size)/2 或许有更好的解决方法，望牛人告知。]]></description>
			<content:encoded><![CDATA[<p>Demo地址：<a target="_blank" href="/examples/input-line-height.html">/examples/input-line-height.html</a><br />
<img src="/attachments/month_0808/y200882211365.gif" border="0" alt=""/></p>
<p>在默认值的情况下，FireFox的默认文字好像较小，所以，尽量在全局设置时，定义一下各元素的文字大小。</p>
<p><img src="/attachments/month_0808/t200882211369.gif" border="0" alt=""/></p>
<p><code>.demo1 { line-height:25px; font-size:14px;}</code></p>
<p>设置了line-height后，FireFox没有什么问题，但IE高没有变化，里面的line-height变动了，貌似是overflow:hidden的效果。~~</p>
<p><img src="/attachments/month_0808/n2008822113612.gif" border="0" alt=""/></p>
<p><code>.demo2 { line-height:25px; height:25px; font-size:14px;}</code></p>
<p>行高和高一起设置，FireFox不支持在input使用line-height</p>
<p><img src="/attachments/month_0808/72008822113615.gif" border="0" alt=""/></p>
<p><code>.demo3 { height:19px; font-size:14px; padding:6px 0 0 0;}</code></p>
<p>最后用padding的方法，解决问题，padding-top=(height-font-size)/2</p>
<p>或许有更好的解决方法，望牛人告知。</p>
]]></content:encoded>
			<wfw:commentRss>http://foxling.org/html-css-xml/input-line-height/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

