<?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>waimv.com &#187; CSS</title>
	<atom:link href="http://www.waimv.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.waimv.com</link>
	<description></description>
	<lastBuildDate>Fri, 09 Nov 2018 10:41:46 +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>ie 6 height 高度影响因素</title>
		<link>http://www.waimv.com/css/86/</link>
		<comments>http://www.waimv.com/css/86/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 04:03:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://www.szpian.com/?p=86</guid>
		<description><![CDATA[首先要看DIV有无内容，然后才会决定谁影响其高度： 当DIV为一个空标签的时候：DIV有一个默认的高度（大约20px左右吧），如果hiehgt的值小于这个数字，DIV不会有任何反应，大于则可以控制；而line-height在这儿根本没有用，因为没有内容，所以也就不存在行高了。 当 DIV标签内有内容时（哪怕是一个&#160;）：DIV的高度依然是默认的（依旧是20px左右），而这时候的height仍然只能 设置大于这个数的值，否则DIV不会受控制；但是，这时候却可以使用line-height来控制DIV的高度，准确来说是控制DIV内的内容行高，使 DIV受行高的变化而变化。 不过，如果你设置了height的值，那么当line-height小于height的值的时候，DIV取的是height的 值；如果line-height大于height的值，那这时候影响DIV高度的就是line-height的值了。 在其它的浏览器就不会出现这个问题，也就是说line-height大于height的时候，DIV的高度依旧是height，最多是看不见内容，但DIV的高度不会被line-height所控制。 期间有一个朋友评论说“使用overflow:hidden;第二种情况也是由height来控制了”：嘿嘿，试了一下，的确如此，当DIV的高度被line-height撑高的时候，使用overflow:hidden;则会使超出DIV高度那部份的内容不可见，从而使DIV的高度受hiehgt控制。 哈，终于知道overf]]></description>
			<content:encoded><![CDATA[<p>首先要看DIV有无内容，然后才会决定谁影响其高度：</p>
<p>当DIV为一个空标签的时候：DIV有一个默认的高度（大约20px左右吧），如果hiehgt的值小于这个数字，DIV不会有任何反应，大于则可以控制；而line-height在这儿根本没有用，因为没有内容，所以也就不存在行高了。<br />
当 DIV标签内有内容时（哪怕是一个&nbsp;）：DIV的高度依然是默认的（依旧是20px左右），而这时候的height仍然只能 设置大于这个数的值，否则DIV不会受控制；但是，这时候却可以使用line-height来控制DIV的高度，准确来说是控制DIV内的内容行高，使 DIV受行高的变化而变化。<br />
不过，如果你设置了height的值，那么当line-height小于height的值的时候，DIV取的是height的 值；如果line-height大于height的值，那这时候影响DIV高度的就是line-height的值了。<br />
在其它的浏览器就不会出现这个问题，也就是说line-height大于height的时候，DIV的高度依旧是height，最多是看不见内容，但DIV的高度不会被line-height所控制。</p>
<p>期间有一个朋友评论说“使用overflow:hidden;第二种情况也是由height来控制了”：嘿嘿，试了一下，的确如此，当DIV的高度被line-height撑高的时候，使用overflow:hidden;则会使超出DIV高度那部份的内容不可见，从而使DIV的高度受hiehgt控制。</p>
<p>哈，终于知道overf</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waimv.com/css/86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ie6 ie7 ff css兼容</title>
		<link>http://www.waimv.com/css/84/</link>
		<comments>http://www.waimv.com/css/84/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 04:01:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[兼容]]></category>

		<guid isPermaLink="false">http://www.szpian.com/?p=84</guid>
		<description><![CDATA[例如 #body_right #body_right{} /* firefox */ *html #body_right{} /* ie6 */ *+html #body_right {} /* ie7 */ 在html头部加上这句话 让ie8采用ie7兼容的方式解析]]></description>
			<content:encoded><![CDATA[<p>例如 #body_right</p>
<p>#body_right{} /* firefox */</p>
<p>*html #body_right{} /* ie6 */</p>
<p>*+html #body_right {} /* ie7 */</p>
<p>在html头部加上这句话 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />让ie8采用ie7兼容的方式解析</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waimv.com/css/84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world！</title>
		<link>http://www.waimv.com/linux/1/</link>
		<comments>http://www.waimv.com/linux/1/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 13:04:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.szpian.com/?p=1</guid>
		<description><![CDATA[怎么没出全呢。 echo 'hello'; /** * 获取搜索参数数据 * */ function &#38;get_search_params() { global $args, $request_obj; $param_arr = array(); foreach($args as $key) { if ($value = $request_obj-&#62;GetString($key)) { $param_arr[$key] = $value; } else { $param_arr[$key] = NULL; } } return $param_arr; } 我来测试一下代码高亮]]></description>
			<content:encoded><![CDATA[<p>怎么没出全呢。</p>
<pre class="brush:php">echo 'hello';

/**
 * 获取搜索参数数据
 *
 */
function &amp;get_search_params()
{
	global $args, $request_obj;
	$param_arr = array();
	foreach($args as $key)
	{
		if ($value = $request_obj-&gt;GetString($key))
		{
			$param_arr[$key] = $value;
		}
		else
		{
			$param_arr[$key] = NULL;
		}
	}

	return $param_arr;
}</pre>
<p>我来测试一下代码高亮</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waimv.com/linux/1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
