<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[21 工作室 - div+css]]></title>
<link>http://www.is21.cn/</link>
<description><![CDATA[本站承接网页制作、软件项目开发、代写代码等业务，我们将和您真诚合作，以最低的价格提供最优越的服务。13488846575   联系人:潘劲]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[lianxiangpanjin@163.com(潘劲)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>21 工作室</title> 
	<url>http://www.is21.cn/images/logos.gif</url> 
	<link>http://www.is21.cn/</link> 
	<description>21 工作室</description> 
</image>

			<item>
			<link>http://www.is21.cn/default.asp?id=545</link>
			<title><![CDATA[超链接,虚线,去下划线,样式]]></title>
			<author>lianxiangpanjin@163.com(admin)</author>
			<category><![CDATA[div+css]]></category>
			<pubDate>Tue,02 Dec 2008 10:12:23 +0800</pubDate>
			<guid>http://www.is21.cn/default.asp?id=545</guid>	
		<description><![CDATA[1,去下划线???<br/>&lt;style&nbsp;TYPE=&#34;text/css&#34;&gt;&nbsp;<br/>&lt;!--&nbsp;<br/>A:link{text-decoration:none}&nbsp;<br/>A:visited{text-decoration:none}&nbsp;<br/>A:hover&nbsp;{color:&nbsp;#ff00ff;text-decoration:underline}&nbsp;<br/>--&gt;&nbsp;<br/>&lt;/style&gt;<br/><br/>或<br/>&lt;style&gt;<br/>&lt;!--<br/>a&nbsp;&nbsp;&nbsp;{&nbsp;text-decoration:none&nbsp;&nbsp;}<br/>--&gt;<br/>&lt;/style&gt;<br/>&lt;a&nbsp;href=&#34;<a href="http://localhost" target="_blank">http://localhost</a>&#34;&nbsp;style=&#34;text-decoration:&nbsp;none&#34;&gt;inline&nbsp;style&lt;/a&gt;<br/><br/><br/><br/>2,虚线<br/>/*&nbsp;虚线&nbsp;&nbsp;&nbsp;*/<br/>.xufont&nbsp;{&nbsp;<br/>border-bottom-width:&nbsp;1px;&nbsp;<br/>border-top-style:&nbsp;none;&nbsp;<br/>border-right-style:&nbsp;none;&nbsp;<br/>border-bottom-style:&nbsp;dotted;&nbsp;<br/>border-left-style:&nbsp;none;&nbsp;<br/>border-bottom-color:&nbsp;#0033CC;&nbsp;<br/>}&nbsp;<br/><br/><br/>激活时虚线<br/>A:hover&nbsp;{<br/>&#160;&#160;&#160;&#160;COLOR:&nbsp;#FF0000;&nbsp;<br/>&#160;&#160;&#160;&#160;border-bottom:1px&nbsp;dashed&nbsp;#6099de;<br/>}<br/><br/><br/>3,两种不同的超链接样式<br/>.xu:hover&nbsp;{color:&nbsp;#ff00ff;text-decoration:underline;}&nbsp;<br/><br/>调用时&lt;a&nbsp;href=&#34;peopledetail.asp&#34;&nbsp;target=&#34;_blank&#34;&nbsp;class=&#34;xu&#34;&gt;&lt;span&nbsp;class=&#34;fontTable&#34;&gt;&lt;%=rs(&#34;name&#34;)%&gt;&lt;/span&gt;&lt;/a&gt;---兼容ie6,ie7<br/><br/>不能&lt;a&nbsp;href=&#34;peopledetail.asp&#34;&nbsp;target=&#34;_blank&#34;&gt;&lt;&nbsp;span&nbsp;class=&#34;fontTable&nbsp;xu&#34;&gt;&lt;%=rs(&#34;name&#34;)%&gt;&lt;/span&gt;&lt;/a&gt;<br/>对ie6不兼容<br/><br/>&#160;&#160;&#160;&#160;]]></description>
		</item>
		
			<item>
			<link>http://www.is21.cn/default.asp?id=514</link>
			<title><![CDATA[向左无缝滚动代码]]></title>
			<author>lianxiangpanjin@163.com(admin)</author>
			<category><![CDATA[div+css]]></category>
			<pubDate>Wed,12 Nov 2008 22:34:30 +0800</pubDate>
			<guid>http://www.is21.cn/default.asp?id=514</guid>	
		<description><![CDATA[&lt;style&nbsp;type=&#34;text/css&#34;&gt;&nbsp;<br/>&lt;!--&nbsp;<br/>#demo&nbsp;{&nbsp;<br/>background:&nbsp;#FFF;&nbsp;<br/>overflow:hidden;&nbsp;<br/>border:&nbsp;1px&nbsp;dashed&nbsp;#CCC;&nbsp;<br/>width:&nbsp;500px;&nbsp;<br/>}&nbsp;<br/>#indemo&nbsp;{&nbsp;<br/>float:&nbsp;left;&nbsp;<br/>width:&nbsp;800%;&nbsp;<br/>}&nbsp;<br/>#demo1&nbsp;{&nbsp;<br/>float:&nbsp;left;&nbsp;<br/>}&nbsp;<br/>#demo2&nbsp;{&nbsp;<br/>float:&nbsp;left;&nbsp;<br/>}&nbsp;<br/>--&gt;&nbsp;<br/>&lt;/style&gt;&nbsp;<br/>&lt;div&nbsp;style=&#34;float:left&#34;&gt;向左滚动&nbsp;&lt;/div&gt;<br/>&lt;div&nbsp;id=&#34;demo&#34;&nbsp;&nbsp;style=&#34;float:left&#34;&gt;&nbsp;<br/>&lt;div&nbsp;id=&#34;indemo&#34;&gt;&nbsp;<br/>&lt;div&nbsp;id=&#34;demo1&#34;&gt;&nbsp;<br/>11111&amp;nbsp;&amp;nbsp;222&amp;nbsp;&amp;nbsp;11111&amp;nbsp;&amp;nbsp;222&amp;nbsp;&amp;nbsp;11111&amp;nbsp;&amp;nbsp;222&amp;nbsp;&amp;nbsp;11111&amp;nbsp;&amp;nbsp;222&amp;nbsp;&amp;nbsp;11111&amp;nbsp;&amp;nbsp;222&amp;nbsp;&amp;nbsp;11111&amp;nbsp;&amp;nbsp;222&amp;nbsp;&amp;nbsp;11111&amp;nbsp;&amp;nbsp;222&amp;nbsp;&amp;nbsp;<br/>&lt;/div&gt;&nbsp;<br/>&lt;div&nbsp;id=&#34;demo2&#34;&gt;&lt;/div&gt;&nbsp;<br/>&lt;/div&gt;&nbsp;<br/>&lt;/div&gt;&nbsp;<br/><br/>&lt;script&gt;&nbsp;<br/>&lt;!--&nbsp;<br/>var&nbsp;speed=10;&nbsp;//数字越大速度越慢&nbsp;<br/>var&nbsp;tab=document.getElementById(&#34;demo&#34;);&nbsp;<br/>var&nbsp;tab1=document.getElementById(&#34;demo1&#34;);&nbsp;<br/>var&nbsp;tab2=document.getElementById(&#34;demo2&#34;);&nbsp;<br/>tab2.innerHTML=tab1.innerHTML;&nbsp;<br/>function&nbsp;Marquee(){&nbsp;<br/>if(tab2.offsetWidth-tab.scrollLeft&lt;=0)&nbsp;<br/>tab.scrollLeft-=tab1.offsetWidth&nbsp;<br/>else{&nbsp;<br/>tab.scrollLeft++;&nbsp;<br/>}&nbsp;<br/>}&nbsp;<br/>var&nbsp;MyMar=setInterval(Marquee,speed);&nbsp;<br/>tab.onmouseover=function()&nbsp;{clearInterval(MyMar)};&nbsp;<br/>tab.onmouseout=function()&nbsp;{MyMar=setInterval(Marquee,speed)};&nbsp;<br/>--&gt;&nbsp;<br/>&lt;/script&gt;]]></description>
		</item>
		
			<item>
			<link>http://www.is21.cn/default.asp?id=392</link>
			<title><![CDATA[细线表格]]></title>
			<author>lianxiangpanjin@163.com(admin)</author>
			<category><![CDATA[div+css]]></category>
			<pubDate>Fri,25 Jul 2008 16:40:58 +0800</pubDate>
			<guid>http://www.is21.cn/default.asp?id=392</guid>	
		<description><![CDATA[&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;title&gt;Untitled&nbsp;Document&lt;/title&gt;<br/>&lt;meta&nbsp;http-equiv=&#34;Content-Type&#34;&nbsp;content=&#34;text/html;&nbsp;charset=gb2312&#34;&gt;<br/>&lt;style&nbsp;type=&#34;text/css&#34;&gt;<br/>&lt;!--<br/>td&nbsp;{&nbsp;&nbsp;font-family:&nbsp;&#34;Verdana&#34;,&nbsp;&#34;Arial&#34;,&nbsp;&#34;Helvetica&#34;,&nbsp;&#34;sans-serif&#34;;&nbsp;font-size:&nbsp;8pt;&nbsp;color:&nbsp;#666666}<br/>--&gt;<br/>&lt;/style&gt;<br/>&lt;/head&gt;<br/>&lt;body&nbsp;bgcolor=&#34;#FFFFFF&#34;&nbsp;text=&#34;#000000&#34;&gt;<br/>&lt;table&nbsp;width=&#34;400&#34;&nbsp;border=&#34;0&#34;&nbsp;cellspacing=&#34;0&#34;&nbsp;cellpadding=&#34;0&#34;&gt;<br/>&nbsp;&nbsp;&lt;tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;bgcolor=&#34;#EFEFEF&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;table&nbsp;width=&#34;400&#34;&nbsp;border=&#34;0&#34;&nbsp;cellspacing=&#34;1&#34;&nbsp;cellpadding=&#34;3&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&nbsp;bgcolor=&#34;#FFFFFF&#34;&gt;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;ab&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;cd&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;ef&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;g&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&nbsp;bgcolor=&#34;#FFFFFF&#34;&gt;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;hi&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;jk&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;l&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;mn&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/table&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br/>&nbsp;&nbsp;&lt;/tr&gt;<br/>&lt;/table&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;<br/><br/><br/>-------------------------------------------------------------------------------------------<br/>简化后<br/>&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;title&gt;Untitled&nbsp;Document&lt;/title&gt;<br/>&lt;meta&nbsp;http-equiv=&#34;Content-Type&#34;&nbsp;content=&#34;text/html;&nbsp;charset=gb2312&#34;&gt;<br/><br/><br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&lt;table&nbsp;width=&#34;400&#34;&nbsp;border=&#34;0&#34;&nbsp;cellspacing=&#34;0&#34;&nbsp;cellpadding=&#34;0&#34;&gt;<br/>&nbsp;&nbsp;&lt;tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;bgcolor=&#34;#000000&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;table&nbsp;width=&#34;400&#34;&nbsp;border=&#34;0&#34;&nbsp;cellspacing=&#34;1&#34;&nbsp;cellpadding=&#34;3&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&nbsp;bgcolor=&#34;#FFFFFF&#34;&gt;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;ab&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;cd&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;ef&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;g&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&nbsp;bgcolor=&#34;#FFFFFF&#34;&gt;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;hi&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;jk&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;l&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;mn&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/table&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br/>&nbsp;&nbsp;&lt;/tr&gt;<br/>&lt;/table&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;]]></description>
		</item>
		
			<item>
			<link>http://www.is21.cn/default.asp?id=380</link>
			<title><![CDATA[防止撑开]]></title>
			<author>lianxiangpanjin@163.com(admin)</author>
			<category><![CDATA[div+css]]></category>
			<pubDate>Tue,24 Jun 2008 10:18:47 +0800</pubDate>
			<guid>http://www.is21.cn/default.asp?id=380</guid>	
		<description><![CDATA[&lt;style&gt;<br/>table&nbsp;{&nbsp;<br/>table-layout:&nbsp;fixed;<br/>word-wrap:break-word;<br/>}<br/>div&nbsp;{&nbsp;<br/>word-wrap:break-word;<br/>}<br/>&lt;/style&gt;<br/><br/><br/>------------------------------------------<br/>style=&#34;table-layout:&nbsp;fixed;word-wrap:break-word;&#34;]]></description>
		</item>
		
			<item>
			<link>http://www.is21.cn/default.asp?id=376</link>
			<title><![CDATA[让你的javascript兼容FireFox和IE ]]></title>
			<author>lianxiangpanjin@163.com(admin)</author>
			<category><![CDATA[div+css]]></category>
			<pubDate>Sat,21 Jun 2008 01:09:25 +0800</pubDate>
			<guid>http://www.is21.cn/default.asp?id=376</guid>	
		<description><![CDATA[1.&nbsp;document.formName.item(&#34;itemName&#34;)&nbsp;问题&nbsp;<br/>说明:IE下,可以使用document.formName.item(&#34;itemName&#34;)或document.formName.elements[&#34;elementName&#34;];&nbsp;<br/>Firefox下,只能使用document.formName.elements[&#34;elementName&#34;].&nbsp;<br/>解决方法:统一使用document.formName.elements[&#34;elementName&#34;].&nbsp;<br/><br/>2.集合类对象问题&nbsp;<br/>说明:IE下,可以使用()或[]获取集合类对象;Firefox下,只能使用[]获取集合类对象.&nbsp;<br/>解决方法:统一使用[]获取集合类对象.&nbsp;<br/><br/>3.自定义属性问题&nbsp;<br/>说明:IE下,可以使用获取常规属性的方法来获取自定义属性,也可以使用getAttribute()获取自定义属性;Firefox下,只能使用getAttribute()获取自定义属性.&nbsp;<br/>解决方法:统一通过getAttribute()获取自定义属性.&nbsp;<br/><br/>4.eval(&#34;idName&#34;)问题&nbsp;<br/>说明:IE下,,可以使用eval(&#34;idName&#34;)或getElementById(&#34;idName&#34;)来取得id为idName的HTML对象;Firefox下只能使用getElementById(&#34;idName&#34;)来取得id为idName的HTML对象.&nbsp;<br/>解决方法:统一用getElementById(&#34;idName&#34;)来取得id为idName的HTML对象.&nbsp;<br/><br/>5.变量名与某HTML对象ID相同的问题&nbsp;<br/>说明:IE下,HTML对象的ID可以作为document的下属对象变量名直接使用;Firefox下则不能.Firefox下,可以使用与HTML对象ID相同的变量名;IE下则不能。&nbsp;<br/>解决方法:使用document.getElementById(&#34;idName&#34;)代替document.idName.最好不要取HTML对象ID相同的变量名,以减少错误;在声明变量时,一律加上var,以避免歧义.&nbsp;<br/><br/>6.const问题&nbsp;<br/>说明:Firefox下,可以使用const关键字或var关键字来定义常量;IE下,只能使用var关键字来定义常量.&nbsp;<br/>解决方法:统一使用var关键字来定义常量.&nbsp;<br/><br/>7.input.type属性问题&nbsp;<br/>说明:IE下input.type属性为只读;但是Firefox下input.type属性为读写.&nbsp;<br/><br/>8.window.event问题&nbsp;<br/>说明:window.event只能在IE下运行,而不能在Firefox下运行,这是因为Firefox的event只能在事件发生的现场使用.&nbsp;Firefox必须从源处加入event作参数传递。Ie忽略该参数，用window.event来读取该event。&nbsp;<br/>解决方法:&nbsp;<br/>IE&amp;Firefox:&nbsp;<br/>Submitted(event)&#34;/&gt;&nbsp;…&nbsp;<br/>&lt;script&nbsp;language=&#34;javascript&#34;&gt;&nbsp;<br/>function&nbsp;Submitted(evt)&nbsp;{&nbsp;<br/>evt=evt?evt:(window.event?window.event:null);&nbsp;<br/>}&nbsp;<br/>&lt;/script&gt;&nbsp;<br/><br/>9.event.x与event.y问题&nbsp;<br/>说明:IE下,even对象有x,y属性,但是没有pageX,pageY属性;Firefox下,even对象有pageX,pageY属性,但是没有x,y属性.&nbsp;<br/>解决方法:使用mX(mX&nbsp;=&nbsp;event.x&nbsp;?&nbsp;event.x&nbsp;:&nbsp;event.pageX;)来代替IE下的event.x或者Firefox下的event.pageX.&nbsp;<br/><br/>10.event.srcElement问题&nbsp;<br/>说明:IE下,event对象有srcElement属性,但是没有target属性;Firefox下,even对象有target属性,但是没有srcElement属性.&nbsp;<br/>解决方法:使用obj(obj&nbsp;=&nbsp;event.srcElement&nbsp;?&nbsp;event.srcElement&nbsp;:&nbsp;event.target;)来代替IE下的event.srcElement或者Firefox下的event.target.&nbsp;请同时注意event的兼容性问题。&nbsp;<br/><br/>11.window.location.href问题&nbsp;<br/>说明:IE或者Firefox2.0.x下,可以使用window.location或window.location.href;Firefox1.5.x下,只能使用window.location.&nbsp;<br/>解决方法:使用window.location来代替window.location.href.&nbsp;<br/><br/>12.模态和非模态窗口问题&nbsp;<br/>说明:IE下,可以通过showModalDialog和showModelessDialog打开模态和非模态窗口;Firefox下则不能.&nbsp;<br/>解决方法:直接使用window.open(pageURL,name,parameters)方式打开新窗口。&nbsp;<br/>如果需要将子窗口中的参数传递回父窗口,可以在子窗口中使用window.opener来访问父窗口.&nbsp;例如：var&nbsp;parWin&nbsp;=&nbsp;window.opener;&nbsp;parWin.document.getElementById(&#34;Aqing&#34;).value&nbsp;=&nbsp;&#34;Aqing&#34;;&nbsp;<br/><br/>13.frame问题&nbsp;<br/>以下面的frame为例：&nbsp;<br/>&lt;frame&nbsp;src=&#34;xxx.html&#34;&nbsp;id=&#34;frameId&#34;&nbsp;name=&#34;frameName&#34;&nbsp;/&gt;&nbsp;<br/>(1)访问frame对象:&nbsp;<br/>IE:使用window.frameId或者window.frameName来访问这个frame对象.&nbsp;frameId和frameName可以同名。&nbsp;<br/>Firefox:只能使用window.frameName来访问这个frame对象.&nbsp;<br/>另外，在IE和Firefox中都可以使用window.document.getElementById(&#34;frameId&#34;)来访问这个frame对象.&nbsp;<br/>(2)切换frame内容:&nbsp;<br/>在IE和Firefox中都可以使用window.document.getElementById(&#34;testFrame&#34;).src&nbsp;=&nbsp;&#34;xxx.html&#34;或window.frameName.location&nbsp;=&nbsp;&#34;xxx.html&#34;来切换frame的内容.&nbsp;<br/>如果需要将frame中的参数传回父窗口(注意不是opener,而是parent&nbsp;frame)，可以在frme中使用parent来访问父窗口。例如：parent.document.form1.filename.value=&#34;Aqing&#34;;&nbsp;<br/><br/>14.body问题&nbsp;<br/>Firefox的body在body标签没有被浏览器完全读入之前就存在；而IE的body则必须在body标签被浏览器完全读入之后才存在.&nbsp;<br/><br/>15.&nbsp;事件委托方法&nbsp;<br/>IE：document.body.onload&nbsp;=&nbsp;inject;&nbsp;//Function&nbsp;inject()在这之前已被实现&nbsp;<br/>Firefox：document.body.onload&nbsp;=&nbsp;inject();&nbsp;<br/><br/>16.&nbsp;firefox与IE的父元素(parentElement)的区别&nbsp;<br/>IE：obj.parentElement&nbsp;<br/>firefox：obj.parentNode&nbsp;<br/>解决方法:&nbsp;因为firefox与IE都支持DOM,因此使用obj.parentNode是不错选择.&nbsp;<br/><br/>17.cursor:hand&nbsp;VS&nbsp;cursor:pointer&nbsp;<br/>firefox不支持hand，但ie支持pointer&nbsp;<br/>解决方法:&nbsp;统一使用pointer&nbsp;<br/><br/>18.innerText在IE中能正常工作，但是innerText在FireFox中却不行.&nbsp;需用textContent。&nbsp;<br/>解决方法:&nbsp;<br/>if(navigator.appName.indexOf(&#34;Explorer&#34;)&nbsp;&gt;&nbsp;-1){&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(&#39;element&#39;).innerText&nbsp;=&nbsp;&#34;my&nbsp;text&#34;;&nbsp;<br/>}&nbsp;else{&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(&#39;element&#39;).textContent&nbsp;=&nbsp;&#34;my&nbsp;text&#34;;&nbsp;<br/>}&nbsp;<br/><br/>19.&nbsp;FireFox中设置HTML标签的style时，所有位置性和字体尺寸的值必须后跟px。这个ie也是支持的。&nbsp;<br/><br/>20.&nbsp;ie,firefox以及其它浏览器对于&nbsp;table&nbsp;标签的操作都各不相同，在ie中不允许对table和tr的innerHTML赋值，使用js增加一个tr时，使用appendChild方法也不管用。&nbsp;<br/>解决方法：&nbsp;<br/>//向table追加一个空行：&nbsp;<br/>var&nbsp;row&nbsp;=&nbsp;otable.ins&#101;rtRow(-1);&nbsp;<br/>var&nbsp;cell&nbsp;=&nbsp;document.cr&#101;ateElement(&#34;td&#34;);&nbsp;<br/>cell.innerHTML&nbsp;=&nbsp;&#34;&nbsp;&#34;;&nbsp;<br/>cell.className&nbsp;=&nbsp;&#34;XXXX&#34;;&nbsp;<br/>row.appendChild(cell);&nbsp;<br/><br/>21.&nbsp;padding&nbsp;问题&nbsp;<br/>padding&nbsp;5px&nbsp;4px&nbsp;3px&nbsp;1px&nbsp;FireFox无法解释简写,&nbsp;<br/>必须改成&nbsp;padding-top:5px;&nbsp;padding-right:4px;&nbsp;padding-bottom:3px;&nbsp;padding-left:1px;&nbsp;<br/><br/>22.&nbsp;消除ul、ol等列表的缩进时&nbsp;<br/>样式应写成:list-style:none;margin:0px;padding:0px;&nbsp;<br/>其中margin属性对IE有效，padding属性对FireFox有效&nbsp;<br/><br/>23.&nbsp;CSS透明&nbsp;<br/>IE：filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=60)。&nbsp;<br/>FF：opacity:0.6。&nbsp;<br/><br/>24.&nbsp;CSS圆角&nbsp;<br/>IE：不支持圆角。&nbsp;<br/>FF：&nbsp;-moz-border-radius:4px，或者-moz-border-radius-topleft:4px;-moz-border-&nbsp;radius-topright:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius-&nbsp;bottomright:4px;。&nbsp;<br/><br/>25.&nbsp;CSS双线凹凸边框&nbsp;<br/>IE：border:2px&nbsp;outset;。&nbsp;<br/>FF：&nbsp;-moz-border-top-colors:&nbsp;#d4d0c8&nbsp;white;-moz-border-left-colors:&nbsp;#d4d0c8&nbsp;white;-moz-border-right-colors:#404040&nbsp;#808080;-moz-border-bottom-colors:#404040&nbsp;#808080;&nbsp;<br/><br/>26.&nbsp;对sel&#101;ct的options集合操作&nbsp;<br/>枚举元素除了[]外，Sel&#101;ctName.options.item()也是可以的,&nbsp;另外Sel&#101;ctName.options.length,&nbsp;Sel&#101;ctName.options.add/remove都可以在两种浏览器上使用。注意在add后赋值元素，否则会失败（本人试验如此）。&nbsp;<br/><br/>27.&nbsp;XMLHTTP的区别&nbsp;<br/>//mf&nbsp;<br/>if&nbsp;(window.XMLHttpRequest)&nbsp;//mf&nbsp;<br/>{&nbsp;<br/>xmlhttp=new&nbsp;XMLHttpRequest()&nbsp;<br/>xmlhttp.&nbsp;<br/>xmlhttp.open(&#34;GET&#34;,url,true)&nbsp;<br/>xmlhttp.send(null)&nbsp;<br/>}&nbsp;<br/>//ie&nbsp;<br/>else&nbsp;if&nbsp;(window.ActiveXObject)&nbsp;//&nbsp;code&nbsp;for&nbsp;IE&nbsp;<br/>{&nbsp;<br/>xmlhttp=new&nbsp;ActiveXObject(&#34;Microsoft.XMLHTTP&#34;)&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(xmlhttp)&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;xmlhttp.&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;xmlhttp.open(&#34;GET&#34;,url,true)&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;xmlhttp.send()&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br/>}&nbsp;<br/>}&nbsp;<br/><br/>28.&nbsp;innerHTML的区别&nbsp;<br/>Firefox不支持innerHTML,&nbsp;解决办法可以如下&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rng&nbsp;=&nbsp;document.cr&#101;ateRange();&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el&nbsp;=&nbsp;document.getElementById(elementid);&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rng.setStartBefore(el);&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;htmlFrag&nbsp;=&nbsp;rng.cr&#101;ateContextualFragment(content);&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(el.hasChildNodes())&nbsp;//清除原有内容，加入新内容&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.removeChild(el.lastChild);&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.appendChild(htmlFrag);&nbsp;<br/><br/>29.&nbsp;img的src刷新问题&nbsp;<br/>在IE下可以用&lt;img&nbsp;id=&#34;pic&#34;&nbsp;onclick=&nbsp;&#34;this.src=&nbsp;&amp;apos;aa.php&amp;apos;&#34;&nbsp;src=&#34;aa.php&#34;&nbsp;style=&#34;cursor:&nbsp;pointer&#34;/&gt;&nbsp;可以刷新图片，但在FireFox下不行。主要是缓存问题，在地址后面加个随机数就解决了。编辑onclick事件代码如下：&nbsp;&#34;this.src=this.src+&#39;?&#39;+Math.random()&#34;<br/><br/><br/><br/><br/><br/>//引用自<a href="http://www.chinesebloger.com/dispbbs.asp?boardID=2" target="_blank">http://www.chinesebloger.com/dispbbs.asp?boardID=2</a>&amp;ID=39018&amp;page=3]]></description>
		</item>
		
			<item>
			<link>http://www.is21.cn/default.asp?id=312</link>
			<title><![CDATA[变黑效果]]></title>
			<author>lianxiangpanjin@163.com(admin)</author>
			<category><![CDATA[div+css]]></category>
			<pubDate>Tue,20 May 2008 10:30:27 +0800</pubDate>
			<guid>http://www.is21.cn/default.asp?id=312</guid>	
		<description><![CDATA[&lt;style&nbsp;type=&#34;text/css&#34;&gt;<br/>html,body{filter:gray;}<br/>&lt;/style&gt;<br/><br/><br/><br/>如果只想改变其中一部分，可以采用class的定义。如果在黑白的页面中，加入一个红色的蜡烛，在表达哀思的同时<br/>&lt;style&nbsp;type=&#34;text/css&#34;&gt;<br/>&nbsp;a,p,div,input,img,span,td,font,table,hr,h3,h2,h4,h5,h1&nbsp;{filter:gray}<br/>html,body&nbsp;{background:;}<br/>&nbsp;.noFilter&nbsp;{&nbsp;filter:;&nbsp;}<br/>&lt;/style&gt;<br/><br/>&nbsp;&lt;div&nbsp;style=&#34;text-align:center;padding-top:10px;&#34;&gt;<br/>&nbsp;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;<br/>&nbsp;&lt;/div&gt;<br/>&lt;div&nbsp;style=&#34;text-align:center;&#34;&gt;<br/>&nbsp;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&lt;img&nbsp;src=&#34;<a href="http://dotnet.aspx.cc/Images/f.gif" target="_blank">http://dotnet.aspx.cc/Images/f.gif</a>&#34;&nbsp;class=&#34;noFilter&#34;&nbsp;/&gt;&nbsp;&nbsp;<br/>&lt;/div&gt;<br/><br/><img src="http://www.is21.cn/attachments/month_0805/b2008520103024.gif" border="0" alt=""/><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.is21.cn/default.asp?id=222</link>
			<title><![CDATA[用CSS的float属性创建三栏布局网页的方法]]></title>
			<author>lianxiangpanjin@163.com(admin)</author>
			<category><![CDATA[div+css]]></category>
			<pubDate>Sat,15 Mar 2008 10:02:58 +0800</pubDate>
			<guid>http://www.is21.cn/default.asp?id=222</guid>	
		<description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;三栏布局是最常见的网页布局，主要页内容放在中间一栏，边上的两栏放置导航链接之类的内容。基本布局一般是标题之下放置三栏，三栏占据整个页面的宽度，最后在页的底端放置页脚，页脚也占据整个页面宽度。本文介绍一种用CSS的float和clear属性来获得三栏布局的方法。&nbsp;　　绝大多数网页设计者都熟悉传统的网页设计技术，用这些技术可以生成带有表格、创建固定宽度布局或者“液态”(它可以根据用户浏览器窗口宽度自动伸缩)布局的网页。　　基本方法　　基本的布局包含五个div，即标题、页脚和三栏。标题和页脚占据整个页宽。左栏div和右栏div都是固定宽度的，并且用float属性来把它们挤压到浏览器窗口的左侧和右侧。中栏实际上占据了整个页宽，中栏的内容在左、右两栏之间“流淌”。由于中栏div的宽度并不固定，因此它可以根据浏览器窗口的改变进行必要的伸缩。中栏div的左侧和右侧的填充(padding)属性保证内容安排在一个整齐的栏中，甚至当它伸展到边栏(左栏或者右栏)的底端也是这样。　　三栏布局的一个例子　　XHTML代码：以下是引用片段：&nbsp;<br/>Header<br/>Port&nbsp;side&nbsp;text...&nbsp;<br/>Starboard&nbsp;side&nbsp;text...&nbsp;<br/>Middle&nbsp;column&nbsp;text...&nbsp;<br/>Footer&nbsp;text...&nbsp;<br/>　　下面是CSS代码：以下是引用片段：&nbsp;body&nbsp;{&nbsp;margin:&nbsp;0px;&nbsp;padding:&nbsp;0px;&nbsp;}&nbsp;div#header&nbsp;{&nbsp;clear:&nbsp;both;&nbsp;height:&nbsp;50px;&nbsp;background-color:&nbsp;aqua;&nbsp;padding:&nbsp;1px;&nbsp;}&nbsp;div#left&nbsp;{&nbsp;float:&nbsp;left;&nbsp;width:&nbsp;150px;&nbsp;background-color:&nbsp;red;&nbsp;}&nbsp;div#right&nbsp;{&nbsp;float:&nbsp;right;&nbsp;width:&nbsp;150px;&nbsp;background-color:&nbsp;green;&nbsp;}&nbsp;div#middle&nbsp;{&nbsp;padding:&nbsp;0px&nbsp;160px&nbsp;5px&nbsp;160px;&nbsp;margin:&nbsp;0px;&nbsp;background-color:&nbsp;silver;&nbsp;}&nbsp;div#footer&nbsp;{&nbsp;clear:&nbsp;both;&nbsp;background-color:&nbsp;yellow;&nbsp;}<br/><br/>]]></description>
		</item>
		
</channel>
</rss>