<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[设计碎片 - Div+Css]]></title>
<link>http://blog.edotpower.com/</link>
<description><![CDATA[网络那么乱，可我还得拼...]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[star520dust@163.com(Hsure)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>设计碎片</title> 
	<url>http://blog.edotpower.com/images/logos.gif</url> 
	<link>http://blog.edotpower.com/</link> 
	<description>设计碎片</description> 
</image>

			<item>
			<link>http://blog.edotpower.com/default.asp?id=117</link>
			<title><![CDATA[DIV border边框显示不完全问题的解决方法]]></title>
			<author>star520dust@163.com(stardust)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Thu,13 Nov 2008 18:33:34 +0800</pubDate>
			<guid>http://blog.edotpower.com/default.asp?id=117</guid>	
		<description><![CDATA[<p>1.加个高度</p>
<p>2。加个背景颜色（推荐）</p>]]></description>
		</item>
		
			<item>
			<link>http://blog.edotpower.com/default.asp?id=87</link>
			<title><![CDATA[个性化下拉列表样式]]></title>
			<author>star520dust@163.com(stardust)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Tue,20 May 2008 17:31:03 +0800</pubDate>
			<guid>http://blog.edotpower.com/default.asp?id=87</guid>	
		<description><![CDATA[ &lt;!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.0 Transitional//EN&#34;&gt; <br/>&lt;HTML&gt; <br/>&lt;HEAD&gt; <br/>&lt;TITLE&gt; simulate combox control - <a href="http://www.never-online.net" target="_blank"><a href="http://www.never-online.net" target="_blank">http://www.never-online.net</a></a> &lt;/TITLE&gt; <br/>&lt;META NAME=&#34;Generator&#34; CONTENT=&#34;EditPlus&#34;&gt; <br/>&lt;META NAME=&#34;Author&#34; CONTENT=&#34;&#34;&gt; <br/>&lt;META NAME=&#34;Keywords&#34; CONTENT=&#34;&#34;&gt; <br/>&lt;META NAME=&#34;Description&#34; CONTENT=&#34;&#34;&gt; <br/>&lt;style&gt; <br/>body, input <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-family: verdana; <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-size: 9pt; <br/>} <br/>h1 <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-family: tahoma; <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-size: 22pt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;text-align: left; <br/>} <br/>pre <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-size: 9pt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-family: verdana; <br/>&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid #006600; <br/>&nbsp;&nbsp;&nbsp;&nbsp;width: 400px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;padding: 10px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;background: #ffffff; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #006600; <br/>} <br/>.CtlSel&#101;ct <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid #006600; <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-family: verdana; <br/>&nbsp;&nbsp;&nbsp;&nbsp;height: 20px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #006600; <br/>&nbsp;&nbsp;&nbsp;&nbsp;background: #ffffff; <br/>&nbsp;&nbsp;&nbsp;&nbsp;/*background:url({E5066804-650D-4757-9BA4-A92DB8817A18}0.jpg);*/ <br/>} <br/>.sel&#101;cted <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;background: #006600; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #ffffff; <br/>&nbsp;&nbsp;&nbsp;&nbsp;height: 20px; <br/>} <br/>.unsel&#101;cted <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;height: 20px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #006600; <br/>&nbsp;&nbsp;&nbsp;&nbsp;line-height: 120%; <br/>&nbsp;&nbsp;&nbsp;&nbsp;border-bottom: 1px solid #006600; <br/>} <br/>.CtlSel&#101;ct1 <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid #003399; <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-family: verdana; <br/>&nbsp;&nbsp;&nbsp;&nbsp;height: 20px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #003399; <br/>&nbsp;&nbsp;&nbsp;&nbsp;background: #ffffff; <br/>&nbsp;&nbsp;&nbsp;&nbsp;/*background:url({E5066804-650D-4757-9BA4-A92DB8817A18}0.jpg);*/ <br/>} <br/>.sel&#101;cted1 <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;background: #003399; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #ffffff; <br/>&nbsp;&nbsp;&nbsp;&nbsp;height: 20px; <br/>} <br/>.unsel&#101;cted1 <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;height: 20px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #003399; <br/>&nbsp;&nbsp;&nbsp;&nbsp;line-height: 120%; <br/>&nbsp;&nbsp;&nbsp;&nbsp;border-bottom: 1px solid #003399; <br/>} <br/>.CtlSel&#101;ct2 <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid #990000; <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-family: verdana; <br/>&nbsp;&nbsp;&nbsp;&nbsp;height: 20px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #990000; <br/>&nbsp;&nbsp;&nbsp;&nbsp;background: #ffffff; <br/>&nbsp;&nbsp;&nbsp;&nbsp;/*background:url({E5066804-650D-4757-9BA4-A92DB8817A18}0.jpg);*/ <br/>} <br/>.sel&#101;cted2 <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;background: #990000; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #ffffff; <br/>&nbsp;&nbsp;&nbsp;&nbsp;height: 20px; <br/>} <br/>.unsel&#101;cted2 <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;height: 20px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #990000; <br/>&nbsp;&nbsp;&nbsp;&nbsp;line-height: 120%; <br/>&nbsp;&nbsp;&nbsp;&nbsp;border-bottom: 1px solid #990000; <br/>} <br/>.copyright <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;margin-top: 10px; <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-size: 9pt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;text-align: center; <br/>&nbsp;&nbsp;&nbsp;&nbsp;color: #333; <br/>&nbsp;&nbsp;&nbsp;&nbsp;font-weight: bold; <br/>} <br/>&lt;/style&gt; <br/>&lt;/HEAD&gt; <br/><br/>&lt;BODY&gt; <br/>&lt;SCRIPT LANGUAGE=&#34;JavaScript&#34;&gt; <br/>&lt;!-- <br/>//------------------------------------------------------------- <br/>//&nbsp;&nbsp;@ Module: simulate sel&#101;ct control, IE only. <br/>//&nbsp;&nbsp;@ Debug in: IE 6.0 <br/>//&nbsp;&nbsp;@ Script by: blueDestiny, never-online <br/>//&nbsp;&nbsp;@ Up&#100;ated: 2006-3-22 <br/>//&nbsp;&nbsp;@ Version: 1.0 apha <br/>//&nbsp;&nbsp;@ Email: blueDestiny [at] 126.com <br/>//&nbsp;&nbsp;@ Website: <a href="http://www.never-online.net" target="_blank"><a href="http://www.never-online.net" target="_blank">http://www.never-online.net</a></a> <br/>//&nbsp;&nbsp;@ Please Hold this item please. <br/>// <br/>//&nbsp;&nbsp;API <br/>//&nbsp;&nbsp;@ class: simulateSel&#101;ct() <br/>// <br/>//&nbsp;&nbsp;@ object.style(ctlStyle[,selStyle][,unselStyle]) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;ctlStyle: main control combox css class name <br/>//&nbsp;&nbsp;&nbsp;&nbsp;selStyle: when mouseover o&#114; option focus css class name <br/>//&nbsp;&nbsp;&nbsp;&nbsp;unselStyle: options blur&#39;s css class name <br/>// <br/>//&nbsp;&nbsp;@ object.width=(widthPX) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;widthPX must be a digit number. <br/>// <br/>//&nbsp;&nbsp;@ object.height=(heightPX) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;heightPX must be a digit number. <br/>// <br/>//&nbsp;&nbsp;@ object.getValue(ctlSelID) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;ctlSelID is the unique sel&#101;ct control ID <br/>// <br/>//&nbsp;&nbsp;-------------- for the next Version ---------- <br/>//&nbsp;&nbsp;@ object.readOnly = (blnReadOnly) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;blnReadOnly must be a boolean type o&#114; a number type. <br/>//&nbsp;&nbsp;@ object.addEvent(w, h) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;w: fire handler&#39;s event. <br/>//&nbsp;&nbsp;&nbsp;&nbsp;h: handler function. <br/>//------------------------------------------------------------- <br/><br/>function $(objID) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;return document.getElementById(objID); <br/>}; <br/>function Offset(e) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;var t = e.offsetTop; <br/>&nbsp;&nbsp;&nbsp;&nbsp;var l = e.offsetLeft; <br/>&nbsp;&nbsp;&nbsp;&nbsp;var w = e.offsetWidth; <br/>&nbsp;&nbsp;&nbsp;&nbsp;var h = e.offsetHeight-2; <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;while(e=e.offsetParent) <br/>&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t+=e.offsetTop; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l+=e.offsetLeft; <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/>&nbsp;&nbsp;&nbsp;&nbsp;return { <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top : t, <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left : l, <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width : w, <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height : h <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/>} <br/>//----------------------------------------------- <br/>function simulateSel&#101;ct() { with(this) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.IDs = []; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.name = this; <br/>&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;property for beta Version <br/>&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;can editable combox <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.readonly = true; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.height = 20; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.width = null; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.ctlStyle = &#34;CtlSel&#101;ct&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.selStyle = &#34;sel&#101;cted&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.unselStyle = &#34;unsel&#101;cted&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.elementPrefix = &#34;e__&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.inputPrefix = &#34;i__&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.containerPrefix = &#34;c__&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;this.buttonPrefix = &#34;b__&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;return this; <br/>}}; <br/>simulateSel&#101;ct.prototype.init = function(ctlSelIDs) { with(this) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;eval(name).append(ctlSelIDs); <br/>&nbsp;&nbsp;&nbsp;&nbsp;eval(name).simulates(); <br/>}}; <br/><br/>simulateSel&#101;ct.prototype.style = function() { with(this) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;ctlStyle = arguments[0]; <br/>&nbsp;&nbsp;&nbsp;&nbsp;selStyle = arguments[1]; <br/>&nbsp;&nbsp;&nbsp;&nbsp;unselStyle = arguments[2]; <br/><br/>}}; <br/>//----------------------------------------------- <br/>simulateSel&#101;ct.prototype.append = function(ctlSelIDs) { with(this) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;if( ctlSelIDs.indexOf(&#34;,&#34;)&gt;0 ) <br/>&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var arrCtlSel = ctlSelIDs.split(&#34;,&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(var i=0; i&lt;arrCtlSel.length; i++) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval(name).IDs.push(arrCtlSel[i]); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/>&nbsp;&nbsp;&nbsp;&nbsp;else <br/>&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval(name).IDs.push(ctlSelIDs); <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/>}}; <br/>simulateSel&#101;ct.prototype.checkupOnMouseDown = function(e) { with(this) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;// here compatible mf. <br/>&nbsp;&nbsp;&nbsp;&nbsp;var el = e ? e.srcElement : e.target; <br/>&nbsp;&nbsp;&nbsp;&nbsp;if( el.id.indexOf(elementPrefix)&gt;-1 ||&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;el.id.indexOf(inputPrefix)&gt;-1 ||&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;el.id.indexOf(containerPrefix)&gt;-1 ||&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;el.id.indexOf(buttonPrefix)&gt;-1 ) <br/>&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return; <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/>&nbsp;&nbsp;&nbsp;&nbsp;else <br/>&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(var i=0; i&lt;eval(name).IDs.length; i++) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if( $(containerPrefix + IDs[i]) ) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(containerPrefix + eval(name).IDs[i]).style.display = &#34;none&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/><br/>}}; <br/>simulateSel&#101;ct.prototype.simulates = function() { with(this) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;for(var i=0; i&lt;IDs.length; i++) <br/>&nbsp;&nbsp;&nbsp;&nbsp;eval(name).simulate(IDs[i]); <br/>}}; <br/>simulateSel&#101;ct.prototype.simulate = function(ctlSelID) { with (this) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;var input; <br/>&nbsp;&nbsp;&nbsp;&nbsp;var button; <br/>&nbsp;&nbsp;&nbsp;&nbsp;var object; <br/>&nbsp;&nbsp;&nbsp;&nbsp;var offset; <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;object = $(ctlSelID); <br/>&nbsp;&nbsp;&nbsp;&nbsp;offset = Offset(object); <br/>&nbsp;&nbsp;&nbsp;&nbsp;input = document.cr&#101;ateElement(&#34;INPUT&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;button = document.cr&#101;ateElement(&#34;BUTTON&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;button.setAttribute(&#34;id&#34;, buttonPrefix + ctlSelID); <br/>&nbsp;&nbsp;&nbsp;&nbsp;//button.value = &#34;⊿&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;button.value = &#34;6&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;button.style.fontFamily = &#34;Webdings, Marlett&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;button.style.background = &#34;&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;button.onclick = input.onclick = function() <br/>&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.blur(); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval(name).expand(ctlSelID, offset); <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/>&nbsp;&nbsp;&nbsp;&nbsp;input.onsel&#101;ctstart = function() { eval(name).expand(ctlSelID, offset); event.returnValue = false; }; <br/>&nbsp;&nbsp;&nbsp;&nbsp;input.setAttribute(&#34;id&#34;, inputPrefix + ctlSelID); <br/>&nbsp;&nbsp;&nbsp;&nbsp;input.title = button.title = &#34;click expand options&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;input.style.cursor = button.style.cursor = &#34;default&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;input.className = button.className = ctlStyle; <br/>&nbsp;&nbsp;&nbsp;&nbsp;input.style.width = (width&gt;0 ? width : object.offsetWidth); <br/>&nbsp;&nbsp;&nbsp;&nbsp;height ? input.style.height=button.style.height=height : &#34;&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;input.value = object[0].text; <br/>&nbsp;&nbsp;&nbsp;&nbsp;if( readonly==true ) input.readOnly=true; <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;// this method is only IE. <br/>&nbsp;&nbsp;&nbsp;&nbsp;object.ins&#101;rtAdjacentElement(&#34;afterEnd&#34;,button); <br/>&nbsp;&nbsp;&nbsp;&nbsp;object.ins&#101;rtAdjacentElement(&#34;afterEnd&#34;,input); <br/>&nbsp;&nbsp;&nbsp;&nbsp;object.style.display = &#39;none&#39;; <br/>}}; <br/>simulateSel&#101;ct.prototype.expand = function(ctlSelID, offset) { with(this) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;var div, btn_off; <br/>&nbsp;&nbsp;&nbsp;&nbsp;var object = $(ctlSelID); <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;if( !$(containerPrefix + ctlSelID) ) <br/>&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div = document.cr&#101;ateElement(&#34;DIV&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.style.position = &#34;absolute&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.style.display = &#34;block&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.setAttribute(&#34;id&#34;, containerPrefix + ctlSelID); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.className = ctlStyle; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.style.left = offset.left; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.style.top = offset.top + offset.height; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.style.width = (width ? width : offset.width) + 20; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.style.height = offset.height; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.body.appendChild(div); <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(var i=0; i&lt;object.length; i++) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div = document.cr&#101;ateElement(&#34;DIV&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.setAttribute(&#34;id&#34;, div.id = elementPrefix + ctlSelID + i); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.style.cursor = &#34;default&#34;; <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if( object[i].text==$(inputPrefix + ctlSelID).value ) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.className = selStyle; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.className = unselStyle; <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.innerText = div.title = object[i].text; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.style.height = height; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.setAttribute(&#34;value&#34;, object[i].value); <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.onmouseover = function() <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(var j=0; j&lt;$(containerPrefix + ctlSelID).childNodes.length; j++) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($(containerPrefix + ctlSelID).childNodes[j]==this) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(containerPrefix + ctlSelID).childNodes[j].className = selStyle; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(containerPrefix + ctlSelID).childNodes[j].className = unselStyle; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div.onclick = function() <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(inputPrefix + ctlSelID).value = this.innerText; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(containerPrefix + ctlSelID).style.display = &#34;none&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(containerPrefix + ctlSelID).appendChild(div); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return; <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;if( $(containerPrefix + ctlSelID).style.display==&#34;none&#34; ) <br/>&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(var i=0; i&lt;object.length; i++) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if( object[i].text==$(inputPrefix + ctlSelID).value ) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(elementPrefix + ctlSelID + i).className = selStyle; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(elementPrefix + ctlSelID + i).className = unselStyle; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(containerPrefix + ctlSelID).style.display=&#34;block&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return; <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;if( $(containerPrefix + ctlSelID).style.display==&#34;block&#34; ) <br/>&nbsp;&nbsp;&nbsp;&nbsp;{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(containerPrefix + ctlSelID).style.display=&#34;none&#34;; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return; <br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/>}}; <br/>simulateSel&#101;ct.prototype.getValue = function(ctlSelID) { with(this) <br/>{ <br/>&nbsp;&nbsp;&nbsp;&nbsp;if( $(inputPrefix + ctlSelID) ) <br/>&nbsp;&nbsp;&nbsp;&nbsp;return $(inputPrefix + ctlSelID).value; <br/>&nbsp;&nbsp;&nbsp;&nbsp;else <br/>&nbsp;&nbsp;&nbsp;&nbsp;return null; <br/>}}; <br/>simulateSel&#101;ct.prototype.addEvent = function(w, h) { with(this) <br/>{ <br/>}}; <br/>//----------------------------------------------- <br/>//window.onerror = Function(&#34;return true;&#34;); <br/>//&nbsp;&nbsp;IE only. <br/>document.attachEvent(&#34;onmousedown&#34;, function() { <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a.checkupOnMouseDown(event); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b.checkupOnMouseDown(event); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c.checkupOnMouseDown(event) <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;); <br/>//--&gt; <br/>&lt;/SCRIPT&gt; <br/>&lt;h1&gt; simulate combox control &lt;/h1&gt; <br/>&lt;h4&gt; demonstrate &lt;/h4&gt; <br/><br/><br/> <br/>&lt;sel&#101;ct id=&#34;s0&#34;&gt; <br/>&lt;option value=&#34;- please sel&#101;ct your options -&#34;&gt; - please sel&#101;ct your options -&lt;/option&gt; <br/>&lt;option value=&#34;1&#34;&gt;option1&lt;/option&gt; <br/>&lt;option value=&#34;2&#34;&gt;option2&lt;/option&gt; <br/>&lt;option value=&#34;3&#34;&gt;option3&lt;/option&gt; <br/>&lt;option value=&#34;4&#34;&gt;option4&lt;/option&gt; <br/>&lt;option value=&#34;5&#34;&gt;option5&lt;/option&gt; <br/>&lt;/sel&#101;ct&gt; <br/>&lt;/p&gt; <br/><br/>&lt;p&gt; <br/>&lt;sel&#101;ct id=&#34;s1&#34;&gt; <br/>&lt;option value=&#34;- please sel&#101;ct your options -&#34;&gt; - please sel&#101;ct your options -&lt;/option&gt; <br/>&lt;option value=&#34;1&#34;&gt;1option1&lt;/option&gt; <br/>&lt;option value=&#34;2&#34;&gt;1option2&lt;/option&gt; <br/>&lt;option value=&#34;3&#34;&gt;1option3&lt;/option&gt; <br/>&lt;option value=&#34;4&#34;&gt;1option4&lt;/option&gt; <br/>&lt;option value=&#34;5&#34;&gt;1option5&lt;/option&gt; <br/>&lt;/sel&#101;ct&gt; <br/>&lt;/p&gt; <br/><br/>&lt;p&gt; <br/>&lt;sel&#101;ct id=&#34;s2&#34;&gt; <br/>&lt;option value=&#34;- please sel&#101;ct your options -&#34;&gt; - please sel&#101;ct your options -&lt;/option&gt; <br/>&lt;option value=&#34;1&#34;&gt;2option1&lt;/option&gt; <br/>&lt;option value=&#34;2&#34;&gt;2option2&lt;/option&gt; <br/>&lt;option value=&#34;3&#34;&gt;2option3&lt;/option&gt; <br/>&lt;option value=&#34;4&#34;&gt;2option4&lt;/option&gt; <br/>&lt;option value=&#34;5&#34;&gt;2option5&lt;/option&gt; <br/>&lt;/sel&#101;ct&gt; <br/>&lt;/p&gt; <br/><br/>&lt;p&gt; <br/>&lt;sel&#101;ct id=&#34;s3&#34;&gt; <br/>&lt;option value=&#34;- please sel&#101;ct your options -&#34;&gt; - please sel&#101;ct your options -&lt;/option&gt; <br/>&lt;option value=&#34;1&#34;&gt;3option1&lt;/option&gt; <br/>&lt;option value=&#34;2&#34;&gt;3option2&lt;/option&gt; <br/>&lt;option value=&#34;3&#34;&gt;3option3&lt;/option&gt; <br/>&lt;option value=&#34;4&#34;&gt;3option4&lt;/option&gt; <br/>&lt;option value=&#34;5&#34;&gt;3option5&lt;/option&gt; <br/>&lt;/sel&#101;ct&gt; <br/>&lt;/p&gt; <br/><br/>&lt;button onclick=&#34;alert(a.getValue(&#39;s1&#39;) + &#39;\n\n&#39; + b.getValue(&#39;s2&#39;))&#34; class=&#34;CtlSel&#101;ct&#34;&gt; Get value &lt;/button&gt; <br/><br/>&lt;SCRIPT LANGUAGE=&#34;JavaScript&#34;&gt; <br/>&lt;!-- <br/>&nbsp;&nbsp;&nbsp;&nbsp;var a = new simulateSel&#101;ct(); <br/>&nbsp;&nbsp;&nbsp;&nbsp;a.style(&#34;CtlSel&#101;ct&#34;, &#34;sel&#101;cted&#34;, &#34;unsel&#101;cted&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;a.init(&#34;s1&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;var b = new simulateSel&#101;ct(); <br/>&nbsp;&nbsp;&nbsp;&nbsp;b.style(&#34;CtlSel&#101;ct1&#34;, &#34;sel&#101;cted1&#34;, &#34;unsel&#101;cted1&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;b.width = 300; <br/>&nbsp;&nbsp;&nbsp;&nbsp;b.init(&#34;s2&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;var c = new simulateSel&#101;ct(); <br/>&nbsp;&nbsp;&nbsp;&nbsp;c.style(&#34;CtlSel&#101;ct2&#34;, &#34;sel&#101;cted2&#34;, &#34;unsel&#101;cted2&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;c.width = 320; <br/>&nbsp;&nbsp;&nbsp;&nbsp;c.init(&#34;s3&#34;); <br/>//--&gt; <br/>&lt;/SCRIPT&gt; <br/><br/>&lt;h4&gt; description &lt;/h4&gt; <br/>&lt;pre&gt; <br/>//------------------------------------------------------------- <br/>//&nbsp;&nbsp;@ Module: simulate sel&#101;ct control, IE only. <br/>//&nbsp;&nbsp;@ Debug in: IE 6.0 <br/>//&nbsp;&nbsp;@ Script by: blueDestiny, never-online <br/>//&nbsp;&nbsp;@ Up&#100;ated: 2006-3-22 <br/>//&nbsp;&nbsp;@ Version: 1.0 apha <br/>//&nbsp;&nbsp;@ Email: blueDestiny [at] 126.com <br/>//&nbsp;&nbsp;@ Website: <a href="http://www.never-online.net" target="_blank"><a href="http://www.never-online.net" target="_blank">http://www.never-online.net</a></a> <br/>//&nbsp;&nbsp;@ Please Hold this item please. <br/>// <br/>//&nbsp;&nbsp;API <br/>//&nbsp;&nbsp;@ simulateSel&#101;ct(ctlSelIDs) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;ctlSelIDs: sel&#101;ct control IDs, split by &#34;,&#34; <br/>// <br/>//&nbsp;&nbsp;@ simulateSel&#101;ct.style(ctlStyle[,selStyle][,unselStyle]) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;ctlStyle: main control combox css class name <br/>//&nbsp;&nbsp;&nbsp;&nbsp;selStyle: when mouseover o&#114; option focus css class name <br/>//&nbsp;&nbsp;&nbsp;&nbsp;unselStyle: options blur&#39;s css class name <br/>// <br/>//&nbsp;&nbsp;@ simulateSel&#101;ct.width=(widthPX) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;widthPX must be a digit number. <br/>// <br/>//&nbsp;&nbsp;@ simulateSel&#101;ct.height=(heightPX) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;heightPX must be a digit number. <br/>// <br/>//&nbsp;&nbsp;-------------- for the next Version ---------- <br/>//&nbsp;&nbsp;@ simulateSel&#101;ct.readOnly = (blnReadOnly) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;blnReadOnly must be a boolean type o&#114; a number type. <br/>//&nbsp;&nbsp;@ simulateSel&#101;ct.addEvent(w, h) <br/>//&nbsp;&nbsp;&nbsp;&nbsp;w: fire handler&#39;s event. <br/>//&nbsp;&nbsp;&nbsp;&nbsp;h: handler function. <br/>//------------------------------------------------------------- <br/>&lt;/pre&gt; <br/><br/>&lt;div class=&#34;copyright&#34;&gt; <br/>Power By blueDestiny, never-online <br/><a href="http://www.never-online.net" target="_blank">http://www.never-online.net</a> <br/>&lt;/div&gt; <br/>&lt;/BODY&gt; <br/>&lt;/HTML&gt;<div class="UBBPanel"><div class="UBBTitle"><img src="http://blog.edotpower.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">http://www.alixixi.com/Dev/HTML/jsrun/menu/2007/2007040932690.html</div></div>]]></description>
		</item>
		
			<item>
			<link>http://blog.edotpower.com/default.asp?id=84</link>
			<title><![CDATA[CSS圆角边框 纯CSS制作]]></title>
			<author>star520dust@163.com(stardust)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Fri,16 May 2008 11:48:06 +0800</pubDate>
			<guid>http://blog.edotpower.com/default.asp?id=84</guid>	
		<description><![CDATA[&lt;style type=&#34;text/css&#34;&gt;<br/><br/>#xsnazzy h1, #xsnazzy h2, #xsnazzy p {margin:0 10px; letter-spacing:1px;}<br/>#xsnazzy h1 {font-size:2.5em; color:#fff;}<br/>#xsnazzy h2 {font-size:2em;color:#06a; border:0;}<br/>#xsnazzy p {padding-bottom:0.5em;}<br/>#xsnazzy h2 {padding-top:0.5em;}<br/>#xsnazzy {background: transparent; margin:1em;}<br/><br/>.xtop, .xbottom {display:block; background:transparent; font-size:1px;}<br/>.xb1, .xb2, .xb3, .xb4 {display:block; overflow:hidden;}<br/>.xb1, .xb2, .xb3 {height:1px;}<br/>.xb2, .xb3, .xb4 {background:#ccc; border-left:1px solid #08c; border-right:1px solid #08c;}<br/>.xb1 {margin:0 5px; background:#08c;}<br/>.xb2 {margin:0 3px; border-width:0 2px;}<br/>.xb3 {margin:0 2px;}<br/>.xb4 {height:2px; margin:0 1px;}<br/><br/>.xboxcontent {display:block; background:#ccc; border:0 solid #08c; border-width:0 1px;}<br/><br/><br/>&lt;/style&gt;<br/><br/>&lt;div id=&#34;xsnazzy&#34;&gt;<br/>&lt;b class=&#34;xtop&#34;&gt;&lt;b class=&#34;xb1&#34;&gt;&lt;/b&gt;&lt;b class=&#34;xb2&#34;&gt;&lt;/b&gt;&lt;b class=&#34;xb3&#34;&gt;&lt;/b&gt;&lt;b class=&#34;xb4&#34;&gt;&lt;/b&gt;&lt;/b&gt;<br/>&lt;div class=&#34;xboxcontent&#34;&gt;<br/>&lt;h1&gt;Snazzy Borders&lt;/h1&gt;<br/>&lt;p&gt;Based on Nifty Corners By Alessandro Fulciniti&lt;br /&gt;<a href="http://pro.html.it/esempio/nifty/" target="_blank">http://pro.html.it/esempio/nifty/</a>&lt;/p&gt;<br/><br/>&lt;h2&gt;Rounded borders without images&lt;/h2&gt;<br/>&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh<br/>&nbsp;&nbsp;euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim<br/>&nbsp;&nbsp;ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl<br/>&nbsp;&nbsp;ut aliquip ex ea commodo consequat.&lt;/p&gt;<br/>&lt;p&gt;Duis autem vel eum iriure dolor in hendrerit<br/>&nbsp;&nbsp;in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla<br/>&nbsp;&nbsp;facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent<br/>&nbsp;&nbsp;luptatum zzril delenit augue duis dolore te feugait nulla facilisi.&lt;/p&gt;<br/>&lt;/div&gt;<br/>&lt;b class=&#34;xbottom&#34;&gt;&lt;b class=&#34;xb4&#34;&gt;&lt;/b&gt;&lt;b class=&#34;xb3&#34;&gt;&lt;/b&gt;&lt;b class=&#34;xb2&#34;&gt;&lt;/b&gt;&lt;b class=&#34;xb1&#34;&gt;&lt;/b&gt;&lt;/b&gt;<br/>&lt;/div&gt;]]></description>
		</item>
		
			<item>
			<link>http://blog.edotpower.com/default.asp?id=62</link>
			<title><![CDATA[如何避免层被图片撑大？]]></title>
			<author>star520dust@163.com(stardust)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Sun,20 Apr 2008 11:21:27 +0800</pubDate>
			<guid>http://blog.edotpower.com/default.asp?id=62</guid>	
		<description><![CDATA[老问题了，如果是表格，baidu上搜索都是，css控制table<br/><br/>table {<br/>table-layout: fixed;<br/>word-break: break-all;<br/>}<br/><br/>如果是层呢，还是有办法，css控制div<br/><br/>div {<br/>table-layout: fixed;<br/>word-break: break-all;<br/>width: 加上宽度;<br/>overflow: hidden;&nbsp;&nbsp;&nbsp;&nbsp;(让多出来的不显示。)&nbsp;&nbsp; <br/>}<br/><br/>要显示怎么办，那只能用js控制了<br/>&lt;script language=&#34;JavaScript&#34;&gt; <br/>&lt;!-- <br/>var flag=false; <br/>function DrawImage(ImgD){ <br/>&nbsp;&nbsp; var image=new Image(); <br/>&nbsp;&nbsp; image.src=ImgD.src; <br/>&nbsp;&nbsp; if(image.width&gt;0 &amp;&amp; image.height&gt;0){&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp; if(image.width&gt;=510){ <br/>&nbsp;&nbsp;&nbsp;&nbsp; ImgD.width=510; <br/>&nbsp;&nbsp;&nbsp;&nbsp; ImgD.height=(image.height*510)/image.width; <br/>&nbsp;&nbsp;&nbsp;&nbsp; }else{ <br/>&nbsp;&nbsp;&nbsp;&nbsp; ImgD.width=image.width; <br/>&nbsp;&nbsp;&nbsp;&nbsp; ImgD.height=image.height; <br/>&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;} <br/>} <br/>//--&gt; <br/>&lt;/script&gt;<br/><br/>在图片的img 加入 onload=&#34;javascript:DrawImage(this);&#34;<br/><br/>还有一种方法<br/>img{flost:e&#173;xpression(onload=this.width=500)}<br/><br/>img{flost:e&#173;xpression(onload=function(){if(this.width&gt;500)this.width=500})}<br/><br/>不过好像第二个不好用，不能判断自动缩放。<br/>]]></description>
		</item>
		
			<item>
			<link>http://blog.edotpower.com/default.asp?id=36</link>
			<title><![CDATA[CSS完美兼容IE6/IE7/FF的通用方法]]></title>
			<author>star520dust@163.com(stardust)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Fri,11 Jan 2008 09:38:09 +0800</pubDate>
			<guid>http://blog.edotpower.com/default.asp?id=36</guid>	
		<description><![CDATA[关于CSS对各个浏览器兼容已经是老生常谈的问题了, 网络上的教程遍地都是.以下内容没有太多新颖, 纯属个人总结, 希望能对初学者有一定的帮助.<br/><br/>一、CSS HACK<br/>以下两种方法几乎能解决现今所有HACK.<br/><br/>1, !important<br/><br/>随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.)<br/>&lt;style&gt;<br/>#wrapper<br/>{<br/>width: 100px!important; /* IE7+FF */<br/>width: 80px; /* IE6 */<br/>}<br/>&lt;/style&gt;<br/><br/><br/>2, IE6/IE77对FireFox<br/><br/>*+html 与 *html 是IE特有的标签, firefox 暂不支持.而*+html 又为 IE7特有标签.<br/>&lt;style&gt;<br/>#wrapper<br/>{<br/>#wrapper { width: 120px; } /* FireFox */<br/>*html #wrapper { width: 80px;} /* ie6 fixed */<br/>*+html #wrapper { width: 60px;} /* ie7 fixed, 注意顺序 */<br/>}<br/>&lt;/style&gt;<br/><br/><br/>注意:<br/>*+html 对IE7的HACK 必须保证HTML顶部有如下声明：<br/>&lt;!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.01 Transitional//EN&#34;　&#34;<a href="http://www.w3.org/TR/html4/loose.dtd" target="_blank">http://www.w3.org/TR/html4/loose.dtd</a>&#34;&gt;<br/><br/>二、万能 float 闭合<br/><br/>关于 clear float 的原理可参见 [How To Clear Floats Without Structural Markup]<br/>将以下代码加入Global CSS 中,给需要闭合的div加上 class=&#34;clearfix&#34; 即可,屡试不爽.<br/>&lt;style&gt;<br/>/* Clear Fix */<br/><br/>.clearfix:after<br/>{<br/>content:&#34;.&#34;;<br/>display:block;<br/>height:0;<br/>clear:both;<br/>visibility:hidden;<br/>}<br/>.clearfix<br/>{<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;<br/><br/>三、其他兼容技巧<br/><br/>1, FF下给 div 设置 padding 后会导致 width 和 height 增加, 但IE不会.(可用!important解决)<br/>2, 居中问题.<br/>1).垂直居中.将 line-height 设置为 当前 div 相同的高度, 再通过 vertical-align: middle.( 注意内容不要换行.)<br/>2).水平居中. margin: 0 auto;(当然不是万能)<br/>3, 若需给 a 标签内内容加上 样式, 需要设置 display: block;(常见于导航标签)<br/>4, FF 和 IE 对 BOX 理解的差异导致相差 2px 的还有设为 float的div在ie下 margin加倍等问题.<br/>5, ul 标签在 FF 下面默认有 list-style 和 padding . 最好事先声明, 以避免不必要的麻烦. (常见于导航标签和内容列表)<br/>6, 作为外部 wrapper 的 div 不要定死高度, 最好还加上 overflow: hidden.以达到高度自适应.<br/>7, 关于手形光标. cursor: pointer. 而hand 只适用于 IE.<br/><br/>1 针对firefox ie6 ie7的css样式 <br/>现在大部分都是用!important来hack，对于ie6和firefox测试可以正常显示，<br/>但是ie7对!important可以正确解释，会导致页面没按要求显示！找到一个针<br/>对IE7不错的hack方式就是使用“*+html”，现在用IE7浏览一下，应该没有问题了。 <br/>现在写一个CSS可以这样： <br/><br/>#1 { color: #333; } /* Moz */ <br/>* html #1 { color: #666; } /* IE6 */ <br/>*+html #1 { color: #999; } /* IE7 */ <br/>那么在firefox下字体颜色显示为#333，IE6下字体颜色显示为#666，IE7下字体颜色显示为#999。<br/><br/>2 css布局中的居中问题 <br/>主要的样式定义如下：<br/><br/>body {TEXT-ALIGN: center;}<br/>#center { MARGIN-RIGHT: auto; MARGIN-LEFT: auto; } <br/>说明：<br/>首先在父级元素定义TEXT-ALIGN: center;这个的意思就是在父级元素内的内容居中；对于IE这样设定就已经可以了。<br/>但在mozilla中不能居中。解决办法就是在子元素定义时候设定时再加上“MARGIN-RIGHT: auto;MARGIN-LEFT: auto; ”<br/>需要说明的是，如果你想用这个方法使整个页面要居中，建议不要套在一个DIV里，你可以依次拆出多个div，<br/>只要在每个拆出的div里定义MARGIN-RIGHT: auto;MARGIN-LEFT: auto; 就可以了。<br/><br/>3 盒模型不同解释<br/><br/>#box{ width:600px; //for ie6.0- w\idth:500px; //for ff+ie6.0}<br/>#box{ width:600px!important //for ff width:600px; //for ff+ie6.0 width /**/:500px; //for ie6.0-} <br/><br/>4 浮动ie产生的双倍距离<br/><br/>#box{ float:left; width:100px; margin:0 0 0 100px; //这种情况之下IE会产生200px的距离 display:inline; //使浮动忽略}<br/>这里细说一下block,inline两个元素,Block元素的特点是:总是在新行上开始,高度,宽度,行高,边距都可以控制(块元素);Inline元素的特点是:和其他元素在同一行上,...不可控制(内嵌元素);<br/><br/>#box{ display:block; //可以为内嵌元素模拟为块元素 display:inline; //实现同一行排列的的效果 diplay:table;<br/><br/>IE不认得min-这个定义，但实际上它把正常的width和height当作有min的情况来使。这样问题就大了，如果只用宽度和高度，<br/>正常的浏览器里这两个值就不会变，如果只用min-width和min-height的话，IE下面根本等于没有设置宽度和高度。<br/>比如要设置背景图片，这个宽度是比较重要的。要解决这个问题，可以这样：<br/>#box{ width: 80px; height: 35px;}html&gt;body #box{ width: auto; height: auto; min-width: 80px; min-height: 35px;}<br/><br/>6 页面的最小宽度<br/><br/>min-width是个非常方便的CSS命令，它可以指定元素最小也不能小于某个宽度，这样就能保证排版一直正确。但IE不认得这个，<br/>而它实际上把width当做最小宽度来使。为了让这一命令在IE上也能用，可以把一个&lt;div&gt; 放到 &lt;body&gt; 标签下，然后为div指定一个类：<br/>然后CSS这样设计：<br/>#container{ min-width: 600px; width:e&#173;xpression(document.body.clientWidth &lt; 600? &#34;600px&#34;: &#34;auto&#34; );}<br/>第一个min-width是正常的；但第2行的width使用了Javascript，这只有IE才认得，这也会让你的HTML文档不太正规。它实际上通过Javascript的判断来实现最小宽度。<br/><br/>7 清除浮动<br/><br/>.hackbox{ display:table; //将对象作为块元素级的表格显示}或者.hackbox{ clear:both;}<br/>或者加入:after（伪对象）,设置在对象后发生的内容，通常和content配合使用，IE不支持此伪对象，非Ie 浏览器支持，<br/>所 以并不影响到IE/WIN浏览器。这种的最麻烦的......#box:after{ content: &#34;.&#34;; display: block; height: 0; clear: both; visibility: hidden;} <br/><br/>8 DIV浮动IE文本产生3象素的bug<br/><br/>左边对象浮动，右边采用外补丁的左边距来定位，右边对象内的文本会离左边有3px的间距.<br/><br/>#box{ float:left; width:800px;}#left{ float:left; width:50%;}#right{ width:50%;}*html #left{ margin-right:-3px; //这句是关键}<br/>HTML代码&lt;div id=&#34;box&#34;&gt; &lt;div id=&#34;left&#34;&gt;&lt;/div&gt; &lt;div id=&#34;right&#34;&gt;&lt;/div&gt;&lt;/div&gt;<br/><br/>9 属性选择器(这个不能算是兼容,是隐藏css的一个bug)<br/><br/>p[id]{}div[id]{}<br/>这个对于IE6.0和IE6.0以下的版本都隐藏,FF和OPera作用<br/>属性选择器和子选择器还是有区别的,子选择器的范围从形式来说缩小了,属性选择器的范围比较大,如p[id]中,所有p标签中有id的都是同样式的.<br/><br/>10 IE捉迷藏的问题<br/><br/>当div应用复杂的时候每个栏中又有一些链接，DIV等这个时候容易发生捉迷藏的问题。<br/>有些内容显示不出来，当鼠标选择这个区域是发现内容确实在页面。<br/>解决办法：对#layout使用line-height属性 或者给#layout使用固定高和宽。页面结构尽量简单。<br/><br/>11 高度不适应<br/><br/>高度不适应是当内层对象的高度发生变化时外层高度不能自动进行调节，特别是当内层对象使用<br/>margin 或paddign 时。<br/>例：<br/>&lt;div id=&#34;box&#34;&gt; <br/>&lt;p&gt;p对象中的内容&lt;/p&gt; <br/>&lt;/div&gt; <br/>CSS：#box {background-color:#eee; } <br/>#box p {margin-top: 20px;margin-bottom: 20px; text-align:center; }<br/>解决方法：在P对象上下各加2个空的div对象CSS代码：.1{height:0px;overflow:hidden;}或者为DIV加上border属性。<br/>]]></description>
		</item>
		
			<item>
			<link>http://blog.edotpower.com/default.asp?id=35</link>
			<title><![CDATA[关于IE6/IE7/Firefox的CSS调试教程]]></title>
			<author>star520dust@163.com(stardust)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Fri,11 Jan 2008 09:36:55 +0800</pubDate>
			<guid>http://blog.edotpower.com/default.asp?id=35</guid>	
		<description><![CDATA[最近都在制作一些网站，１个人调试３种浏览器很是吃力，首先说一下浏览器：ＩＥ７，ＩＥ６绿色版，ＦＩＲＥＦＯＸ．为什么ＩＥ６要绿色版本？因为微软是不允许ＩＥ６和ＩＥ７同时存在的，在安装ＩＥ７的同时ＩＥ６就被升级了．<br/><br/>一些ＤＩＶ+ＣＳＳ的基础属性我在这里就不提了，主要说一下几个非常影响３种浏览器显示效果的问题．<br/><br/>三种浏览器的识别问题：<br/><br/>#example { color: #333; } /* Moz */<br/>* html #example { color: #666; } /* IE6 */<br/>*+html #example { color: #999; } /* IE7 */<br/><br/>首先火狐不识别任何特殊符号，但是识别!important;而ＩＥ６识别*和_　，而ＩＥ７则识别*也识别!important;但是不识别_<br/><br/>所以在出现ＩＥ７之前我们可以用!important;*来调整页面，但是ＩＥ７的出现却打乱了我们的方法！！<br/><br/>在大部分情况下，调整好火狐和ＩＥ７后，ＩＥ６不会出现太大的差距，一般情况下出现的问题就是<br/><br/>浮动ie产生的双倍距离<br/><br/>举一个网上大侠的例子：<br/><br/>#box{ float:left; width:100px; margin:0 0 0 100px; //这种情况之下IE会产生200px的距离 display:inline; //使浮动忽略}<br/><br/>这句display:inline很重要！！<br/><br/>这里牵扯到一个问题，因为ＩＥ存在ＣＳＳ向后继承，而Firefox不支持，因此如果我们不对每个标签定义使用浮动float属性的话，在Firefox中就会出现ＤＩＶ溢出。使排版混乱．<br/><br/>另外的问题就是margin属性的像素差问题.<br/><br/>举个例子来解决：<br/><br/>margin-left:30px!important;margin-left:28px;<br/><br/>由于!important;只有ＩＥ７和Firefox识别，因此会默认执行margin-left:30px，而ＩＥ６不识别!important;因此会执行margin-left:28px;这样，用相同的方法，我们就可以清除2px像素的差来达到无缝衔接．由于在使用margin 或padding 时，我们会发现padding所出现的差值问题要比margin少的多的多！因此我强烈建议大家能用padding的时候尽量不要使用margin，这样会减少很多麻烦．<br/>]]></description>
		</item>
		
			<item>
			<link>http://blog.edotpower.com/default.asp?id=17</link>
			<title><![CDATA[CSS hack:区分IE6，IE7，firefox]]></title>
			<author>star520dust@163.com(stardust)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Wed,19 Dec 2007 19:48:09 +0800</pubDate>
			<guid>http://blog.edotpower.com/default.asp?id=17</guid>	
		<description><![CDATA[区别不同浏览器，CSS hack写法：<br/><br/>区别IE6与FF：<br/>background:orange;*background:blue;<br/><br/><br/>区别IE6与IE7：<br/>background:green !important;background:blue;<br/><br/><br/>区别IE7与FF：<br/>background:orange; *background:green;<br/><br/><br/>区别FF，IE7，IE6：<br/>background:orange;*background:green !important;*background:blue;<br/><br/><br/>注：IE都能识别*;标准浏览器(如FF)不能识别*；<br/>IE6能识别*，但不能识别 !important,<br/>IE7能识别*，也能识别!important;<br/>FF不能识别*，但能识别!important; ]]></description>
		</item>
		
			<item>
			<link>http://blog.edotpower.com/default.asp?id=15</link>
			<title><![CDATA[css解决IE6，IE7，firefox兼容性问题 ]]></title>
			<author>star520dust@163.com(stardust)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Sun,16 Dec 2007 10:51:01 +0800</pubDate>
			<guid>http://blog.edotpower.com/default.asp?id=15</guid>	
		<description><![CDATA[转自<a href="http://www.eoogle.cn/html/2007-10/40.html" target="_blank">http://www.eoogle.cn/html/2007-10/40.html</a><br/><br/>在当前IE6 IE7 FifeFox三分天下的情况下,浏览器兼容性问题成为网页设计者需要考虑的问题.&nbsp;&nbsp;&nbsp;&nbsp;<br/><br/>区别不同浏览器的CSS hack写法： <br/><br/>区别IE6与FF： <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background:orange;*background:blue; <br/><br/>区别IE6与IE7： <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background:green !important;background:blue; <br/><br/>区别IE7与FF： <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background:orange; *background:green; <br/><br/>区别FF，IE7，IE6： <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background:orange;*background:green !important;*background:blue; <br/><br/>注：IE都能识别*;标准浏览器(如FF)不能识别*；<br/><br/>IE6能识别*，但不能识别 !important, <br/>IE7能识别*，也能识别!important; <br/>FF不能识别*，但能识别!important; <br/><br/>&nbsp;&nbsp; IE6&nbsp;&nbsp;IE7&nbsp;&nbsp;FF <br/> *&nbsp;&nbsp;√&nbsp;&nbsp;√&nbsp;&nbsp;× <br/> !important&nbsp;&nbsp;×&nbsp;&nbsp;√&nbsp;&nbsp;√ <br/><br/><br/>------------------------------------------------------ <br/>另外再补充一个，下划线&#34;_&#34;, <br/>IE6支持下划线，IE7和firefox均不支持下划线。 <br/><br/>于是大家还可以这样来区分IE6，IE7，firefox <br/>: background:orange;*background:green;_background:blue;&nbsp;&nbsp;<br/><br/>注：不管是什么方法，书写的顺序都是firefox的写在前面，IE7的写在中间，IE6的写在最后面。<br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://blog.edotpower.com/default.asp?id=10</link>
			<title><![CDATA[正确的DIV&amp;Css布局对SEO的影响]]></title>
			<author>star520dust@163.com(stardust)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Wed,12 Dec 2007 11:53:10 +0800</pubDate>
			<guid>http://blog.edotpower.com/default.asp?id=10</guid>	
		<description><![CDATA[DIV&amp;CSS对SEO的影响是显而易见的，由于结构简单，且符合标准，利用DIV&amp;CSS构建的网站深受搜索引擎的喜欢，不过并不是所有的DIV&amp;CSS对网站的排名有好处，正确的网页布局，对于SEO是非常有好处的。 <br/><br/>我们都知道，蜘蛛是从上到下，从左到右访问网站信息的，而且，蜘蛛访问的是代码，而不是你网页做的如何漂亮，所以，在建立网站的时候，关键内容在网页中的位置非常重要。我们在研究那些比较大的网站时，都会发现，整个网页代码被很多注释所包围，这个注释有两个好处，一是便于技术人员对代码的调整，二是便于SEOer了解具体的关键内容在那里，便于调整。 <br/><br/>举个很简单的例子，在一个三层DIV的网页中，假如你的关键区域在三层代码的最上面，那么搜索引擎第一行看到的就是你的关键区域，示例如下： <br/><br/>原代码： <br/><br/>&lt;div id=div1&gt; <br/><br/>&lt;div id=div2&gt;网站LOGO等信息&lt;/div&gt; <br/><br/>&lt;div id=div3&gt;网站联系方式等信息&lt;/div&gt; <br/><br/>&lt;div id=div4&gt;关键区域&lt;/div&gt; <br/><br/>&lt;/div&gt; <br/><br/>上面的代码我们可以看到，搜索引擎所看到的第一个信息就是LOGO和网站信息，蜘蛛来了第一眼看到的是个图片，首先就不知道这个是什么东西，据我观察，如果加了ALT还容易被K，所以，这么重要的地方就等于浪费了，再看第二行，是网站的联系方式，还是不是你网页的关键内容，蜘蛛就糊涂了，这对排名还是不利。而蜘蛛到了第三行代码才看到你要表达的是什么，这就被前两条所影响，你就不能得到你想要的实际效果了。 <br/><br/>有些朋友可能会说，代码如果不这么写 就可能会乱，而且如果把最后一行代码提到第一行不好定位，这个简单，只要你用CSS控制好这一层的位置，然后代码你就可以随意移动了。 <br/><br/>正确的写法可以这样 <br/><br/>&lt;div id=div1&gt; <br/><br/>&lt;div id=div4&gt;关键区域&lt;/div&gt; <br/><br/>&lt;div id=div2&gt;网站LOGO等信息&lt;/div&gt; <br/><br/>&lt;div id=div3&gt;网站联系方式等信息&lt;/div&gt; <br/><br/>&lt;/div&gt; <br/><br/>总之一句话，养成良好的写代码的习惯，多研究搜索引擎的习惯，你做的网站，排名一定会很不错的。 <br/><br/>本文原载：飘渺蝶舞的SEO梦想 ]]></description>
		</item>
		
</channel>
</rss>