<?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>web集结号 &#187; web2.0</title>
	<atom:link href="http://www.songlecn.com/tag/web20/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.songlecn.com</link>
	<description>专注于web表现层技术</description>
	<lastBuildDate>Wed, 04 Nov 2009 02:46:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>web2.0网页设计常用png小图标素材</title>
		<link>http://www.songlecn.com/2009/04/793/</link>
		<comments>http://www.songlecn.com/2009/04/793/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 02:18:49 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[图片图标]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[小图标]]></category>
		<category><![CDATA[素材]]></category>
		<category><![CDATA[网页设计]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=793</guid>
		<description><![CDATA[web2.0网页设计常用png小图标素材，共400个，为透明文件png文件，预览图：]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/04/793/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>web2.0风格文件夹图标png</title>
		<link>http://www.songlecn.com/2009/04/700/</link>
		<comments>http://www.songlecn.com/2009/04/700/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 02:18:17 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[图片图标]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[图标]]></category>
		<category><![CDATA[文件夹]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=700</guid>
		<description><![CDATA[web2.0风格文件夹图标png，共有4个，尺寸为512&#215;512的透明PNG图片，预览图：]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/04/700/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>web2.0风格文件夹图标png</title>
		<link>http://www.songlecn.com/2009/03/621/</link>
		<comments>http://www.songlecn.com/2009/03/621/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 02:41:44 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[图片图标]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[图标]]></category>
		<category><![CDATA[文件夹]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=621</guid>
		<description><![CDATA[web2.0风格文件夹图标png，共有4个，尺寸为512&#215;512的透明PNG图片，预览图：]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/03/621/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>卷页风格Blog web 2.0应用按钮图标png</title>
		<link>http://www.songlecn.com/2009/02/357/</link>
		<comments>http://www.songlecn.com/2009/02/357/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 04:11:46 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[图片图标]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[rss订阅]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[web2.0图标]]></category>
		<category><![CDATA[youtube]]></category>
		<category><![CDATA[图标]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=357</guid>
		<description><![CDATA[卷页风格Blog web 2.0应用按钮图标png，共有25个，尺寸为71&#215;70的透明PNG图片，预览图：]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/357/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>圆形流行的web2.0网站logo图标png</title>
		<link>http://www.songlecn.com/2009/02/352/</link>
		<comments>http://www.songlecn.com/2009/02/352/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 08:01:52 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[图片图标]]></category>
		<category><![CDATA[png图标]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[网站logo]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=352</guid>
		<description><![CDATA[圆形流行的web2.0网站logo图标png,共有8个，尺寸为128&#215;128,48&#215;48,32&#215;32,16&#215;16的透明PNG图片，预览：]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/352/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>瓶盖主题web2.0应用图标</title>
		<link>http://www.songlecn.com/2009/02/307/</link>
		<comments>http://www.songlecn.com/2009/02/307/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 01:56:44 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[图片图标]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[图标]]></category>
		<category><![CDATA[瓶盖主题]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=307</guid>
		<description><![CDATA[瓶盖主题web2.0应用图标，收集自zcool，16，32，64尺寸的都有，看看效果吧：]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/307/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7的web标准之道9：疯了的边框线</title>
		<link>http://www.songlecn.com/2009/02/169/</link>
		<comments>http://www.songlecn.com/2009/02/169/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 02:42:20 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[web标准]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/2009/02/169/</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>IE7的web标准之道 IE历来被web标准的拥护者所诟病，而当FireFox横空出世以后，更多的网页制作者开始关注web标准设计。看着FireFox的市场占有率不停的上升，微软终于推出了IE7。但IE7是否真的能够力挽狂澜，是否真的能够得到用户的信任，是否真的能够得到网页设计者的认可呢？ 且看《IE7的web标准之道》系列文章，和你一起见证IE7的改变！ 前言 非常惭愧和内疚，无论是《阿一web标准学堂》还是《IE7的web标准之道》，都已经很长时间没有写新的文章了。并不是没有东西可以写，只是…… 哎，真是很对不起那些关注我博客的朋友们。没更新博客的理由有很多——“工作太忙”、“没时间”、“这事那事”、“朋友帮忙”……但是最重要的原因还是——“懒”！有神语曰：时间就像乳沟，只要挤，总会有的！但是现在的自己却连“乳沟”都懒的挤。哎～～惭愧、惭愧！ 《阿一web标准学堂》第四课：HTML和CSS基础知识（1）的ppt和相关资料也已经整理好了，周末的时候抽空录下视频，争取星期一放出来。从这堂课会开始，《阿一web标准学堂》会比较系统的从头开始讲解一些基础知识，其中这堂课会讲到“诡异模式”和“标准模式”（Quirks mode和Standards mode），有兴趣的朋友可以星期一的时候关注一下我的博客更新。 好了，没用的话就讲到这里吧，下面开始讲今天的正文—— 边框线疯了！ 为了能给大家带来比较直观的印象和冲击力，所以决定先把最终效果图给大家看看。结构其实很简单，就是一个大的div（#divInner：3px红色边框）里面，套两个小的div(#testDiv1和#testDiv2)，然后再在最外面套了一个最大的div（#divOuter：5px绿色边框）。其实最外面的那个#divOuter不是必须的，只是为了突出视觉效果而已。先看看在IE7中的正常表现—— 一个非常简单的结构在IE7中正常的表现 靠！在IE6中，边框线这孩子疯了！ IE6和IE7显示效果对比图 如此简单的结构在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;meta name=&#34;Keywords&#34; content=&#34;YES!B/S!,web标准,杨正祎,博客园,实例代码&#34; /&#62; &#60;meta name=&#34;Description&#34; content=&#34;这是一个简单YES!B/S!文章示例页面,来自杨正祎的博客,http://justinyoung.cnblogs.com/&#34; /&#62; &#60;title&#62;YES!B/S!文章示例页面&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; .divOuter {/*其实divOuter不是必须的，这里纯粹是为了提升视觉冲击力，你完全可以将其去掉*/ border:5px dashed green; padding:10px; } .divInner { border:3px [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/169/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7的web标准之道8：躲猫猫bug</title>
		<link>http://www.songlecn.com/2009/02/168/</link>
		<comments>http://www.songlecn.com/2009/02/168/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 02:32:50 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[web标准]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/2009/02/168/</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>IE7的web标准之道 IE历来被web标准的拥护者所诟病，而当FireFox横空出世以后，更多的网页制作者开始关注web标准设计。看着FireFox的市场占有率不停的上升，微软终于推出了IE7。但IE7是否真的能够力挽狂澜，是否真的能够得到用户的信任，是否真的能够得到网页设计者的认可呢？ 且看《IE7的web标准之道》系列文章，和你一起见证IE7的改变！ 躲猫猫，你来找我呀！ 在上一篇文章中，我们曾经提到过这个bug，它的著名来源于它所表现出来的诡异现象。虽然今天是4月1日，但是这些都是真实的。为了大家能够进一步的记住这个诡异的bug，这里我将改变以往的写作方式，而是首先将现象演示给大家看。为了更好的表现出效果，这次我采用了flash的记录方式，点击这个图标 即可看到flash映像。如果，你的浏览器不支持flash播放，请你直接下载flash文件，采用其他软件查看，给你带来不便，请谅解。 IE6躲猫猫bug效果截图（点击图片查看完整大图） 原来那儿有字呀！ 如果只看上面的效果截图图片，你可能感觉有些纳闷。这是什么呀？不就是一个普通的没啥字的网页吗，没啥了不起的呀。但是当你看到这个网页的源码的时候，也许就会感到惊讶了—— &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;&#60;meta content=&#34;YES!B/S!,web标准,杨正祎,博客园,实例代码&#34; name=&#34;Keywords&#34; /&#62;&#60;meta content=&#34;这是一个简单YES!B/S!文章示例页面,来自杨正祎的博客,http://justinyoung.cnblogs.com/&#34; name=&#34;Description&#34; /&#62;&#60;style type=&#34;text/css&#34;&#62; #holder{ background-color:pink; /***引起bug的重要因素，一种解释就是：那些消失的文字躲到了背景之后***/ /*** width:100%; 对最大的容器设置宽度，相对宽度和绝对宽度都可以，即可修正bug ***/ } #holder a:hover{ background-color:deeppink; /***为了增强视觉效果而已，可以去掉。***/ } #floater{ float:right; /***引起bug的重要因素***/ width:135px; height:310px; /***引起bug的重要因素，高度一定要大于那些文字的高度***/ border:1px solid green; } .clear{ clear:both; /***引起bug的重要因素***/ } #footer{ /***为了增强视觉效果而已，可以去掉。***/ height:50px; border-top:1px solid blue; }&#60;/style&#62; [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/168/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7的web标准之道6：置换元素与行距bug</title>
		<link>http://www.songlecn.com/2009/02/152/</link>
		<comments>http://www.songlecn.com/2009/02/152/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 02:31:54 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[web标准]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/2009/02/152/</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>IE7的web标准之道 IE历来被web标准的拥护者所诟病，而当FireFox横空出世以后，更多的网页制作者开始关注web标准设计。看着FireFox的市场占有率不停的上升，微软终于推出了IE7。但IE7是否真的能够力挽狂澜，是否真的能够得到用户的信任，是否真的能够得到网页设计者的认可呢？ 且看《IE7的web标准之道》系列文章，和你一起见证IE7的改变！ 互联网上没有邮局！ 看看下面这幅图，感觉是不是很亲切呢？有种“信纸”的感觉吧。其实这种感觉真的很不错哦，很怀旧、很小资的味道（突然想起以前我写的那些情书了^_^）。但是，你游遍互联网，便会发现，很少有模拟信纸布局的网页。这到底是为什么呢？难道是大家都没有想到吗？难道是大家真的已经把“信”这种东西忘记了？还是因为互联网上没有邮局来寄出这些信件呢？ 模拟信纸的网页 其实都不是，不是没有人想到，也不是没有人愿意用，而是被一种“虫”咬怕了。而这只“虫”就是我们今天要讲的——“置换元素与行距bug”。 臭虫显身！ 这里有两个测试用的示例页面。第一个是文章主体没有包含置换元素（replaced element）， bug不会作怪的例子。而第二个是文章主体中包含了置换元素（示例中为&#60;img&#62;）时，bug在IE6浏览器下会作怪的例子。 在举例之前，先让我们了解一下，什么是置换元素（replaced element）—— “An element for which the CSS formatter knows only the intrinsic dimensions. In HTML, IMG, INPUT, TEXTAREA, SELECT, and OBJECT elements can be examples of replaced elements. For example, the content of the IMG element is often replaced by the image that [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/152/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7的web标准之道5：上去了！终于上去了！</title>
		<link>http://www.songlecn.com/2009/02/136/</link>
		<comments>http://www.songlecn.com/2009/02/136/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 02:09:47 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[web标准]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=136</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>IE7的web标准之道 IE历来被web标准的拥护者所诟病，而当FireFox横空出世以后，更多的网页制作者开始关注web标准设计。看着FireFox的市场占有率不停的上升，微软终于推出了IE7。但IE7是否真的能够力挽狂澜，是否真的能够得到用户的信任，是否真的能够得到网页设计者的认可呢？ 且看《IE7的web标准之道》系列文章，和你一起见证IE7的改变！ select对div说：“小样！就踩着你！” 这个IE6一个很著名且诡异的bug，很简单，也很容易重现，说白了就是：列表框（select）一直把div踩在脚底下。因为这个bug，不知道多少浮动菜单被破坏。下面就模拟了这种情景，你可以运行代码来查看示例页面—— &#60;!--CTYPE html public &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt--&#62; &#60;!-- #divMenu{ border:1px solid red; width:150px; } #divUp{ position:absolute; background-color:red; width:100; height:100px; display:none; } --&#62; &#60;div id=&#34;divMenu&#34; onmouseover=&#34;showMenu();&#34; onmouseout=&#34;hideMenu();&#34;&#62;这个是菜单哦&#60;/div&#62; &#60;div id=&#34;divUp&#34; onmouseover=&#34;showMenu();&#34; onmouseout=&#34;hideMenu();&#34;&#62;&#60;a title=&#34;博客园&#34; href=&#34;http://www.cnblogs.com&#34; target=&#34;_blank&#34;&#62;博客园&#60;/a&#62;&#60;/div&#62; &#60;a title=&#34;YES！B/S!&#34; href=&#34;http://justinyoung.cnblogs.com/&#34; target=&#34;_blank&#34;&#62;YES！B/S!博客&#60;/a&#62; &#60;a title=&#34;web标准小组&#34; href=&#34;http://space.cnblogs.com/w3c/&#34; target=&#34;_blank&#34;&#62;【web标准小组】&#60;/a&#62;   &#60;select id=&#34;ddlTest&#34; multiple=&#34;65535&#34; size=&#34;0&#34;&#62; &#60;option&#62;下拉列表项1&#60;/option&#62; &#60;option&#62;下拉列表项2&#60;/option&#62; &#60;option&#62;下拉列表项3&#60;/option&#62; [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/136/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7的web标准之道4：歌剧院魅影bug</title>
		<link>http://www.songlecn.com/2009/02/135/</link>
		<comments>http://www.songlecn.com/2009/02/135/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 02:05:24 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[web标准]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=135</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>IE7的web标准之道 IE历来被web标准的拥护者所诟病，而当FireFox横空出世以后，更多的网页制作者开始关注web标准设计。看着FireFox的市场占有率不停的上升，微软终于推出了IE7。但IE7是否真的能够力挽狂澜，是否真的能够得到用户的信任，是否真的能够得到网页设计者的认可呢？ 且看《IE7的web标准之道》系列文章，和你一起见证IE7的改变！ 打倒标题党 估计很多的朋友都是因为这个华丽的“歌剧院魅影”一词进来的。其实这纯粹是一个标题党作为，纯粹是吸引眼球而已。其实这个bug和歌剧院半毛钱关系都没有。这个bug在国际上比较获得认可的名字叫做——“IE6重复文字bug”。这是一个非常好玩但是有很令人摸不到头脑的bug。如果，你不知道产生原因的话，将会令人非常头痛。这也是我在现实工作中真正遇到过的情况。这篇文章记载了当时我惊讶而不可奈何的心情——《Ghost in IE6.web标准网页IE6中的幽灵》 魅影再现 在IE6浏览器下运行下面的代码，便可以重现bug。IE7已经修正了此bug。 &#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;meta name=&#34;Keywords&#34; content=&#34;YES!B/S!,web标准,杨正祎,博客园,实例代码&#34; /&#62; &#60;meta name=&#34;Description&#34; content=&#34;这是一个简单YES!B/S!文章示例页面,来自杨正祎的博客,http://justinyoung.cnblogs.com/&#34; /&#62; &#60;title&#62;YES!B/S!文章示例页面&#60;/title&#62; &#60;/head&#62; &#60;body&#62; &#60;div style=&#34;width:200px;&#34;&#62; &#60;div style=&#34;float:left;&#34;&#62;&#60;/div&#62; &#60;!-- 如果是IE6，你将多看到一个&#38;#8220;影&#38;#8221;字 --&#62; &#60;div style=&#34;float:left;width:200px;&#34;&#62;歌剧院的魅影&#60;/div&#62; &#60;/div&#62; &#60;/body&#62; &#60;/html&#62;   提示：你可以先修改部分代码再运行。 下面是上面测试页面分别在IE6，IE7，FireFox（版本2.0.0，12）和Oepra（版本9.25）中的显示效果截图（IE6和IE7共存的方法，可以参考文章《IE6和IE7共存方法（别人是别人的，我是我的）》）。 “歌剧院魅影bug”重现页面截图，注意IE6中鼠标所指位置 通过截图，你会惊讶的看到在IE6中，多出了一个“影”字。下面来讲讲出现这个“影”字的一些条件（bug重现条件）—— 一个容器包含2两个具有“float”样式的子容器。 第二个容器的宽度大于父容器的宽度，或者父容器宽度减去第二个容器宽度的值小于3。（说到3，这里稍微多说一句——IE7还修正了IE6中的一个bug，bug名字就叫做“3像素bug”） [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/135/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7的web标准之道3：引起页面布局混乱的祸首</title>
		<link>http://www.songlecn.com/2009/02/133/</link>
		<comments>http://www.songlecn.com/2009/02/133/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 14:33:30 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[web标准]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=133</guid>
		<description><![CDATA[IE7的web标准之道 IE历来被web标准的拥护者所诟病，而当FireFox横空出世以后，更多的网页制作者开始关注web标准设计。看着FireFox的市场占有率不停的上升，微软终于推出了IE7。但IE7是否真的能够力挽狂澜，是否真的能够得到用户的信任，是否真的能够得到网页设计者的认可呢？ 且看《IE7的web标准之道》系列文章，和你一起见证IE7的改变！ 前言 现在，最令网页设计者头痛的问题就是网页在各个浏览器中的兼容性。而兼容性差最长见的，也是最令人恐惧的便是“页面布局混乱”。常常一个页面在IE6下显示的非常完美，而到了IE7（或者FireFox）中，则惨的“不堪入目”。到底是什么让这些页面那么的“水土不服”呢？ 其实，这些都是IE6酿下的恶果，IE6对web标准的支持过于不足，甚至理解的有偏差，才导致了这些页面的“脆弱”。而IE7则修正了很多的那种“IE6对css解释和渲染”的bug。这种bug有很多。今天，这里只讲其中一个，但是确是最重要的一个，很多的“十分”混乱的页面都是它造成的。可以不客气地说，它简直就像“页面布局混乱黑帮”的幕后黑手，是引起页面布局混乱的祸首之一，而且是最大的一个。 它就是潜伏在网页背后的“‘overflow:visible’IE6渲染bug”。 “不堪入目”的网页截图 如果只是简单的说“‘overflow:visible’IE6渲染bug”，你可能完全没有印象。但是看看下面的这些“不堪入目”的网页截图，便能引起你心中那无限的伤感…… 图：这是在IE6中显示的效果截图，“十分完美”(点击查看完整大图) 展开这里，查看在IE7中显示的效果截图 这是在IE7中显示的“不堪入目”的效果截图（点击查看完整大图） 上面的两张截图，是我2007年在高达软件公司的真实项目截图。可以看出，在IE7下的显示已经严重变形，虽然不影响软件的功能使用，但是已经严重的影响了用户的使用体验(没有人喜欢拖动横向滚动条)。 再看看下面的这个网页截图，它是我们今天将要使用的例子(源代码在下方有提供)，是一个标准的“上左右下”带侧边栏的虚拟网页。 展开这里，查看、运行、保存【虚拟示例网页源代码】 &#60;!DOCTYPE html public &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&#62; &#60;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&#62; &#60;head&#62; &#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243; /&#62; &#60;meta name=&#8221;Keywords&#8221; content=&#8221;YES!B/S!,web标准,杨正祎,博客园,实例代码&#8221; /&#62; &#60;meta name=&#8221;Description&#8221; content=&#8221;这是一个简单YES!B/S!文章示例页面,来自杨正祎的博客,http://justinyoung.cnblogs.com/&#8221; /&#62; &#60;title&#62;YES!B/S!文章示例页面&#60;/title&#62; &#60;style&#62; body { margin: 0; padding: 0; } #header { width: 600px; height: 50px; background-color: [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/133/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7的web标准之道2：更丰富的CSS选择符</title>
		<link>http://www.songlecn.com/2009/02/121/</link>
		<comments>http://www.songlecn.com/2009/02/121/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 03:25:37 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[web标准]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=121</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>IE7的web标准之道 IE历来被web标准的拥护者所诟病，而当FireFox横空出世以后，更多的网页制作者开始关注web标准设计。看着FireFox的市场占有率不停的上升，微软终于推出了IE7。但IE7是否真的能够力挽狂澜，是否真的能够得到用户的信任，是否真的能够得到网页设计者的认可呢？ 且看《IE7的web标准之道》系列文章，和你一起见证IE7的改变！ CSS选择符 IE7最令网页设计者兴奋的改进，便是支持更多、更丰富的CSS选择符（也有翻译为选择器的）了。这样通过CSS便能够，更进一步且方便的控制、定位前端结构元素，从而更丰富、多样的制定样式。因为一直不喜欢套用书本上的那些很“专业”、“晦涩”、“拗口”的名词解释。所以我的博客文章中出现的名词解释都是一种熊样——俗、通俗（忒俗）！用非常直白甚至老土的话来解释这些名词，虽然看上去不专业，甚至有所偏差。但是能够让人一看就明白。因为我相信的一点是：让人看不明白的拽文，就是一陀文字堆成的屎！请原谅这句话的粗俗和无理，也请你原谅我下面这些名词解释的老土。 CSS选择符其实大家都见过，甚至都用过。看看下面的例子，就会自然明白了。 &#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;title&#62;IE7的web标准之道示例页面&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; #div1{ color:red; } .div2{ color:blue; } &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;div id=&#34;div1&#34;&#62; id选择符示例 &#60;/div&#62; &#60;div class=&#34;div2&#34;&#62; 类选择符示例 &#60;/div&#62; &#60;/body&#62; &#60;/html&#62; 提示：你可以先修改部分代码再运行。 示例中的&#8221;#&#8221;和&#8221;.&#8221;就是CSS选择符，正是因为有选择符，红色字体和蓝色字体这两种样式，才准确的定位到了id为“div1”和class为“div2”的两个div标签上。说白了，选择符其实就是CSS为样式找到前台结构元素目标的一种机制。 选择符有很多种，上面的示例中，利用“#”符号的称之为“ID选择符”，因为它是根据前台结构元素的id定位的。利用“.”符号的称之为“类选择符”，因为它是根据前台结构元素的class名定位的。其他的还有“通配选择符”、“类型选择符”、“包含选择符”……更详细的资料请查看这篇文章——《CSS基础：CSS选择符 》 更多高级选择符 IE7与IE6相比，支持了更多的选择符，正是因为支持了这些丰富的选择符，所以使得IE7可以更方便的实现一些，以前在IE6很难实现或者无法实现的效果。下面就让我们看看这些令人兴奋的、IE7新支持的选择符。 相邻同胞选择符 利用“相邻选择符”，可以根据一个元素定位到与之相邻的另一个元素，并应用样式。说白了，“相邻选择符”就是只对“与自己平行关系的”、“相邻的”、“在我下面的”“哥们元素”起作用。下面的例子，将更有助于你的理解（注意只有处于h1后面的p3，字体颜色发生了变化）。 &#60;!DOCTYPE html public &#8221;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8221;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&#62; &#60;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&#62;&#60;p id=&#8221;p1&#8243;&#62;这里是我哥们甲的哥们，“我”和它不太熟。&#60;/p&#62; &#60;p id=&#8221;p2&#8243;&#62;这里是我哥们甲，它在我前面面，“混”的比我好，所以我就不管它了。&#60;/p&#62; &#60;h1&#62;这里是“我”&#60;/h1&#62; &#60;p id=&#8221;p3&#8243;&#62;这里是我哥们乙，它在我后面，“混”的还不如我，所以我要照顾它一下。&#60;/p&#62; &#60;p id=&#8221;p4&#8243;&#62;这里是我哥们乙的哥们，“我”和它不太熟。&#60;/p&#62; &#60;/html&#62; 下面是分别在IE6，IE7，FireFox（版本2.0.0，12）和Oepra（版本9.25）的显示效果截图（IE6和IE7共存的方法，可以参考文章《IE6和IE7共存方法（别人是别人的，我是我的）》）。 [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/121/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7的web标准之道1：前言（兼目录）</title>
		<link>http://www.songlecn.com/2009/02/120/</link>
		<comments>http://www.songlecn.com/2009/02/120/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 03:20:44 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[web标准]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=120</guid>
		<description><![CDATA[IE7的web标准之道 IE历来被web标准的拥护者所诟病，而当FireFox横空出世以后，更多的网页制作者开始关注web标准设计。看着FireFox的市场占有率不停的上升，微软终于推出了IE7。但IE7是否真的能够力挽狂澜，是否真的能够得到用户的信任，是否真的能够得到网页设计者的认可呢？ 且看《IE7的web标准之道》系列文章，和你一起见证IE7的改变！ 两份报表 什么也别说，让我们从一张统计图表开始。这是我的博客在最近一段时间内（2008年1月1日——2008年2月15日），统计出来的关于浏览器类型的报表 从这份报表中可以清楚的看到IE6依然占据着半壁江山。而即使在博客园这样,使用FireFox浏览器较多的集合体用户中，FireFox的使用率也只是占到13%。位居第二的便是微软强力推广的IE7，份额已经占到接近30%。 如果说上面的统计图表，表明了IE7的市场占有率的话，那么下面的这张图表则说明了IE7的强劲的市场占有速度。下面的图表是我的博客在去年某段时间内（2007年5月1日——2007年6月30日），统计出来的关于浏览器类型的统计报告 对比第一份报表和第二份报表，可以发现，IE6的市场占有率在被IE7和FireFox快速的蚕食，其中IE7的抢占份额比FireFox更多。 通过对上面两份报表的分析，网页设计人员可以得到的信息是—— IE6依然是主流，需要提供绝对的页面兼容 IE7有着强劲的占有率和发展速度，也需要提供很好的页面兼容 FireFox的使用者在不停的增加，并有一定的市场占有率，需要提供较好的页面兼容 其他内核的浏览器，目前仍然不成气候，在页面兼容上只需要兼顾一下即可 黑马IE7 随着微软不停的采用更为强劲和有效的推广手段，IE7的市场占有率将会进一步的扩展，较为保守的估计1-2年内IE7的市场占有率，将会高于IE6的市场占有率。所以，网页设计人员必须从现在就开始，关注IE7的一些改进和升级，特别是对于web标准方面的改进和变化。 IE7不仅仅是市场占有速度方面表现出强劲的一面，在功能改进和对IE6bug的修正上也是有很大的动作。可以说，在web标准的道路上IE7走出了非常漂亮的一步。 IE7的web标准之道系列文章 IE7走出了漂亮的一步，但是我们呢？我们是否准备好了呢？我们是否了解IE7在web标准道路上的历程呢？我们是否也迈出了web标准的那一步呢？ 《IE7的web标准之道》系列，我想从我知道的方面，细细数来IE7在web标准到了上的点点滴滴，相对于IE6的改进和升级，对于IE6中bug的修正，为了兼容IE6而采取的一些措施和方法。我希望通过这个系列的写作，以及IE7市场占有率迅速膨胀的时代契机，让更多的朋友开始关注web标准设计。 因为工作的原因，我不能保证文章的推出速度，但是我会尽我所能，争取保证每周至少一篇的更新频率。 来自：http://www.cnblogs.com/JustinYoung/archive/2008/02/18/IE7_wsRoad_foreword.html]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/120/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>几种有用的CSS技巧</title>
		<link>http://www.songlecn.com/2009/01/57/</link>
		<comments>http://www.songlecn.com/2009/01/57/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 02:47:40 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[css技巧]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=57</guid>
		<description><![CDATA[1、重置浏览器的默认设置 首先将以下代码加到你的全局css文件中： 下载: css1.css1 2 3 4 5 6 7 8 9 10 11 12 /*1.Reset browser defaults then reset the browser font size*/ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p, blockquote,th,td &#123;margin:0; padding:0; &#125; table &#123; border-collapse:collapse; border-spacing:0; &#125; fieldset,img &#123; border:0; &#125; address,caption,cite,code,dfn,em,strong,th,var&#123;font-style:normal;font-weight:normal;&#125; ol,ul &#123; list-style:none; &#125; caption,th &#123; text-align:left; &#125; h1,h2,h3,h4,h5,h6 &#123; font-size:100%; font-weight:normal; &#125; q:before,q:after &#123; content:“; [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/01/57/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

