<?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; ff</title>
	<atom:link href="http://www.52sonen.com/index.php/archives/tag/ff/feed" rel="self" type="application/rss+xml" />
	<link>http://www.52sonen.com</link>
	<description>专注于前端开发、平面广告、网页设计</description>
	<lastBuildDate>Thu, 02 Sep 2010 06:42:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[ 总结]浏览器兼容手册</title>
		<link>http://www.52sonen.com/index.php/archives/807</link>
		<comments>http://www.52sonen.com/index.php/archives/807#comments</comments>
		<pubDate>Mon, 23 Nov 2009 01:42:13 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=807</guid>
		<description><![CDATA[浏览器兼容手册
1. 居中问题
div里的内容，IE默认为居中，而FF默认为左对齐
可以尝试增加代码margin:auto
2. 高度问题
两上下排列或嵌套的div，上面的div设置高度(height)，如果div里的实际内容大于所设高度，在FF中会出现两个div重叠的现象；但在IE中，下面的div会自动给上面的div让出空间
所以为避免出现层的重叠，高度一定要控制恰当，或者干脆不写高度，让他自动调节，比较好的方法是 height:100%;
但当这个div里面一级的元素都float了的时候，则需要在div块的最后，闭和前加一个沉底的空div，对应CSS是：
.float_bottom {clear:both;height:0px;font-size:0px;padding:0;margin:0;border:0;line-height:0px;overflow:hidden;}
3. clear:both;
不想受到float浮动的，就在div中写入clear:both;
4. IE浮动 margin 产生的双倍距离
#box {
float:left;
width:100px;
margin:0 0 0 100px; //这种情况之下IE会产生200px的距离
display:inline; //使浮动忽略
}

5. padding 问题
FF设置 padding 后，div会增加 height 和 width，但IE不会 （* 标准的 XHTML1.0 定义 dtd 好像一致了）
高度控制恰当，或尝试使用 height:100%;
宽度减少使用 padding
但根据实际经验，一般FF和IE的 padding 不会有太大区别，div 的实际宽 = width + padding ，所以div写全 width 和 padding，width 用实际想要的宽减去 padding 定义
6. div嵌套时 y 轴上 padding 和 marign 的问题
FF里 y 轴上 子div 到 [...]]]></description>
			<content:encoded><![CDATA[<p>浏览器兼容手册<br />
<strong>1. 居中问题</strong><br />
div里的内容，IE默认为居中，而FF默认为左对齐<br />
可以尝试增加代码margin:auto<br />
<strong>2. 高度问题</strong><br />
两上下排列或嵌套的div，上面的div设置高度(height)，如果div里的实际内容大于所设高度，在FF中会出现两个div重叠的现象；但在IE中，下面的div会自动给上面的div让出空间<br />
所以为避免出现层的重叠，高度一定要控制恰当，或者干脆不写高度，让他自动调节，比较好的方法是 height:100%;<br />
但当这个div里面一级的元素都float了的时候，则需要在div块的最后，闭和前加一个沉底的空div，对应CSS是：<br />
.float_bottom {clear:both;height:0px;font-size:0px;padding:0;margin:0;border:0;line-height:0px;overflow:hidden;}<br />
<strong>3. clear:both;</strong><br />
不想受到float浮动的，就在div中写入clear:both;<br />
<strong>4. IE浮动 margin 产生的双倍距离</strong><br />
#box {<br />
float:left;<br />
width:100px;<br />
margin:0 0 0 100px; //这种情况之下IE会产生200px的距离<br />
display:inline; //使浮动忽略<br />
}<br />
<span id="more-807"></span><br />
<strong>5. padding 问题</strong><br />
FF设置 padding 后，div会增加 height 和 width，但IE不会 （* 标准的 XHTML1.0 定义 dtd 好像一致了）<br />
高度控制恰当，或尝试使用 height:100%;<br />
宽度减少使用 padding<br />
但根据实际经验，一般FF和IE的 padding 不会有太大区别，div 的实际宽 = width + padding ，所以div写全 width 和 padding，width 用实际想要的宽减去 padding 定义<br />
<strong>6. div嵌套时 y 轴上 padding 和 marign 的问题</strong><br />
FF里 y 轴上 子div 到 父div 的距离为 父padding + 子marign<br />
IE里 y 轴上 子div 到 父div 的距离为 父padding 和 子marign 里大的一个<br />
FF里 y 轴上 父padding=0 且 border=0 时，子div 到 父div 的距离为0，子marign 作用到 父div 外面<br />
<strong>7. padding，marign，height，width 的傻瓜式解决技巧</strong><br />
注意是技巧，不是方法：<br />
写好标准头<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
高尽量用padding，慎用margin，height尽量补上100%，父级height有定值子级height不用100%，子级全为浮动时底部补个空clear:both的div<br />
宽尽量用margin，慎用padding，width算准实际要的减去padding<br />
<strong>列表类</strong><br />
<strong>1. ul 标签在FF中默认是有 padding 值的，而在IE中只有margin有值</strong><br />
先定义 ul {margin:0;padding:0;}<br />
<strong>2. ul和ol列表缩进问题</strong><br />
消除ul、ol等列表的缩进时，样式应写成: {list-style:none;margin:0px;padding:0px;}<br />
<strong>显示类</strong><br />
<strong>1. display:block,inline 两个元素</strong><br />
display:block; //可以为内嵌元素模拟为块元素<br />
display:inline; //实现同一行排列的的效果<br />
display:table; //for FF,模拟table的效果<br />
display:block 块元素，元素的特点是：<br />
总是在新行上开始；<br />
高度，行高以及顶和底边距都可控制；<br />
宽度缺省是它的容器的100%，除非设定一个宽度<br />
&lt;div&gt;，&lt;p&gt;，&lt;h1&gt;，&lt;form&gt;，&lt;ul&gt; 和 &lt;li&gt; 是块元素的例子<br />
display:inline 就是将元素显示为行内元素，元素的特点是：<br />
和其他元素都在一行上；<br />
高，行高及顶和底边距不可改变；<br />
宽度就是它的文字或图片的宽度，不可改变。<br />
&lt;span&gt;，&lt;a&gt;，&lt;label&gt;，&lt;input&gt;，&lt;img&gt;，&lt;strong&gt; 和 &lt;em&gt; 是 inline 元素的例子<br />
<strong>2. 鼠标手指状显示</strong><br />
全部用标准的写法 cursor: pointer;<br />
<strong>背景、图片类</strong><br />
<strong>1. background 显示问题</strong><br />
全部注意补齐 width，height 属性<br />
<strong>2. 背景透明问题</strong><br />
IE: filter: progid: DXImageTransform.Microsoft.Alpha(style=0,opacity=60);<br />
IE: filter: alpha(opacity=10);<br />
FF: opacity:0.6;<br />
FF: -moz-opacity:0.10;<br />
最好两个都写，并将opacity属性放在下面</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/807/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>强制Firefox显示滚动条</title>
		<link>http://www.52sonen.com/index.php/archives/803</link>
		<comments>http://www.52sonen.com/index.php/archives/803#comments</comments>
		<pubDate>Thu, 19 Nov 2009 05:32:05 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=803</guid>
		<description><![CDATA[我们知道，在页面高度不够时候，FF火狐浏览器是默认没有滚动条的。但是当页面在加载完了之后，如果页面够长，会出现稍微的闪动（偏移）。这里我们强制FF在开始的时候就有滚动条，这样，就不会出现那样的现象了。
其实，实现过程也不是很复杂，具体看例子：
&#60; !DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8220;&#62;
&#60;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8220;&#62;
&#60;head&#62;
&#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=gb2312&#8243; /&#62;
&#60;title&#62;强制Firefox显示滚动&#60;/title&#62;
&#60;style type=&#8221;text/css&#8221;&#62;
&#60;!&#8211;
html {overflow:-moz-scrollbars-vertical;} /*方法一*/
html {min-height:101%;} /*方法二*/
&#8211;&#62;
&#60;/style&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;p&#62;强制Firefox显示滚动条：&#60;/p&#62;
&#60;p&#62;方法一：html {overflow:-moz-scrollbars-vertical;}&#60;/p&#62;
&#60;p&#62;方法二：html {min-height:101%;}&#60;/p&#62;
&#60;p&#62;为什么要强制显示滚动条？因为在Firefox你会发现页面在没有加载完全的时候是没有滚动条的，当加载完成后滚动条才显示出来，所以会感觉页面偏移了下。&#60;/p&#62;
&#60;/body&#62;
&#60;/html&#62;
]]></description>
			<content:encoded><![CDATA[<p>我们知道，在页面高度不够时候，FF火狐浏览器是默认没有滚动条的。但是当页面在加载完了之后，如果页面够长，会出现稍微的闪动（偏移）。这里我们强制FF在开始的时候就有滚动条，这样，就不会出现那样的现象了。</p>
<p>其实，实现过程也不是很复杂，具体看例子：</p>
<p>&lt; !DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#8220;&gt;<br />
&lt;html xmlns=&#8221;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&#8220;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=gb2312&#8243; /&gt;<br />
&lt;title&gt;强制Firefox显示滚动&lt;/title&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
&lt;!&#8211;<br />
html {overflow:-moz-scrollbars-vertical;} /*方法一*/<br />
html {min-height:101%;} /*方法二*/<br />
&#8211;&gt;<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;p&gt;强制Firefox显示滚动条：&lt;/p&gt;<br />
&lt;p&gt;方法一：html {overflow:-moz-scrollbars-vertical;}&lt;/p&gt;<br />
&lt;p&gt;方法二：html {min-height:101%;}&lt;/p&gt;<br />
&lt;p&gt;为什么要强制显示滚动条？因为在Firefox你会发现页面在没有加载完全的时候是没有滚动条的，当加载完成后滚动条才显示出来，所以会感觉页面偏移了下。&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/803/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ie 和ff对css的缩写都存在的问题</title>
		<link>http://www.52sonen.com/index.php/archives/750</link>
		<comments>http://www.52sonen.com/index.php/archives/750#comments</comments>
		<pubDate>Wed, 14 Oct 2009 03:15:12 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[css缩写ie]]></category>
		<category><![CDATA[ff]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=750</guid>
		<description><![CDATA[1. 在IE里用body {text-align: center;}就可以居中对齐.到了firefox里总是在左边.但是如果加了float: right;还能到右边就是不能到中间..FF下面设置容器的左右外补丁为auto就可以了，如: margin:0 auto;
2. 是 ie对于css的magin padding 等默认值为0px，但ff却不一样，为了保持外观的统一性，即使padding为0你也要写上，以免ff在浏览中的错位。
3. 对css缩写的支持问题：不论是ie 还是ff对css的缩写都有一小点问题,比如:border: 0xp solid #fff;两个浏览器支持都没有问题,但如果四个边的magin不同情况下，就不能用这种缩写了，无论是ie还是ff又会出现边界解释错误，而导致页面变形

正确缩写：
border-width:0px 1px 2px 3px;
border-style:solid;
border-color:#fff;
]]></description>
			<content:encoded><![CDATA[<p>1. 在IE里用body {text-align: center;}就可以居中对齐.到了firefox里总是在左边.但是如果加了float: right;还能到右边就是不能到中间..FF下面设置容器的左右外补丁为auto就可以了，如: margin:0 auto;<br />
2. 是 ie对于css的magin padding 等默认值为0px，但ff却不一样，为了保持外观的统一性，即使padding为0你也要写上，以免ff在浏览中的错位。<br />
3. 对css缩写的支持问题：不论是ie 还是ff对css的缩写都有一小点问题,比如:border: 0xp solid #fff;两个浏览器支持都没有问题,但如果四个边的magin不同情况下，就不能用这种缩写了，无论是ie还是ff又会出现边界解释错误，而导致页面变形<br />
<span id="more-750"></span><br />
正确缩写：<br />
border-width:0px 1px 2px 3px;<br />
border-style:solid;<br />
border-color:#fff;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/750/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE和FF中css透明度的继承问题</title>
		<link>http://www.52sonen.com/index.php/archives/286</link>
		<comments>http://www.52sonen.com/index.php/archives/286#comments</comments>
		<pubDate>Wed, 15 Apr 2009 14:15:08 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[继承]]></category>
		<category><![CDATA[透明]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=286</guid>
		<description><![CDATA[我想大家在工作或者学习的时候也同样会遇到这样的问题。就是这个讨厌的透明度继承的问题，具体问题表现就是，当我们给外面的父容器设置的透明的时候，厘米那包括的子容器也就继承的父容器的透明度。
     其实办法也有几种，下面就是说一下其中的两个解决办法：
1.  如果是IE浏览器，就可以给子容器添加一个相对定位来解决，也就是：position:relative;如果是火狐firefox等就可以使用png：background:url(images/png.png);
然后单独设置IE的背景：*background:#fff; （*号只有IE可识别）
2.其实第二种办法也是见到的用的最多大的，首先，设置3个容器，让需要透明的容器和不透明容器保持兄弟关系。然后，通过父容器控制大小让两个兄弟容器通过定位保持一个看似父子的排列方式。这样就另辟蹊径的解决了这个问题。
    可能还有其他的更好的办法，也希望大家一起来研究。
]]></description>
			<content:encoded><![CDATA[<p>我想大家在工作或者学习的时候也同样会遇到这样的问题。就是这个讨厌的透明度继承的问题，具体问题表现就是，当我们给外面的父容器设置的透明的时候，厘米那包括的子容器也就继承的父容器的透明度。<br />
     其实办法也有几种，下面就是说一下其中的两个解决办法：<br />
1.  如果是IE浏览器，就可以给子容器添加一个相对定位来解决，也就是：position:relative;如果是火狐firefox等就可以使用png：background:url(images/png.png);<br />
然后单独设置IE的背景：*background:#fff; （*号只有IE可识别）<br />
2.其实第二种办法也是见到的用的最多大的，首先，设置3个容器，让需要透明的容器和不透明容器保持兄弟关系。然后，通过父容器控制大小让两个兄弟容器通过定位保持一个看似父子的排列方式。这样就另辟蹊径的解决了这个问题。<br />
    可能还有其他的更好的办法，也希望大家一起来研究。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/286/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>去除链接元素的虚线框（兼容IE7、IE6、FF）</title>
		<link>http://www.52sonen.com/index.php/archives/226</link>
		<comments>http://www.52sonen.com/index.php/archives/226#comments</comments>
		<pubDate>Wed, 10 Dec 2008 15:13:47 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[虚线框]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=226</guid>
		<description><![CDATA[在浏览器里，鼠标点击时有虚线框，很影响美观。这里我们把它去掉，不说教，看代码！
[code]


function hscfsy(){
this.blur();
}
[/code]
把这个文件另存为***.htc即可。
HTML代码：
www.sonyes.cn
CSS样式：
[code]a {
　　display:block; 　　
    width:120px;
　　height:60px;
　　line-height:60px;
　　text-align:center;
}
a:hover {
　　background:#eee
}[/code]
在a标签的样式内加入一条，消除链接的虚线边框：
[code]a {
　　display:block;
　　width:100px;
　　height:30px;
　　line-height:30px;
　　text-align:center;
　　behavior:url(line.htc);
}[/code]
]]></description>
			<content:encoded><![CDATA[<p>在浏览器里，鼠标点击时有虚线框，很影响美观。这里我们把它去掉，不说教，看代码！</p>
<p>[code]
<public :attach event=&#34;onfocus&#34; onevent=&#34;hscfsy()&#34;/>
<script language=&#34;javascript&#34;>
function hscfsy(){
this.blur();
}
</script>[/code]<br />
把这个文件另存为***.htc即可。<br />
HTML代码：</p>
<blockquote><p><a href=&#34;#&#34; title=&#34;青蛙扑满&#34;>www.sonyes.cn</a></p></blockquote>
<p>CSS样式：<br />
[code]a {<br />
　　display:block; 　　<br />
    width:120px;<br />
　　height:60px;<br />
　　line-height:60px;<br />
　　text-align:center;<br />
}<br />
a:hover {<br />
　　background:#eee<br />
}[/code]</p>
<p>在a标签的样式内加入一条，消除链接的虚线边框：</p>
<p>[code]a {<br />
　　display:block;<br />
　　width:100px;<br />
　　height:30px;<br />
　　line-height:30px;<br />
　　text-align:center;<br />
　　behavior:url(line.htc);<br />
}[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/226/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>兼容火狐的超出文字加省略号</title>
		<link>http://www.52sonen.com/index.php/archives/220</link>
		<comments>http://www.52sonen.com/index.php/archives/220#comments</comments>
		<pubDate>Thu, 04 Dec 2008 14:15:44 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[火狐]]></category>
		<category><![CDATA[省略号]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=220</guid>
		<description><![CDATA[有时候很忙，不知道忙什么，可能就是大家说的瞎忙。
前段时间都在每篇日志前加一副表示心境的图片，后来由于各种原因，还是没坚持，有时候觉得没必要。
开始就啰嗦了这么多没用的，可能你都急了，快放代码啊！[Rhug]
嗯，也是，我也是百度谷歌雅虎的时候懒得看那些啰啰嗦嗦的说教，直接放出代码，在实践里总结学习，这样总比理论来的好很多！有啰嗦了[Belial]
< !DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;>




div{
width:200px;/*容器的基本定义*/
height:200px;
background-color:#eee; font-size:12px;
}
/* IE下的样式 */
p span{
display: block;
width:200px;/*对宽度的定义,根据情况修改*/
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}/* FF 下的样式 */
p{clear:both;}
p span{float:left;
max-width:174px;/*此处宽度自己定义*/
*max-width:200px;/*针对IE7的样式*/
}
p:after{
content:&#34;...&#34;;
}




青蛙扑满的个人池塘-网站开发者的乐园



千万的变化，不要直接复制到你的页面里，大概看看修改一下！别太懒了。。。
今天无意中在以前的收藏里看到另一个办法，MS比上面这个要好一些！也发上来吧
< !DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;>




body{font-size:13px;color:#8c966b;}
div{clear:both;width:340px;border:1px solid #333;margin:3px;padding:3px; height:20px;}
div a{color:#8c966b;text-decoration:none;}
div a:hover{text-decoration:underline;}
div a{display:block;width:310px;white-space:nowrap;overflow:hidden;float:left;
    -o-text-overflow: ellipsis;    /* for Opera */
    text-overflow:ellipsis;     [...]]]></description>
			<content:encoded><![CDATA[<p>有时候很忙，不知道忙什么，可能就是大家说的瞎忙。<br />
前段时间都在每篇日志前加一副表示心境的图片，后来由于各种原因，还是没坚持，有时候觉得没必要。</p>
<p>开始就啰嗦了这么多没用的，可能你都急了，快放代码啊！[Rhug]<br />
嗯，也是，我也是百度谷歌雅虎的时候懒得看那些啰啰嗦嗦的说教，直接放出代码，在实践里总结学习，这样总比理论来的好很多！有啰嗦了[Belial]</p>
<p>< !DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;><br />
<html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;><br />
<head><br />
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /></p>
<style>
div{
width:200px;/*容器的基本定义*/
height:200px;
background-color:#eee; font-size:12px;
}
/* IE下的样式 */
p span{
display: block;
width:200px;/*对宽度的定义,根据情况修改*/
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}/* FF 下的样式 */
p{clear:both;}
p span{float:left;
max-width:174px;/*此处宽度自己定义*/
*max-width:200px;/*针对IE7的样式*/
}
p:after{
content:&#34;...&#34;;
}
</style>
<p></head></p>
<p><body></p>
<div>
<p><span>青蛙扑满的个人池塘-网站开发者的乐园</span></p>
</div>
<p></body><br />
</html></p>
<p>千万的变化，不要直接复制到你的页面里，大概看看修改一下！别太懒了。。。</p>
<p>今天无意中在以前的收藏里看到另一个办法，MS比上面这个要好一些！也发上来吧<br />
< !DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;><br />
<html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;><br />
<head><br />
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /></p>
<style type=&#34;text/css&#34;>
body{font-size:13px;color:#8c966b;}
div{clear:both;width:340px;border:1px solid #333;margin:3px;padding:3px; height:20px;}
div a{color:#8c966b;text-decoration:none;}
div a:hover{text-decoration:underline;}</p>
<p>div a{display:block;width:310px;white-space:nowrap;overflow:hidden;float:left;
    -o-text-overflow: ellipsis;    /* for Opera */
    text-overflow:ellipsis;        /* for IE */
}
div:after{content:&#34;...&#34;;padding-left:3px;font-size:12px;}/* for Firefox */
</style>
<p></head></p>
<p><body></p>
<div><a href=&#34;&#34;>用css来实现自动截取文字，不需要后台程序和JS的使用</a></div>
<div><a href=&#34;&#34;>好处是：有利于内容完整性，有利于SEO，无需后台程序处理，可以在前台随时调节要截取的长度。</a></div>
<div><a href=&#34;&#34;>不好的地方：不能自动判断截取长度，当字符很短的时候在Firefox中也会生成后面的省略符号。</a></div>
<div><a href=&#34;&#34;>另外在设置截取宽度的时候，要注意，尽量让文字截取完整</a></div>
<div><a href=&#34;http://www.div-css.com&#34;>Web标准化 www.div-css.com</a></div>
<p></body><br />
</html></p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/220/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【firefox插件】Web Developer 1.1.6(最新版本，中文版)</title>
		<link>http://www.52sonen.com/index.php/archives/214</link>
		<comments>http://www.52sonen.com/index.php/archives/214#comments</comments>
		<pubDate>Sun, 23 Nov 2008 15:29:54 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[web developer]]></category>
		<category><![CDATA[web developer 1.16中文版]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=214</guid>
		<description><![CDATA[
仅次于Firebug的网页开发设计者工具。功能众多而且强劲。看着这令人眼花缭乱的插件设置窗口，就能一窥它的强大。推荐网页开发者和网页设计者使用，能够帮助你方便的对页面进行调整和完善;
Web 开发者扩展添加一个工具菜单项和一个工具栏到浏览器以提供各种各样的 Web 开发工具。这是一个对 web 开发人员非常有用的扩展，它可以高效的查看一个网页所包含的所有元素甚至更多，例如：
检查页面包含的所有 css 设定；
检查页面的所有 javascript；
调用 dom inspector 查看dom对象；
对改页面添加用户自定义的 css 文件（这样你可以一次用自己不同版本或主题的 css 文件来检查不同的 layout 情况，而完全不需要在多个页面版本之间切换）；
过滤图片，可以设定隐藏图片，标注没有 alt 标签或者没有 title 标签的图片，以确定你的页面是否更加符合 WAI 的要求；
Resize 网页浏览区域大小，以便于确定在不同分辨率情况下的页面 layout 情况；
可以调用几乎所有的标准化校验器, 包括 css, html, wai, link 等校验器，这样能够非常高效的进行标准化校验而不需要在几个不同的校验器之间烦人的切来切去；
多种概要（outline）功能，比如 outline 区块，outline 不推荐使用的标签，outline 标记表格等等；
仪表板信息显示功能，可以方便的定位在左边, 右边或底部来显示各种信息;　　
还有标尺、十字引导线、页面放大镜、显示隐藏元素等等 &#8230;..。
你只要逐个使用菜单或工具栏每一个主要功能按钮，都会让你有不少的惊喜。把这么多有用的特性集成在一起，可以大大提高开发的效率，而且让你对你的页面会有一个更全面地特性概览。
Web Developer 1.1.6下载：https://addons.mozilla.org/zh-CN/firefox/addon/60
如果你和我一样是个E文盲，那么点这里下载Web Developer 1.1.6中文版：http://www.rayfile.com/files/65b90f87-4c1e-11dd-94c6-00142218fc6e/
Web Developer 1.1.6中文版说明：
因为下午要用，然后现在用了Firefox 3.0 旧的1.1.4的版本用不上，去找了一下，有1.1.6但官网上现在只有英文版的，我就用1.1.4的资源文件拉进去替换掉，试用还OK，发给大家共享一下，
]]></description>
			<content:encoded><![CDATA[<div align="center"><img src="attachments/month_0811/d20081123232919.jpg" border="0" alt=""/></div>
<p>仅次于Firebug的网页开发设计者工具。功能众多而且强劲。看着这令人眼花缭乱的插件设置窗口，就能一窥它的强大。推荐网页开发者和网页设计者使用，能够帮助你方便的对页面进行调整和完善;<br />
Web 开发者扩展添加一个工具菜单项和一个工具栏到浏览器以提供各种各样的 Web 开发工具。这是一个对 web 开发人员非常有用的扩展，它可以高效的查看一个网页所包含的所有元素甚至更多，例如：<br />
检查页面包含的所有 css 设定；<br />
检查页面的所有 javascript；<br />
调用 dom inspector 查看dom对象；<br />
对改页面添加用户自定义的 css 文件（这样你可以一次用自己不同版本或主题的 css 文件来检查不同的 layout 情况，而完全不需要在多个页面版本之间切换）；<br />
过滤图片，可以设定隐藏图片，标注没有 alt 标签或者没有 title 标签的图片，以确定你的页面是否更加符合 WAI 的要求；<br />
Resize 网页浏览区域大小，以便于确定在不同分辨率情况下的页面 layout 情况；<br />
可以调用几乎所有的标准化校验器, 包括 css, html, wai, link 等校验器，这样能够非常高效的进行标准化校验而不需要在几个不同的校验器之间烦人的切来切去；<br />
多种概要（outline）功能，比如 outline 区块，outline 不推荐使用的标签，outline 标记表格等等；<br />
仪表板信息显示功能，可以方便的定位在左边, 右边或底部来显示各种信息;　　<br />
还有标尺、十字引导线、页面放大镜、显示隐藏元素等等 &#8230;..。<br />
你只要逐个使用菜单或工具栏每一个主要功能按钮，都会让你有不少的惊喜。把这么多有用的特性集成在一起，可以大大提高开发的效率，而且让你对你的页面会有一个更全面地特性概览。</p>
<p>Web Developer 1.1.6下载：https://addons.mozilla.org/zh-CN/firefox/addon/60</p>
<p>如果你和我一样是个E文盲，那么点这里下载Web Developer 1.1.6中文版：http://www.rayfile.com/files/65b90f87-4c1e-11dd-94c6-00142218fc6e/</p>
<p>Web Developer 1.1.6中文版说明：<br />
因为下午要用，然后现在用了Firefox 3.0 旧的1.1.4的版本用不上，去找了一下，有1.1.6但官网上现在只有英文版的，我就用1.1.4的资源文件拉进去替换掉，试用还OK，发给大家共享一下，</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/214/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>火狐浏览器CSS兼容的解决方法</title>
		<link>http://www.52sonen.com/index.php/archives/182</link>
		<comments>http://www.52sonen.com/index.php/archives/182#comments</comments>
		<pubDate>Sat, 27 Sep 2008 02:30:20 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[浏览器兼容]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=182</guid>
		<description><![CDATA[来源：firefox官方网
1.DOCTYPE 影响 CSS 处理
2.FF: div 设置 margin-left, margin-right 为 auto 时已经居中, IE 不行
3.FF: body 设置 text-align 时, div 需要设置 margin: auto(主要是 margin-left,margin-right) 方可居中
4.FF: 设置 padding 后, div 会增加 height 和 width, 但 IE 不会, 故需要用 !important 多设一个 height 和 width
5.FF: 支持 !important, IE 则忽略, 可用 !important 为 FF 特别设置样式
6.div 的垂直居中问题: vertical-align:middle; 将行距增加到和整个DIV一样高 line-height:200px; 然后插入文字，就垂直居中了。缺点是要控制内容不要换行
7.cursor: pointer [...]]]></description>
			<content:encoded><![CDATA[<p>来源：firefox官方网</p>
<p>1.DOCTYPE 影响 CSS 处理</p>
<p>2.FF: div 设置 margin-left, margin-right 为 auto 时已经居中, IE 不行</p>
<p>3.FF: body 设置 text-align 时, div 需要设置 margin: auto(主要是 margin-left,margin-right) 方可居中</p>
<p>4.FF: 设置 padding 后, div 会增加 height 和 width, 但 IE 不会, 故需要用 !important 多设一个 height 和 width</p>
<p>5.FF: 支持 !important, IE 则忽略, 可用 !important 为 FF 特别设置样式</p>
<p>6.div 的垂直居中问题: vertical-align:middle; 将行距增加到和整个DIV一样高 line-height:200px; 然后插入文字，就垂直居中了。缺点是要控制内容不要换行</p>
<p>7.cursor: pointer 可以同时在 IE FF 中显示游标手指状， hand 仅 IE 可以</p>
<p>8.FF: 链接加边框和背景色，需设置 display: block, 同时设置 float: left 保证不换行。参照 menubar, 给 a 和 menubar 设置高度是为了避免底边显示错位, 若不设 height, 可以在 menubar 中插入一个空格。</p>
<p>9.在 mozilla firefox和IE中的BOX模型解释不一致导致相差2px解决方法： div{margin:30px!important;margin:28px;}注意这两个margin的顺序一定不能写反，据阿捷的说法! important这个属性IE不能识别，但别的浏览器可以识别。所以在IE下其实解释成这样： div{maring:30px;margin:28px}重复定义的话按照最后一个来执行，所以不可以只写margin:XXpx! important;</p>
<p>11.ul标签在Mozilla中默认是有padding值的,而在IE中只有margin有值所以先定义 ul{margin:0;padding:0;}就能解决大部分问题</p>
<p>注意事项：</p>
<p>1、float的div一定要闭合。</p>
<p>例如：(其中floatA、floatB的属性已经设置为float:left;) < #div id=”floatA” ><br />
< #div id=”floatB” ><br />
< #div id=”NOTfloatC” >这里的NOTfloatC并不希望继续平移，而是希望往下排。<br />
这段代码在IE中毫无问题，问题出在FF。原因是NOTfloatC并非float标签，必须将float标签闭合。<br />
在 < #div class=”floatB”><br />
< #div class=”NOTfloatC”>之间加上 < #div class=”clear”>这个div一定要注意声明位置，一定要放在最恰当的地方，而且必须与两个具有float属性的div同级，之间不能存在嵌套关系，否则会产生异常。<br />
并且将clear这种样式定义为为如下即可： .clear{<br />
clear:both;}此外，为了让高度能自动适应，要在wrapper里面加上overflow:hidden;<br />
当包含float的box的时候，高度自动适应在IE下无效，这时候应该触发IE的layout私有属性(万恶的IE啊！)用zoom:1;可以做到，这样就达到了兼容。<br />
例如某一个wrapper如下定义： .colwrapper{<br />
overflow:hidden;<br />
zoom:1;<br />
margin:5px auto;}</p>
<p>2、margin加倍的问题</p>
<p>设置为float的div在ie下设置的margin会加倍。这是一个ie6都存在的bug。<br />
解决方案是在这个div里面加上display:inline;<br />
例如：<br />
< #div id=”imfloat”><br />
相应的css为<br />
#IamFloat{<br />
float:left;<br />
margin:5px;/*IE下理解为10px*/<br />
display:inline;/*IE下再理解为5px*/}</p>
<p>3、关于容器的包涵关系</p>
<p>很多时候，尤其是容器内有平行布局，例如两、三个float的div时，宽度很容易出现问题。在IE中，外层的宽度会被内层更宽的div挤破。一定要用Photoshop或者Firework量取像素级的精度。</p>
<p>4、关于高度的问题</p>
<p>如果是动态地添加内容，高度最好不要定义。浏览器可以自动伸缩，然而如果是静态的内容，高度最好定好。（似乎有时候不会自动往下撑开，不知道具体怎么回事）</p>
<p>5、最狠的手段 &#8211; !important;</p>
<p>如果实在没有办法解决一些细节问题,可以用这个方法.FF对于”!important”会自动优先解析,然而IE则会忽略.如下 .tabd1{<br />
background:url(/res/images/up/tab1.gif) no-repeat 0px 0px !important; /*Style for FF*/<br />
background:url(/res/images/up/tab1.gif) no-repeat 1px 0px; /* Style for IE */}值得注意的是，一定要将xxxx !important 这句放置在另一句之上，上面已经提过</p>
<p>IE7.0出来了，对CSS的支持又有新问题。浏览器多了，网页兼容性更差了，疲于奔命的还是我们，为解决IE7.0的兼容问题，找来了下面这篇文章：</p>
<p>现在我大部分都是用!important来hack，对于ie6和firefox测试可以正常显示，但是ie7对!important可以正确解释，会导致页面没按要求显示！搜索了一下，找到一个针对IE7不错的hack方式就是使用“*+html”，现在用IE7浏览一下，应该没有问题了。</p>
<p>现在写一个CSS可以这样：<br />
#example { color: #333; } /* Moz */<br />
* html #example { color: #666; } /* IE6 */<br />
*+html #example { color: #999; } /* IE7 */</p>
<p>那么在firefox下字体颜色显示为#333，IE6下字体颜色显示为#666，IE7下字体颜色显示为#999.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/182/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>min-height最小高度的实现（兼容IE6、IE7、FF）</title>
		<link>http://www.52sonen.com/index.php/archives/160</link>
		<comments>http://www.52sonen.com/index.php/archives/160#comments</comments>
		<pubDate>Sun, 03 Aug 2008 07:53:59 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[min-height]]></category>
		<category><![CDATA[最小高度]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=160</guid>
		<description><![CDATA[CSS的兼容性问题一直令CSSer头疼，最小高度min-height是一个非常有用的属性，在页面布局中的很多地方可以用到。在52CSS.com的一些实例布局中也有涉及。
　　当容器的内容较少时，能保持一个最小的高度，以免破坏了布局或UI设计效果。而当容器内的内容增加的时候，容器能够自动的伸展以适应内容的变化。
　　min-height属性并非所有浏览器都兼容，主要问题还是出现在IE6，这个不支持标准的浏览器偏偏占据很大的用户群体，虽然IE7发布很久了，IE8正式版也快发布了，但IE6依然有着众多的用户。实在让CSSer非常无奈。
　E6对于overflow的特殊实现，给我们实现min-height提供了一个思路，所以产生了以下兼容IE6、IE7、FF浏览器的min-height写法：

#mrjin {
background:#ccc;
min-height:100px;
height:auto !important;
height:100px;
overflow:visible;
}

　我们查看最终的运行效果，您可以编辑内容后再运行，以便查看内容少与内容多时出现的变化。
]]></description>
			<content:encoded><![CDATA[<p>CSS的兼容性问题一直令CSSer头疼，最小高度min-height是一个非常有用的属性，在页面布局中的很多地方可以用到。在52CSS.com的一些实例布局中也有涉及。</p>
<p>　　当容器的内容较少时，能保持一个最小的高度，以免破坏了布局或UI设计效果。而当容器内的内容增加的时候，容器能够自动的伸展以适应内容的变化。<br />
　　min-height属性并非所有浏览器都兼容，主要问题还是出现在IE6，这个不支持标准的浏览器偏偏占据很大的用户群体，虽然IE7发布很久了，IE8正式版也快发布了，但IE6依然有着众多的用户。实在让CSSer非常无奈。<br />
　E6对于overflow的特殊实现，给我们实现min-height提供了一个思路，所以产生了以下兼容IE6、IE7、FF浏览器的min-height写法：</p>
<blockquote><p>
#mrjin {<br />
background:#ccc;<br />
min-height:100px;<br />
height:auto !important;<br />
height:100px;<br />
overflow:visible;<br />
}
</p></blockquote>
<p>　我们查看最终的运行效果，您可以编辑内容后再运行，以便查看内容少与内容多时出现的变化。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/160/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox下 透明Flash热点丢失的 bug</title>
		<link>http://www.52sonen.com/index.php/archives/122</link>
		<comments>http://www.52sonen.com/index.php/archives/122#comments</comments>
		<pubDate>Fri, 14 Mar 2008 03:38:02 +0000</pubDate>
		<dc:creator>Frog</dc:creator>
				<category><![CDATA[Xhtml]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[透明FLASH失去焦点]]></category>

		<guid isPermaLink="false">http://www.52sonen.com/?p=122</guid>
		<description><![CDATA[Firefox下打开Qzone的导航的按钮焦点就无法点击，经过调试发现，三种情况混在一起使用的时候透明的flash导航的链接就出现异常了。
1. margin 设置了0px (一般的dom都默认是0)
2. overflow设置了 hidden, auto, scroll 其中一个
3. flash是设置了透明
[html]



body{margin:0px; }
#mbody{overflow-x:hidden;overflow-y:scroll;height:100% }




 
[/html]
解决方案给设置了overflow的dom设置非0像素的margin,例如 margin:0.1px
]]></description>
			<content:encoded><![CDATA[<p>Firefox下打开Qzone的导航的按钮焦点就无法点击，经过调试发现，三种情况混在一起使用的时候透明的flash导航的链接就出现异常了。</p>
<p>1. margin 设置了0px (一般的dom都默认是0)<br />
2. overflow设置了 hidden, auto, scroll 其中一个<br />
3. flash是设置了透明</p>
<p>[html]<br />
<html><br />
<head><br />
<meta content=&#34;text/html;charset=gb2312&#34; http-equiv=&#34;Content-Type&#34;/></p>
<style>body{margin:0px; }
#mbody{overflow-x:hidden;overflow-y:scroll;height:100% }
</style>
<p></head><br />
<body id=&#34;cbody&#34;></p>
<div id=&#34;mbody&#34;>
 <embed width=&#34;500&#34; height=&#34;31&#34; type=&#34;application/x-shockwave-flash&#34;pluginspage=&#34;http://www.macromedia.com/go/getflashplayer&#34;srcelement=&#34;undefined&#34; style=&#34;margin-top: 14px;&#34; allowscriptaccess=&#34;always&#34;flashvars=&#39;xml_path=http://imgcache.qq.com/qzone/client/custom_menu/custom_menu_club.xml&amp;json_str=[{&#34;name&#34;:&#34;  &#34;,&#34;href&#34;:&#34;1&#34;},{&#34;name&#34;:&#34;  &#34;,&#34;href&#34;:&#34;2&#34;},{&#34;name&#34;:&#34;&#34;,&#34;href&#34;:&#34;3&#34;},{&#34;name&#34;:&#34;&#34;,&#34;href&#34;:&#34;4&#34;},{&#34;name&#34;:&#34;  &#34;,&#34;href&#34;:&#34;5&#34;},{&#34;name&#34;:&#34;&#34;,&#34;href&#34;:&#34;6&#34;},{&#34;name&#34;:&#34;&#34;,&#34;href&#34;:&#34;7&#34;},{&#34;name&#34;:&#34;&#34;,&#34;href&#34;:&#34;8&#34;},{&#34;name&#34;:&#34;Club&#34;,&#34;href&#34;:&#34;11&#34;}]&#39; scale=&#34;noScale&#34; wmode=&#34;transparent&#34; salign=&#34;TL&#34; quality=&#34;high&#34; src=&#34;http://imgcache.qq.com/qzone_v4/2/default_menu_horizontal.swf&#34; id=&#34;custom_menu&#34;/></div>
<p></body></html>[/html]<br />
解决方案给设置了overflow的dom设置非0像素的margin,例如 margin:0.1px</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52sonen.com/index.php/archives/122/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
