<?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>FDS's Blog &#187; DIV+CSS</title>
	<atom:link href="http://blog.1xi.net/category/divcss/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.1xi.net</link>
	<description>收藏和分享</description>
	<lastBuildDate>Thu, 12 May 2011 06:33:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>CSS控制强制不换行/强制换行</title>
		<link>http://blog.1xi.net/divcss/huanhang-2</link>
		<comments>http://blog.1xi.net/divcss/huanhang-2#comments</comments>
		<pubDate>Mon, 23 Mar 2009 02:19:12 +0000</pubDate>
		<dc:creator>fangds</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>

		<guid isPermaLink="false">http://blog.1xi.net/?p=7520</guid>
		<description><![CDATA[CSS控制强制换行/强制换行 强制不换行 div{ white-space:nowrap; } 自动换行 div{ word-wrap: break-word; word-break: normal; } 强制英文单词断行 div{ word-break:break-all; }]]></description>
			<content:encoded><![CDATA[<p>CSS控制强制换行/强制换行</p>
<p>强制不换行<br />
div{<br />
white-space:nowrap;<br />
}</p>
<p>自动换行<br />
div{<br />
word-wrap: break-word;<br />
word-break: normal;<br />
}</p>
<p>强制英文单词断行<br />
div{<br />
word-break:break-all;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/huanhang-2/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IE6下定义height导致间距的一个问题，发出来体验一下</title>
		<link>http://blog.1xi.net/divcss/ie6-height-jianju</link>
		<comments>http://blog.1xi.net/divcss/ie6-height-jianju#comments</comments>
		<pubDate>Mon, 15 Dec 2008 14:21:18 +0000</pubDate>
		<dc:creator>fangds</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>

		<guid isPermaLink="false">http://blog.1xi.net/?p=7397</guid>
		<description><![CDATA[IE6下的一个问题，体验一下，请注意了，在样式“.text”里面有个“height:36px;”，定义后，会导致两个容器存在差异，如果不定义，则正常，以下是代码部分，可以运行，在IE6下面试试看效果吧，注意背景色彩之间的距离。这是一个细节问题，发出来，分享一下。 &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;IE6下的一个问题，体验一下&#60;/title&#62; &#60;link href=&#34;css/dzcss.css&#34; type=&#34;text/css&#34; rel=&#34;stylesheet&#34;&#62; &#60;/head&#62; &#60;style&#62; .main {width:960px; margin:0 auto; margin-top:30px; padding-bottom:30px;} .left {float:left; width:225px;} .right {float:right; width:225px;} .middle {padding: 0px 235px 0 235px;} .middle div {background-color:#FF0000} .mtitle{color:#fff; text-align:left; background-color:#111111; height:36px; line-height:36px; padding-left:35px;} &#60;/style&#62; &#60;body&#62; &#60;div class=&#34;main&#34;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>IE6下的一个问题，体验一下，请注意了，在样式“.text”里面有个“height:36px;”，定义后，会导致两个容器存在差异，如果不定义，则正常，以下是代码部分，可以运行，在IE6下面试试看效果吧，<strong>注意背景色彩之间的距离</strong>。这是一个细节问题，发出来，分享一下。</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_Il2tPb">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;IE6下的一个问题，体验一下&lt;/title&gt;
&lt;link href=&quot;css/dzcss.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot;&gt;
&lt;/head&gt;
&lt;style&gt;
.main {width:960px; margin:0 auto; margin-top:30px; padding-bottom:30px;}
.left {float:left; width:225px;}
.right {float:right; width:225px;}
.middle {padding: 0px 235px 0 235px;}
.middle div {background-color:#FF0000}
.mtitle{color:#fff; text-align:left; background-color:#111111; height:36px; line-height:36px;  padding-left:35px;}
&lt;/style&gt;
&lt;body&gt;
&lt;div class=&quot;main&quot;&gt;
    &lt;div class=&quot;left&quot;&gt;1111111111111
    &lt;/div&gt;
    &lt;div class=&quot;right&quot;&gt;2222222222222
    &lt;/div&gt;
    &lt;div class=&quot;middle&quot;&gt;
    	&lt;div class=&quot;middlebox&quot;&gt;
        	&lt;h2 class=&quot;mtitle&quot;&gt;安全&lt;/h2&gt;
            &lt;div&gt;保证交易的公平性。&lt;br /&gt;&lt;/div&gt;
            &lt;div align=&quot;center&quot;&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_Il2tPb');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_Il2tPb');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/ie6-height-jianju/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS背景颜色渐变效果</title>
		<link>http://blog.1xi.net/divcss/css-jianbian-xiaoguo</link>
		<comments>http://blog.1xi.net/divcss/css-jianbian-xiaoguo#comments</comments>
		<pubDate>Fri, 28 Nov 2008 05:06:17 +0000</pubDate>
		<dc:creator>fangds</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>

		<guid isPermaLink="false">http://blog.1xi.net/?p=7338</guid>
		<description><![CDATA[CSS背景颜色渐变效果，是通过IE特有的滤镜来实现的，很多时候都有着非常重要的作用，但是火狐不能支持。 如：style=&#8221;filter:progid:DXImageTransform.Microsoft.Gradient (startColorStr=&#8217;#FFFFFF&#8217;, endColorStr=&#8217;#3568CC&#8217;, gradientType=&#8217;0&#8242;)&#8221; startColorStr 开始颜色 endColorStr 结束颜色 gradientType 渐变的方式：0-从上到下，1-从左到右 示例： &#60;table cellpadding=&#34;0&#34; cellspacing=&#34;0&#34; width=&#34;72%&#34; height=&#34;30&#34; border=&#34;0&#34;&#62; &#60;tr&#62; &#60;td width=&#34;33%&#34; height=&#34;300&#34; style=&#34;filter:progid:DXImageTransform.Microsoft.Gradient (startColorStr='#FFFFFF', endColorStr='#3568CC', gradientType='0')&#34;&#62;1&#60;/td&#62; &#60;td width=&#34;33%&#34; height=&#34;300&#34; style=&#34;filter:progid:DXImageTransform.Microsoft.Gradient (startColorStr='#FFFFFF', endColorStr='#3568CC', gradientType='1')&#34;&#62;2&#60;/td&#62; &#60;td width=&#34;33%&#34; height=&#34;300&#34; style=&#34;filter:progid:DXImageTransform.Microsoft.Gradient (startColorStr='#FFFFFF', endColorStr='#3568CC', gradientType='2')&#34;&#62;3&#60;/td&#62; &#60;/tr&#62; &#60;/table&#62; 提示：你可以先修改部分代码再运行。]]></description>
			<content:encoded><![CDATA[<p>CSS背景颜色渐变效果，是通过IE特有的滤镜来实现的，很多时候都有着非常重要的作用，但是火狐不能支持。</p>
<p>如：style=&#8221;filter:progid:DXImageTransform.Microsoft.Gradient<br />
(startColorStr=&#8217;#FFFFFF&#8217;, endColorStr=&#8217;#3568CC&#8217;, gradientType=&#8217;0&#8242;)&#8221;</p>
<p>startColorStr 开始颜色<br />
endColorStr 结束颜色<br />
gradientType 渐变的方式：0-从上到下，1-从左到右</p>
<p>示例：</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_eu1ojT">
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;72%&quot; height=&quot;30&quot; border=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td width=&quot;33%&quot; height=&quot;300&quot; style=&quot;filter:progid:DXImageTransform.Microsoft.Gradient
(startColorStr='#FFFFFF', endColorStr='#3568CC', gradientType='0')&quot;&gt;1&lt;/td&gt;
&lt;td width=&quot;33%&quot; height=&quot;300&quot; style=&quot;filter:progid:DXImageTransform.Microsoft.Gradient
(startColorStr='#FFFFFF', endColorStr='#3568CC', gradientType='1')&quot;&gt;2&lt;/td&gt;
&lt;td width=&quot;33%&quot; height=&quot;300&quot; style=&quot;filter:progid:DXImageTransform.Microsoft.Gradient
(startColorStr='#FFFFFF', endColorStr='#3568CC', gradientType='2')&quot;&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_eu1ojT');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_eu1ojT');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/css-jianbian-xiaoguo/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>z-index使用说明及示例</title>
		<link>http://blog.1xi.net/divcss/z-index</link>
		<comments>http://blog.1xi.net/divcss/z-index#comments</comments>
		<pubDate>Tue, 12 Aug 2008 02:58:20 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=40</guid>
		<description><![CDATA[z-index是设置对象的层叠顺序的样式。该样式只对position属性为relative或absolute的对象有效。这里的层叠顺序也可以说是对象的“上下顺序”。 z-index在层叠的时候，很重要，特别是层的优先级的时候，只要用z-index定一个值，就可以根据你自己想要的顺序来显示效果。 语法：z-index : auto &#124; number auto : 默认值。可以不写。 number : 无单位的整数值。可为负数,当值为负数时，被指定元素将位于其父元素之下。数值越大，越靠前，反之亦然。 一个小例子： &#60;div style=&#34;width: 100px; height: 100px; position: absolute; background-color: red; z-index: -1; left: 320px; top: 620px;&#34;&#62;z-index:-1&#60;/div&#62; &#60;div style=&#34;width: 150px; height: 150px; position: absolute; background-color: green; z-index: 2; left: 350px; top: 650px;&#34;&#62;z-index:2&#60;/div&#62; &#60;div style=&#34;width: 200px; height: 200px; position: absolute; background-color: blue;z-index: 3; left: [...]]]></description>
			<content:encoded><![CDATA[<p>z-index是设置对象的层叠顺序的样式。该样式只对position属性为relative或absolute的对象有效。这里的层叠顺序也可以说是对象的“上下顺序”。<br />
z-index在层叠的时候，很重要，特别是层的优先级的时候，只要用z-index定一个值，就可以根据你自己想要的顺序来显示效果。<br />
语法：z-index : auto | number<br />
auto : 默认值。可以不写。<br />
number : 无单位的整数值。可为负数,当值为负数时，被指定元素将位于其父元素之下。数值越大，越靠前，反之亦然。</p>
<p>一个小例子：</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_gqgF6X">
&lt;div style=&quot;width: 100px; height: 100px; position: absolute; background-color: red; z-index: -1; left: 320px; top: 620px;&quot;&gt;z-index:-1&lt;/div&gt;
    &lt;div style=&quot;width: 150px; height: 150px; position: absolute; background-color: green; z-index: 2; left: 350px; top: 650px;&quot;&gt;z-index:2&lt;/div&gt;
    &lt;div style=&quot;width: 200px; height: 200px; position: absolute; background-color: blue;z-index: 3; left: 390px; top: 690px;&quot;&gt;z-index:3&lt;/div&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_gqgF6X');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_gqgF6X');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/z-index/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FF浏览shtml文件是源代码解决办法</title>
		<link>http://blog.1xi.net/divcss/ff-shtml</link>
		<comments>http://blog.1xi.net/divcss/ff-shtml#comments</comments>
		<pubDate>Thu, 31 Jul 2008 09:07:51 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[FF]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=39</guid>
		<description><![CDATA[下面介绍一下在各操作系统下或者说个版本IIS和Apache下配置shtml的方法： 1、在IIS5下配置shtml IIS5一般存在于Windows 2000操作系统中，方法就是添加一个“应用程序扩展名映射”。 用程序“C:\WINDOWS\system32\inetsrv\ssinc.dll”来对应扩展名“shtml/shtm”就可以了。 2、在IIS6下配置shtml IIS6一般存在于Windows 2003操作系统中，其实在IIS6已经默认支持shtml扩展名了。在 开始 -&#62; 管理工具 -&#62; Internet信息服务管理器 -&#62; WEB服务扩展 -&#62; 选择“在服务器端的包含文件” -&#62; 设置为“允许”，然后打开“本地计算机”的属性 -&#62; MIME类型 -&#62; 新建后缀名：.shtml和.shtm、MIME类型：text/html就可以了。 3、在Apache下配置shtml 用文本编辑器打开httpd.conf文件 去掉 #AddType text/html .shtml #AddOutputFilter INCLUDES .shtml 前面的注释#号 在Apache 2.0.6版本之前，添加 AddOutputFilter INCLUDES .shtml 在Apache 2.0.6版本之后 修改Options Indexes FollowSymLinks为 Options Indexes FollowSymLinks Includes 一般来说，FireFox下浏览shtml文件是源代码是因为“AddType text/html”配置的错误，只要按照上面的各种方法进行配置，就不会出现以上的问题了！]]></description>
			<content:encoded><![CDATA[<p>下面介绍一下在各操作系统下或者说个版本IIS和Apache下配置shtml的方法：</p>
<p>1、在IIS5下配置shtml</p>
<p>IIS5一般存在于Windows 2000操作系统中，方法就是添加一个“应用程序扩展名映射”。<br />
用程序“C:\WINDOWS\system32\inetsrv\ssinc.dll”来对应扩展名“shtml/shtm”就可以了。</p>
<p>2、在IIS6下配置shtml</p>
<p>IIS6一般存在于Windows 2003操作系统中，其实在IIS6已经默认支持shtml扩展名了。在 开始 -&gt; 管理工具 -&gt; Internet信息服务管理器 -&gt; WEB服务扩展 -&gt; 选择“在服务器端的包含文件” -&gt; 设置为“允许”，然后打开“本地计算机”的属性 -&gt; MIME类型 -&gt; 新建后缀名：.shtml和.shtm、MIME类型：text/html就可以了。</p>
<p>3、在Apache下配置shtml</p>
<p>用文本编辑器打开httpd.conf文件<br />
去掉<br />
#AddType text/html .shtml<br />
#AddOutputFilter INCLUDES .shtml<br />
前面的注释#号</p>
<p>在Apache 2.0.6版本之前，添加<br />
AddOutputFilter INCLUDES .shtml</p>
<p>在Apache 2.0.6版本之后<br />
修改Options Indexes FollowSymLinks为<br />
Options Indexes FollowSymLinks Includes</p>
<p>一般来说，FireFox下浏览shtml文件是源代码是因为“AddType text/html”配置的错误，只要按照上面的各种方法进行配置，就不会出现以上的问题了！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/ff-shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>谈谈用CSS来定义IE6、IE7、FF几种浏览器的垂直居中</title>
		<link>http://blog.1xi.net/divcss/line-height</link>
		<comments>http://blog.1xi.net/divcss/line-height#comments</comments>
		<pubDate>Thu, 03 Jul 2008 02:19:48 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[垂直居中]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=21</guid>
		<description><![CDATA[用CSS来定义剧中，只要定义line-height的高度和实际高度相等，就可以实现居中了，如： h1{height:21px; line-height:21px;} 把height和line-height定义一样的高度就可以了。 通常这样在火狐和IE就可以实现垂直居中了，但通常，底部比上面要多出2-3个PX 看看下面的效果，用不同浏览器打开试试看。 &#60;style&#62; h1{height:21px; line-height:21px; font-size:12px; background-color:red} &#60;/style&#62; &#60;h1&#62;用不同浏览器看看垂直居中的效果&#60;/h1&#62; 提示：你可以先修改部分代码再运行。]]></description>
			<content:encoded><![CDATA[<p>用CSS来定义剧中，只要定义line-height的高度和实际高度相等，就可以实现居中了，如：<br />
h1{height:21px; line-height:21px;} 把height和line-height定义一样的高度就可以了。<br />
通常这样在火狐和IE就可以实现垂直居中了，但通常，底部比上面要多出2-3个PX<br />
看看下面的效果，用不同浏览器打开试试看。</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_mMcuGp">
&lt;style&gt;
h1{height:21px; line-height:21px; font-size:12px; background-color:red}
&lt;/style&gt;
&lt;h1&gt;用不同浏览器看看垂直居中的效果&lt;/h1&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_mMcuGp');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_mMcuGp');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/line-height/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>为什么定义链接的CSS样式，但是没有效果</title>
		<link>http://blog.1xi.net/divcss/idclass</link>
		<comments>http://blog.1xi.net/divcss/idclass#comments</comments>
		<pubDate>Tue, 01 Jul 2008 01:35:57 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[CSS链接优先级]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=20</guid>
		<description><![CDATA[我们用DIV+CSS设计时，可能偶尔会碰到这种情况，在定义了样式的链接样式后，其样式作用于页面时候，链接的样式缺始终不是预期的效果，经过仔细排查后，结果发现了上级的ID定义链接属性后，CLASS的链接样式无法启到作用。这涉及到一个优先级的问题。 示例： &#60;style&#62; #wb a{color:red;} .nb a{color:blue;} &#60;/style&#62; &#60;div id=&#34;wb&#34;&#62; &#60;div class=&#34;nb&#34;&#62;&#60;a herf=#&#62;这里就是效果了&#60;/a&#62;&#60;/div&#62; &#60;/div&#62; 提示：你可以先修改部分代码再运行。 如果你碰到类似问题，请查看是否ID和CLASS是否重复定义了链接属性。]]></description>
			<content:encoded><![CDATA[<p>我们用DIV+CSS设计时，可能偶尔会碰到这种情况，在定义了样式的链接样式后，其样式作用于页面时候，链接的样式缺始终不是预期的效果，经过仔细排查后，结果发现了上级的ID定义链接属性后，CLASS的链接样式无法启到作用。这涉及到一个优先级的问题。<br />
示例：</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_AmLagl">
&lt;style&gt;
#wb a{color:red;}
.nb a{color:blue;}
&lt;/style&gt;
&lt;div id=&quot;wb&quot;&gt;
 &lt;div class=&quot;nb&quot;&gt;&lt;a herf=#&gt;这里就是效果了&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_AmLagl');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_AmLagl');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
<p>如果你碰到类似问题，请查看是否ID和CLASS是否重复定义了链接属性。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/idclass/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用编辑器时，字体选择过大，导致字体重叠的解决办法</title>
		<link>http://blog.1xi.net/divcss/font-size-7</link>
		<comments>http://blog.1xi.net/divcss/font-size-7#comments</comments>
		<pubDate>Fri, 27 Jun 2008 08:10:44 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[文字重叠]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=19</guid>
		<description><![CDATA[网站页面设计时，会碰到使用编辑器时，字体选择过大，导致字体重叠，这里提供一个简单的解决办法。 在样式表里面定义一下font的样式 font{line-height:150%;} 这样不管字体多大，行高为字体高度的150%了。就不会再出现字体重叠了。]]></description>
			<content:encoded><![CDATA[<p>网站页面设计时，会碰到使用编辑器时，字体选择过大，导致字体重叠，这里提供一个简单的解决办法。<br />
在样式表里面定义一下font的样式<br />
font{line-height:150%;}<br />
这样不管字体多大，行高为字体高度的150%了。就不会再出现字体重叠了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/font-size-7/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用letter-spacing调整页面的字符间距</title>
		<link>http://blog.1xi.net/divcss/letter-spacing</link>
		<comments>http://blog.1xi.net/divcss/letter-spacing#comments</comments>
		<pubDate>Mon, 16 Jun 2008 04:03:18 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[字符间距]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=18</guid>
		<description><![CDATA[设计页面的时候，有时候调整下字符之间的距离，也可以让页面更加美观点。介绍一个用CSS来设置字符间距的方法：letter-spacing 例子： &#60;div&#62;默认效果&#60;/div&#62; &#60;div style=&#34;letter-spacing:5px;&#34;&#62;看看效果&#60;/div&#62; 提示：你可以先修改部分代码再运行。]]></description>
			<content:encoded><![CDATA[<p>设计页面的时候，有时候调整下字符之间的距离，也可以让页面更加美观点。介绍一个用CSS来设置字符间距的方法：letter-spacing<br />
例子：</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_XhEdsV">
&lt;div&gt;默认效果&lt;/div&gt;
&lt;div style=&quot;letter-spacing:5px;&quot;&gt;看看效果&lt;/div&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_XhEdsV');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_XhEdsV');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/letter-spacing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>给input的submit属性加上漂亮的背景图片</title>
		<link>http://blog.1xi.net/divcss/submit</link>
		<comments>http://blog.1xi.net/divcss/submit#comments</comments>
		<pubDate>Sun, 15 Jun 2008 09:38:00 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[submit]]></category>
		<category><![CDATA[背景]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=17</guid>
		<description><![CDATA[在做按钮的时候，怎么给按钮加上漂亮的背景图片呢，这里提供一种解决方法。 首先我们定义一个样式吧。 &#60;code&#62; .bottom{border:none;background:url(../images/bottom.jpg) left top no-repeat;width:80px; height:24px; color:#fff; font-size:12px; display:block; line-height:24px;} &#60;/code&#62; 然后在写input的时候调用下样式就可以了，如： &#60;code&#62; &#60;input type=&#8221;submit&#8221; class=&#8221;bottom&#8221;&#62; &#60;/code&#62; 就可以了]]></description>
			<content:encoded><![CDATA[<p>在做按钮的时候，怎么给按钮加上漂亮的背景图片呢，这里提供一种解决方法。<br />
首先我们定义一个样式吧。<br />
&lt;code&gt;<br />
.bottom{border:none;background:url(../images/bottom.jpg) left top no-repeat;width:80px; height:24px; color:#fff; font-size:12px; display:block; line-height:24px;}<br />
&lt;/code&gt;<br />
然后在写input的时候调用下样式就可以了，如：<br />
&lt;code&gt;<br />
&lt;input type=&#8221;submit&#8221; class=&#8221;bottom&#8221;&gt;<br />
&lt;/code&gt;<br />
就可以了</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/submit/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>页面设计时，IE7和火狐没问题，IE6浏览不正常的问题解决办法</title>
		<link>http://blog.1xi.net/divcss/ie6-ie7-ff</link>
		<comments>http://blog.1xi.net/divcss/ie6-ie7-ff#comments</comments>
		<pubDate>Fri, 13 Jun 2008 04:12:42 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[FF]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[IE7]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=15</guid>
		<description><![CDATA[在页面设计的时候，会碰到IE7和FF浏览都正常，而IE6却有些问题，甚至样式似乎不起作用，我总结了一下，主要有以下几点原因。 1、编码问题会造成IE6浏览样式丢失，这里主页是页面的编码和样式表的编码不同导致，可以把样式和页面都改成UTF-8或者ANSI，直接用记事本打开另存为，即可解决问题。 2、padding和margin问题，IE6下，这个属性，都会导致容器延伸，导致布局错位。可以把这些属性加在容器内部，这样只是在容器内部延伸，不会导致整个容器扩张。IE7和FF就不会出现这种问题 主要总结这两点问题，如果以后发现，再更新。]]></description>
			<content:encoded><![CDATA[<p>在页面设计的时候，会碰到IE7和FF浏览都正常，而IE6却有些问题，甚至样式似乎不起作用，我总结了一下，主要有以下几点原因。<br />
1、编码问题会造成IE6浏览样式丢失，这里主页是页面的编码和样式表的编码不同导致，可以把样式和页面都改成UTF-8或者ANSI，直接用记事本打开另存为，即可解决问题。<br />
2、padding和margin问题，IE6下，这个属性，都会导致容器延伸，导致布局错位。可以把这些属性加在容器内部，这样只是在容器内部延伸，不会导致整个容器扩张。IE7和FF就不会出现这种问题<br />
主要总结这两点问题，如果以后发现，再更新。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/ie6-ie7-ff/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>万能的float闭合，用来解决多个div对齐时的间距不对</title>
		<link>http://blog.1xi.net/divcss/clear-float</link>
		<comments>http://blog.1xi.net/divcss/clear-float#comments</comments>
		<pubDate>Fri, 06 Jun 2008 09:54:22 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=14</guid>
		<description><![CDATA[万能的float 闭合，用来解决多个div对齐时的间距不对，将以下代码加入CSS 中,给需要闭合的div加上 class=”clearfix” 即可,屡试不爽. 代码: &#60;style&#62; /* Clear Fix */ .clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden; } .clearfix { display:inline-block; } /* Hide from IE Mac \*/ .clearfix {display:block;} /* End hide from IE Mac */ /* end of clearfix */ &#60;/style&#62;]]></description>
			<content:encoded><![CDATA[<p>万能的float 闭合，用来解决多个div对齐时的间距不对，将以下代码加入CSS 中,给需要闭合的div加上 class=”clearfix” 即可,屡试不爽.</p>
<h5>代码:</h5>
<p><code>&lt;style&gt;<br />
/* Clear Fix */<br />
.clearfix:after {<br />
content:".";<br />
display:block;<br />
height:0;<br />
clear:both;<br />
visibility:hidden;<br />
}<br />
.clearfix {<br />
display:inline-block;<br />
}<br />
/* Hide from IE Mac \*/<br />
.clearfix {display:block;}<br />
/* End hide from IE Mac */<br />
/* end of clearfix */<br />
&lt;/style&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/clear-float/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>什么是CSS hack？CSS hack是怎么写的？</title>
		<link>http://blog.1xi.net/divcss/css-hack</link>
		<comments>http://blog.1xi.net/divcss/css-hack#comments</comments>
		<pubDate>Fri, 06 Jun 2008 09:38:49 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[CSS hack]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=13</guid>
		<description><![CDATA[什么是CSS hack？ 由于不同的浏览器，比如Internet Explorer 6,Internet Explorer 7,Mozilla Firefox等，对CSS的解析认识不一样，因此会导致生成的页面效果不一样，得不到我们所需要的页面效果。 这个时候我们就需要针对不同的浏览器去写不同的CSS，让它能够同时兼容不同的浏览器，能在不同的浏览器中也能得到我们想要的页面效果。 这个针对不同的浏览器写不同的CSS code的过程，就叫CSS hack,也叫写CSS hack。 CSS hack是怎么写的？ 请注意以下说明： !important,火狐和IE7都能识别 *+html,目前只有IE7可以识别，而且需要顶部有以下代码申明： &#60;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221;　&#8221;http://www.w3.org/TR/html4/loose.dtd&#8221;&#62; *html,IE6和IE7可以识别 _,IE6支持下划线，IE7和firefox均不支持下划线。 在写CSS hack的过程中，顺序特别要注意，最被广泛识别的，放最前面，其次是浏览器版本低的放其次。 个人推荐使用以下模式，如： &#60;style&#62; #wrapper { width: 120px; } /* FireFox */ *html #wrapper { width: 80px;} /* ie6 fixed */ *+html #wrapper { width: 60px;} /* ie7 [...]]]></description>
			<content:encoded><![CDATA[<p>什么是<strong>CSS hack</strong>？<br />
由于不同的浏览器，比如Internet Explorer 6,Internet Explorer 7,Mozilla Firefox等，对CSS的解析认识不一样，因此会导致生成的页面效果不一样，得不到我们所需要的页面效果。<br />
这个时候我们就需要针对不同的浏览器去写不同的CSS，让它能够同时兼容不同的浏览器，能在不同的浏览器中也能得到我们想要的页面效果。<br />
这个针对不同的浏览器写不同的CSS code的过程，就叫<strong>CSS hack</strong>,也叫写CSS hack。<br />
<strong>CSS hack</strong>是怎么写的？<br />
请注意以下说明：<br />
!important,火狐和IE7都能识别<br />
*+html,目前只有IE7可以识别，而且需要顶部有以下代码申明：<br />
&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221;　&#8221;http://www.w3.org/TR/html4/loose.dtd&#8221;&gt;<br />
*html,IE6和IE7可以识别<br />
_,IE6支持下划线，IE7和firefox均不支持下划线。<br />
在写CSS hack的过程中，顺序特别要注意，最被广泛识别的，放最前面，其次是浏览器版本低的放其次。<br />
个人推荐使用以下模式，如：<br />
&lt;style&gt;<br />
#wrapper { width: 120px; } /* FireFox */<br />
*html #wrapper { width: 80px;} /* ie6 fixed */<br />
*+html #wrapper { width: 60px;} /* ie7 fixed, 注意顺序 */<br />
&lt;/style&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/css-hack/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用CSS实现拉动滚动条时固定网页背景不动</title>
		<link>http://blog.1xi.net/divcss/gudingbeijing</link>
		<comments>http://blog.1xi.net/divcss/gudingbeijing#comments</comments>
		<pubDate>Fri, 23 May 2008 07:20:31 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[网页背景]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=7</guid>
		<description><![CDATA[body{         background-image: url(./inc/bgbk.jpg);         background-attachment:fixed;  }]]></description>
			<content:encoded><![CDATA[<p>body{<br />
        background-image: url(./inc/bgbk.jpg);<br />
        background-attachment:fixed; <br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/gudingbeijing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用CSS来实现多超过固定宽度用省略号代替</title>
		<link>http://blog.1xi.net/divcss/shengluehao</link>
		<comments>http://blog.1xi.net/divcss/shengluehao#comments</comments>
		<pubDate>Fri, 23 May 2008 07:18:02 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=6</guid>
		<description><![CDATA[在完成一个网站时，因为要用到超过固定宽度时用省略号表示，有许多的方法都可以完成，但这都是要服务器付出代价的，那我们为何不用CSS来完成这样一个功能呢？看看下面的代码吧！ &#60;div style=&#34;width:80px;background-color:red;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;&#34;&#62; &#60;ul&#62; &#60;li&#62;用CSS来实现多超过固定宽度用省略号代替&#60;/li&#62; &#60;li&#62;用CSS来实现多超过固定宽度用省略号代替&#60;/li&#62; &#60;/ul&#62; &#60;/div&#62; 提示：你可以先修改部分代码再运行。]]></description>
			<content:encoded><![CDATA[<p>在完成一个网站时，因为要用到超过固定宽度时用省略号表示，有许多的方法都可以完成，但这都是要服务器付出代价的，那我们为何不用CSS来完成这样一个功能呢？看看下面的代码吧！</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_XWeOFv">
&lt;div style=&quot;width:80px;background-color:red;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;用CSS来实现多超过固定宽度用省略号代替&lt;/li&gt;
&lt;li&gt;用CSS来实现多超过固定宽度用省略号代替&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_XWeOFv');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_XWeOFv');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/shengluehao/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用CSS来设置onmouseover和onmouseout事件</title>
		<link>http://blog.1xi.net/divcss/onmouseover-onmouseout</link>
		<comments>http://blog.1xi.net/divcss/onmouseover-onmouseout#comments</comments>
		<pubDate>Fri, 23 May 2008 07:14:44 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[onmouseout]]></category>
		<category><![CDATA[onmouseover事件]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=5</guid>
		<description><![CDATA[用CSS来设置onmouseover事件实例： ul{ /*设置onmouseover事件*/ onmouseover: expression(onmouseover=function (){this.style.borderColor =&#8217;#cccccc&#8217;;this.style.color=&#8217;#ffffff&#8217;;this.style.backgroundColor =&#8217;#0099ff&#8217;}); /*设置onmouseout事件*/ onmouseout: expression(onmouseout=function (){this.style.borderColor=&#8221;;this.style.color=&#8221;;this.style.backgroundColor =&#8221;}); background-color:#ffffff; } 这段代码实现的功能就是当鼠标移动到ul列表时,背景就会变成蓝色,文字变成白色,边框变成灰色.这种效果一般用在当用UL代替表格时,实现的当整行变换效果!]]></description>
			<content:encoded><![CDATA[<p>用CSS来设置onmouseover事件实例：</p>
<p>ul{<br />
/*设置onmouseover事件*/<br />
onmouseover: expression(onmouseover=function (){this.style.borderColor =&#8217;#cccccc&#8217;;this.style.color=&#8217;#ffffff&#8217;;this.style.backgroundColor =&#8217;#0099ff&#8217;});</p>
<p>/*设置onmouseout事件*/<br />
onmouseout: expression(onmouseout=function (){this.style.borderColor=&#8221;;this.style.color=&#8221;;this.style.backgroundColor =&#8221;});<br />
background-color:#ffffff;<br />
}</p>
<p>这段代码实现的功能就是当鼠标移动到ul列表时,背景就会变成蓝色,文字变成白色,边框变成灰色.这种效果一般用在当用UL代替表格时,实现的当整行变换效果!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/onmouseover-onmouseout/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>用css来控制字间距和字母间距的方法</title>
		<link>http://blog.1xi.net/divcss/word-spacing</link>
		<comments>http://blog.1xi.net/divcss/word-spacing#comments</comments>
		<pubDate>Sat, 10 May 2008 07:55:56 +0000</pubDate>
		<dc:creator>FDS</dc:creator>
				<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[CSS方法]]></category>

		<guid isPermaLink="false">http://www.1xi.net/blog/?p=3</guid>
		<description><![CDATA[用css来控制字间距和字母间距的方法 利用CSS来定义字间距，你可以在字之间加入更多的距离： 如： H3 { word-spacing: 1em } 你所使用的参数值将加入任何浏览器的默认设置，你可以使用下面的任何一种长度单位： in （英寸） cm （厘米） mm （毫米） pt （点数） pc （打字机字间距） em （ems） ex (x-height) px （象素） 以下为显示结果： Behold the power of cheese.]]></description>
			<content:encoded><![CDATA[<p>用css来控制字间距和字母间距的方法</p>
<p>利用CSS来定义字间距，你可以在字之间加入更多的距离：<br />
如：</p>
<blockquote><p>H3 { word-spacing: 1em }</p></blockquote>
<p>你所使用的参数值将加入任何浏览器的默认设置，你可以使用下面的任何一种长度单位：</p>
<p>in （英寸）<br />
cm （厘米）<br />
mm （毫米）<br />
pt （点数）<br />
pc （打字机字间距）<br />
em （ems）<br />
ex (x-height)<br />
px （象素）</p>
<p>以下为显示结果：</p>
<p>Behold the power of cheese.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.1xi.net/divcss/word-spacing/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

