<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[PJBlog3]]></title>
<link>http://www.lipeiyu123.cn/blog/</link>
<description><![CDATA[创造机会的人是勇者；等待机会的人是愚者]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[619680470@qq.com(nurture)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>PJBlog3</title>
	<url>http://www.lipeiyu123.cn/blog/images/logos.gif</url>
	<link>http://www.lipeiyu123.cn/blog/</link>
	<description>PJBlog3</description>
</image>

			<item>
			<link>http://www.lipeiyu123.cn/blog/article/lee01.htm</link>
			<title><![CDATA[div+css]]></title>
			<author>619680470@qq.com(lee)</author>
			<category><![CDATA[生活]]></category>
			<pubDate>Tue,10 Jan 2012 00:56:47 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=44</guid>
		<description><![CDATA[<p>&nbsp;</p>
<div style="text-align: left; background: white" align="left"><b>字体属性：<span>(font)</span></b></div>
<div style="text-align: left; background: white" align="left">字体：<span>&quot;&quot; lang=EN-US&gt; Arial, Helvetica, sans-serif, Verdana, &ldquo;宋体<span>&rdquo;</span></span>
<p>&nbsp;</p>
</div>
<div style="text-align: left; background: white" align="left">大小font-size: 12px;</div>
<div style="text-align: left; background: white" align="left">行高line-height: 24px;</div>
<div style="text-align: left; background: white" align="left">粗细font-weight: bold;(粗体<span>)</span></div>
<div style="text-align: left; background: white" align="left">修饰text-decoration: underline;(下划线<span>)</span></div>
<div style="text-align: left; background: white" align="left">&nbsp;</div>
<div style="text-align: left; background: white" align="left"><b>背景属性：<span> (background)</span></b></div>
<div style="text-align: left; background: white" align="left">色彩background-color: #FFFFFF;</div>
<div style="text-align: left; background: white" align="left">图片background-image: url();</div>
<div style="text-align: left; background: white" align="left">重复background-repeat: no-repeat;</div>
<div style="text-align: left; background: white" align="left">滚动background-attachment: fixed;(固定<span>) scroll;(滚动)</span></div>
<div style="text-align: left; background: white" align="left">位置background-position: left(水平<span>) top(垂直);</span></div>
<div style="text-align: left; background: white" align="left">简写方法 background:#000 url(..) repeat fixed left top;</div>
<div style="text-align: left; background: white" align="left">&nbsp;</div>
<div style="text-align: left; background: white" align="left"><b>区块属性：<span> (Block)</span></b></div>
<div style="text-align: left; background: white" align="left">字间距letter-spacing: normal; 数值</div>
<div style="text-align: left; background: white" align="left">水平对齐text-align: justify;(两端对齐<span>) left;(左对齐) right;(右对齐) center;(居中)</span></div>
<div style="text-align: left; background: white" align="left">缩进text-indent: 2em;(2个字符<span>)也可用数值px;</span></div>
<div style="text-align: left; background: white" align="left">显示display:block;(块<span>) inline;(内嵌)</span></div>
<div style="text-align: left; background: white" align="left">&nbsp;</div>
<div style="text-align: left; background: white" align="left">filter:alpha(opacity=30); 设置背景透明</div>
<div style="text-align: left; background: white" align="left">&nbsp;</div>
<div style="text-align: left; background: white" align="left"><b>方框属性：<span> (Box)</span></b></div>
<div style="text-align: left; background: white" align="left">width:;</div>
<div style="text-align: left; background: white" align="left">height:;</div>
<div style="text-align: left; background: white" align="left">float:;</div>
<div style="text-align: left; background: white" align="left">clear:both;</div>
<div style="text-align: left; background: white" align="left">margin:;</div>
<div style="text-align: left; background: white" align="left">padding:;</div>
<div style="text-align: left; background: white" align="left"><span style="color: red">顺序：上右下左</span></div>
<div style="text-align: left; background: white" align="left">&nbsp;</div>
<div style="text-align: left; background: white" align="left"><b>边框属性：<span> (Border)</span></b></div>
<div style="text-align: left; background: white" align="left">border-style: dotted;(点线<span>) dashed;(虚线) solid;(实线)</span></div>
<div style="text-align: left; background: white" align="left">border-width:; 边框宽度</div>
<div style="text-align: left; background: white" align="left">border-color:#;</div>
<div style="text-align: left; background: white" align="left">border：<span>none;(无)</span></div>
<div style="text-align: left; background: white" align="left">简写方法border：<span>width style color;</span></div>
<div style="text-align: left; background: white" align="left">&nbsp;</div>
<div style="text-align: left; background: white" align="left"><b>列表属性：<span> (List-style)</span></b></div>
<div style="text-align: left; background: white" align="left">类型list-style-type: none;(无<span>) disc;(圆点) circle;(圆圈) square;(方块)</span></div>
<div style="text-align: left; background: white" align="left">位置list-style-position: outside;(外<span>) inside;</span></div>
<div style="text-align: left; background: white" align="left">图像list-style-image: url(..);</div>
<div style="text-align: left; background: white" align="left">&nbsp;</div>
<div style="text-align: left; background: white" align="left"><b>定位属性：<span> (Position)</span></b></div>
<div style="text-align: left; background: white" align="left">overflow: hidden;用于制作小于默认高度<span>(1em)的div，如制作1px高的div</span></div>
<div style="text-align: left; background: white" align="left">html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); } 网站变灰色</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">强制不换行</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">div{<br />
white-space:nowrap;<br />
}</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black"><br />
</span><span style="color: black">自动换行</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">div{ <br />
word-wrap: break-word; <br />
word-break: normal; <br />
}</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black"><br />
</span><span style="color: black">强制英文单词断行</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">div{<br />
word-break:break-all;<br />
}</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">============================================</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">CSS</span><span style="color: black">设置不转行</span><span style="color: black">:</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">overflow:hidden </span><span style="color: black">隐藏</span><span style="color: black"><br />
white-space</span><span style="color: black">：</span><span style="color: black">normal </span><span style="color: black">默认</span><span style="color: black"> <br />
pre </span><span style="color: black">换行和其他空白字符都将受到保护</span><span style="color: black"><br />
nowrap </span><span style="color: black">强制在同一行内显示所有文本，直到文本结束或者遭遇</span><span style="color: black"> br </span><span style="color: black">对象</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black"><br />
</span><span style="color: black">设置强行换行</span><span style="color: black"><br />
word-break: <br />
normal ; </span><span style="color: black">依照亚洲语言和非亚洲语言的文本规则，允许在字内换行</span><span style="color: black"><br />
break-all : </span><span style="color: black">　该行为与亚洲语言的</span><span style="color: black">normal</span><span style="color: black">相同。也允许非亚洲语言文本行的任意字内断开。该值适合包含一些非亚洲文本的亚洲文本</span><span style="color: black"><br />
keep-all : </span><span style="color: black">　与所有非亚洲语言的</span><span style="color: black">normal</span><span style="color: black">相同。对于中文，韩文，日文，不允许字断开。适合包含少量亚洲文本的非亚洲文本与之间的高度解决办法</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">============================================</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">看了以上的介绍，赶快试一下，看看效果吧！</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">英文不换行</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">CSS</span><span style="color: black">里加上</span><span style="color: black"> word-break: break-all; </span><span style="color: black">问题解决。这个问题只有</span><span style="color: black">IE</span><span style="color: black">才有，在</span><span style="color: black">FF</span><span style="color: black">下测试</span><span style="color: black">,FF</span><span style="color: black">可以自己加滚动条，这样也不影响效果</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">建议大家做</span><span style="color: black">Skin</span><span style="color: black">时，记得在</span><span style="color: black">body</span><span style="color: black">里加</span><span style="color: black"> word-break: break-all; </span><span style="color: black">这样可以解决</span><span style="color: black">IE</span><span style="color: black">的框架被英文撑开的问题</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">以下引用</span><span style="color: black">word-break</span><span style="color: black">的说明</span><span style="color: black">, </span><span style="color: black">注意</span><span style="color: black">word-break </span><span style="color: black">是</span><span style="color: black">IE5+</span><span style="color: black">专有属性</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">语法：</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">word-break : normal | break-all | keep-all</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">参数：</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">normal : </span><span style="color: black">　依照亚洲语言和非亚洲语言的文本规则，允许在字内换行</span><span style="color: black"><br />
break-all : </span><span style="color: black">　该行为与亚洲语言的</span><span style="color: black">normal</span><span style="color: black">相同。也允许非亚洲语言文本行的任意字内断开。该值适合包含一些非亚洲文本的亚洲文本</span><span style="color: black"><br />
keep-all : </span><span style="color: black">　与所有非亚洲语言的</span><span style="color: black">normal</span><span style="color: black">相同。对于中文，韩文，日文，不允许字断开。适合包含少量亚洲文本的非亚洲文本</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">说明：</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">设置或检索对象内文本的字内换行行为。尤其在出现多种语言时。</span><span style="color: black"><br />
</span><span style="color: black">对于中文，应该使用</span><span style="color: black">break-all </span><span style="color: black">。</span><span style="color: black"><br />
</span><span style="color: black">对应的脚本特性为</span><span style="color: black">wordBreak</span><span style="color: black">。请参阅我编写的其他书目。</span></div>
<div style="text-align: left; margin: 0cm 0cm 12pt; background: white" align="left"><span style="color: black">示例：</span></div>
<div style="text-align: left; background: white" align="left"><span style="color: black">div {word-break : break-all; }</span></div>
<div>&nbsp;</div>]]></description>
		</item>
		
			<item>
			<link>http://www.lipeiyu123.cn/blog/article/df.htm</link>
			<title><![CDATA[使flash背景透明，让flash置于DIV层之下的方法，让flash不挡住飘浮层或下拉... ]]></title>
			<author>619680470@qq.com(lee)</author>
			<category><![CDATA[生活]]></category>
			<pubDate>Mon,17 Oct 2011 01:46:42 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=43</guid>
		<description><![CDATA[<p>让flash置于DIV层之下的方法，让flash不挡住飘浮层或下拉菜单<br />
让Flash不档住浮动对象或层的关键参数：wmode=opaque</p>
<p><br />
方法：<br />
针对IE 在&lt;object&gt;&lt;/object&gt;内加上参数&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot; /&gt;<br />
针对FF 在&lt;embed /&gt;内加上参数wmode=&quot;opaque&quot;</p>
<p><br />
标准的的Flash插入<br />
&lt;!-- 标准的的Flash插入<br />
设置高度与宽度：<br />
width=&quot;400&quot; height=&quot;400&quot;<br />
设置路径：<br />
data=&quot;style/flash/001.swf&quot; 与 value=&quot;style/flash/001.swf&quot;<br />
替代文本或替代图片：<br />
&lt;a href=&quot;&quot; title=&quot;&quot;&gt;&lt;img src=&quot;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; 也可以不要这段<br />
--&gt;<br />
&lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;style/flash/001.swf&quot; width=&quot;400&quot; height=&quot;400&quot;&gt;<br />
&lt;param name=&quot;movie&quot; value=&quot;style/flash/001.swf&quot; /&gt;<br />
&lt;a href=&quot;style/flash/001.swf&quot;&gt;&lt;img src=&quot;style/img/001.jpg&quot; alt=&quot;Flash动画&quot; /&gt;&lt;/a&gt;<br />
&lt;/object&gt;</p>
<p>不会遮住层的Flash&nbsp; <br />
&lt;!-- 不会遮住层的Flash <br />
让Flash不档住浮动对象或层的关键属性：<br />
&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot; /&gt;<br />
&lt;embed wmode=&quot;opaque&quot;&gt;&lt;/embed&gt;<br />
--&gt;<br />
&lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;style/flash/001.swf&quot; width=&quot;400&quot; height=&quot;400&quot;&gt;<br />
&lt;param name=&quot;movie&quot; value=&quot;style/flash/001.swf&quot; /&gt;<br />
&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot; /&gt;<br />
&lt;embed wmode=&quot;opaque&quot;&gt;&lt;/embed&gt;<br />
&lt;a href=&quot;style/flash/001.swf&quot;&gt;&lt;img src=&quot;style/img/001.jpg&quot; alt=&quot;Flash动画&quot; /&gt;&lt;/a&gt;<br />
&lt;/object&gt;</p>
<p>透明的Flash&nbsp; <br />
&lt;!-- 透明的Flash<br />
让Flash透明的关键属性：<br />
&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;<br />
--&gt;<br />
&lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;style/flash/001.swf&quot; width=&quot;400&quot; height=&quot;400&quot;&gt;<br />
&lt;param name=&quot;movie&quot; value=&quot;style/flash/001.swf&quot; /&gt;<br />
&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;<br />
&lt;a href=&quot;style/flash/001.swf&quot;&gt;&lt;img src=&quot;style/img/001.jpg&quot; alt=&quot;Flash动画&quot; /&gt;&lt;/a&gt;<br />
&lt;/object&gt;</p>
<p><br />
（二）FLASH帮助</p>
<p>wmode 属性/参数值Window | Opaque | Transparent</p>
<p>模板变量：$WM</p>
<p>说明<br />
（可选）允许使用 Internet Explorer 4.0 中的透明 Flash 内容、绝对定位和分层显示功能。此标记/属性仅在带有 Flash Player ActiveX 控件的 Windows 中有效。</p>
<p>&quot;Window&quot;在 Web 页上用影片自己的矩形窗口来播放应用程序。&quot;Window&quot;表明此 Flash 应用程序与 HTML 层没有任何交互，并且始终位于最顶层。</p>
<p>&quot;Opaque&quot; 使应用程序隐藏页面上位于它后面的所有内容。</p>
<p>&quot;Transparent&quot;使 HTML 页的背景可以透过应用程序的所有透明部分显示出来，并且可能会降低动画性能。</p>
<p>&quot;Opaque windowless&quot;和&quot;Transparent windowless&quot;都可与 HTML 层交互，从而允许 SWF 文件上方的层遮蔽应用程序。这两种选项之间的差异在于&quot;Transparent&quot;允许透明，因此，如果 SWF 文件的某一部分是透明的，则 SWF 文件下方的 HTML 层可以透过该部分显示出来，而&quot;opaque&quot;则不会显示。</p>
<p>如果忽略此属性，默认值为 Window。仅适用于 object。</p>]]></description>
		</item>
		
			<item>
			<link>http://www.lipeiyu123.cn/blog/article/         c.htm</link>
			<title><![CDATA[JS动画滑动效果的导航菜单]]></title>
			<author>619680470@qq.com(nurture)</author>
			<category><![CDATA[生活]]></category>
			<pubDate>Fri,07 Jan 2011 16:16:07 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=42</guid>
		<description><![CDATA[<p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br />
&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br />
&nbsp;&lt;head&gt;<br />
&nbsp;&nbsp;&lt;title&gt;JS动画滑动效果的导航菜单 - <a href="http://www.webdm.cn&lt;/title">www.webdm.cn&lt;/title</a>&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
&lt;!--<br />
body,div,ul,li,p,h1,h2{ margin:0; padding:0; border:0; background:#FAFAFA; font-family:Arial, Helvetica, sans-serif,&quot;宋体&quot;}<br />
body{ text-align:center; font-size:12px}<br />
li{ list-style:none}<br />
.rolinList{ width:402px; height:auto; margin:20px auto 0 auto; text-align:left}<br />
.rolinList li{margin-bottom:1px;border:1px solid #DADADA}<br />
.rolinList li h2{ width:380px; height:40px;&nbsp; background:#fff; font-size:14px; line-height:40px; padding-left:20px; color:#333; cursor:pointer}<br />
.content{ height:150px;width:400px;&nbsp; background:#fff;&nbsp; background:#FAFAFA}<br />
.content p{ margin:12px}<br />
--&gt;<br />
&lt;/style&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
//&lt;![CDATA[<br />
window.onload = function() {<br />
rolinTab(&quot;rolin&quot;)<br />
}<br />
function rolinTab(obj) {<br />
var list = $(obj).getElementsByTagName(&quot;LI&quot;);<br />
var state = {show:false,hidden:false,showObj:false};</p>
<p>for (var i=0; i&lt;list.length; i++) {<br />
var tmp = new rolinItem(list[i],state);<br />
if (i == 0) tmp.pShow();<br />
}<br />
}</p>
<p>function rolinItem(obj,state) {<br />
var speed = 0.0666; <br />
var range = 1;<br />
var interval;<br />
var tarH;<br />
var tar = this;<br />
var head = getFirstChild(obj);<br />
var content = getNextChild(head);<br />
var isOpen = false;<br />
this.pHidden = function() {<br />
if (isOpen) hidden();<br />
}<br />
this.pShow = show;</p>
<p>var baseH = content.offsetHeight;<br />
content.style.display = &quot;none&quot;;<br />
var isOpen = false;</p>
<p>head.onmouseover = function() {<br />
this.style.background = &quot;#EFEFEF&quot;;<br />
}</p>
<p>head.onmouseout = mouseout;</p>
<p>head.onclick = function() {<br />
this.style.background = &quot;#EFEFEF&quot;;<br />
if (!state.show &amp;&amp; !state.hidden) {<br />
if (!isOpen) {<br />
head.onmouseout = null;<br />
show();<br />
} else {<br />
hidden();<br />
}</p>
<p>}<br />
}</p>
<p>function mouseout() {<br />
this.style.background = &quot;#FFF&quot;<br />
}<br />
function show() {<br />
head.style.borderBottom = &quot;1px solid #DADADA&quot;;<br />
state.show = true;<br />
if (state.openObj &amp;&amp; state.openObj != tar ) {<br />
state.openObj.pHidden();<br />
}<br />
content.style.height = &quot;0px&quot;;<br />
content.style.display = &quot;block&quot;;<br />
content.style.overflow = &quot;hidden&quot;;<br />
state.openObj = tar;<br />
tarH = baseH;</p>
<p>interval = setInterval(move,10);<br />
}<br />
function showS() {<br />
isOpen = true;<br />
state.show = false;<br />
}</p>
<p>function hidden() {<br />
state.hidden = true;<br />
tarH = 0;<br />
interval = setInterval(move,10);<br />
}</p>
<p>function hiddenS() {<br />
head.style.borderBottom = &quot;none&quot;;<br />
head.onmouseout = mouseout;<br />
head.onmouseout();<br />
content.style.display = &quot;none&quot;;<br />
isOpen = false;<br />
state.hidden = false;<br />
}</p>
<p>function move() {<br />
var dist = (tarH - content.style.height.pxToNum())*speed;<br />
if (Math.abs(dist) &lt; 1) dist = dist &gt; 0 ? 1: -1;<br />
content.style.height = (content.style.height.pxToNum() + dist) + &quot;px&quot;;<br />
if (Math.abs(content.style.height.pxToNum() - tarH) &lt;= range ) {<br />
clearInterval(interval);<br />
content.style.height = tarH + &quot;px&quot;;<br />
if (tarH != 0) {<br />
showS()<br />
} else {<br />
hiddenS();<br />
}<br />
}<br />
}</p>
<p>}<br />
var $ = function($) {return document.getElementById($)};<br />
String.prototype.pxToNum = function() {return Number(this.replace(&quot;px&quot;,&quot;&quot;))}<br />
function getFirstChild(obj) {<br />
var result = obj.firstChild;<br />
while (!result.tagName) {<br />
result = result.nextSibling;<br />
}<br />
return result;<br />
}</p>
<p>function getNextChild(obj) {<br />
var result = obj.nextSibling;<br />
while (!result.tagName) {<br />
result = result.nextSibling;<br />
}<br />
return result;<br />
}<br />
//]]&gt;<br />
&lt;/script&gt;<br />
&nbsp;&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;ul class=&quot;rolinList&quot; id=&quot;rolin&quot;&gt;<br />
&nbsp; &lt;li&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;h2&gt;网页代码站1&lt;/h2&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;div class=&quot;content&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;最专业的代码下载网站 - 致力为中国站长提供有质量的代码！&lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a href=&quot;<a href="http://www.webdm.cn/">http://www.webdm.cn/</a>&quot; target=&quot;_blank&quot;&gt;http://www.webdm.cn/&lt;/a&gt;&lt;/p&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;/li&gt;<br />
&nbsp; &lt;li&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;h2&gt;网页代码站2&lt;/h2&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;div class=&quot;content&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;最专业的代码下载网站 - 致力为中国站长提供有质量的代码！&lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a href=&quot;<a href="http://www.webdm.cn/">http://www.webdm.cn/</a>&quot; target=&quot;_blank&quot;&gt;http://www.webdm.cn/&lt;/a&gt;&lt;/p&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;/li&gt;<br />
&nbsp; &lt;li&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;h2&gt;网页代码站3&lt;/h2&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;div class=&quot;content&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;最专业的代码下载网站 - 致力为中国站长提供有质量的代码！&lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a href=&quot;<a href="http://www.webdm.cn/">http://www.webdm.cn/</a>&quot; target=&quot;_blank&quot;&gt;http://www.webdm.cn/&lt;/a&gt;&lt;/p&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;/li&gt;<br />
&nbsp; &lt;li&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;h2&gt;网页代码站4&lt;/h2&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;div class=&quot;content&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;最专业的代码下载网站 - 致力为中国站长提供有质量的代码！&lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a href=&quot;<a href="http://www.webdm.cn/">http://www.webdm.cn/</a>&quot; target=&quot;_blank&quot;&gt;http://www.webdm.cn/&lt;/a&gt;&lt;/p&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;/li&gt;<br />
&nbsp; &lt;li&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;h2&gt;网页代码站5&lt;/h2&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;div class=&quot;content&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;最专业的代码下载网站 - 致力为中国站长提供有质量的代码！&lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a href=&quot;<a href="http://www.webdm.cn/">http://www.webdm.cn/</a>&quot; target=&quot;_blank&quot;&gt;http://www.webdm.cn/&lt;/a&gt;&lt;/p&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;/li&gt;<br />
&nbsp; &lt;li&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;h2&gt;网页代码站6&lt;/h2&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;div class=&quot;content&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;最专业的代码下载网站 - 致力为中国站长提供有质量的代码！&lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;a href=&quot;<a href="http://www.webdm.cn/">http://www.webdm.cn/</a>&quot; target=&quot;_blank&quot;&gt;http://www.webdm.cn/&lt;/a&gt;&lt;/p&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.lipeiyu123.cn/blog/article/css.htm</link>
			<title><![CDATA[使用CSS修正一切：20多个常见Bug及其修正方法]]></title>
			<author>619680470@qq.com(nurture)</author>
			<category><![CDATA[生活]]></category>
			<pubDate>Tue,21 Dec 2010 09:47:21 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=41</guid>
		<description><![CDATA[<p>毫无疑问，一个合理的布局和结构是最好选择。这不仅是因为你的布局在不同浏览器见表现不同，而且还因为的CSS有很多方法来布局你的每个元素。今天，我们希望与你们分享一些避免在创建CSS布局时容易遇到的错误的技巧。</p>
<h3 class="title">IE Bug修正</h3>
<h3 class="title"><a href="http://www.cssnewbie.com/double-margin-float-bug/"><font color="#2c6288">1- Bug修正：IE双倍Margin bug</font></a></h3>
<p>- 元素是浮动的-并且给元素一个和浮动同一个方向的margin-结果显示两倍的指定margin大小。这个方法非常简单。所有您需要做的就是添加一个display: inline规则到你的浮动元素。所以，你只是把例如这样的代码：</p>
<pre><code>#content {
    float: left;
    width: 500px;
    padding: 10px 15px;
    margin-left: 20px; }</code></pre>
<p>改为如下代码 :</p>
<pre><code>#content {
    float: left;
    width: 500px;
    padding: 10px 15px;
    margin-left: 20px;
    display:inline;
}</code></pre>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/0609120b323.gif" target="_blank"><img height="200" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/0609120b323.gif" width="450" border="0" /></a><a href="http://www.cssnewbie.com/double-margin-float-bug/">&nbsp;&nbsp;</a></p>
<hr />
<h3 class="title">2- 克服盒模型hack</h3>
<p>- 如果你想给任一div指定宽度，不要指定padding或margin。只要另建一个内部(嵌套)的没有宽度的div并设定其padding和margin来替代。所以，不要这样做：</p>
<pre><code>#main-div{
width: 150px;
border: 5px;
padding: 20px;
}</code></pre>
<p>这样做:</p>
<pre><code>#main-div{
width: 150px;
}
#main-div div{
border: 5px;
padding: 20px;
}</code></pre>
<hr />
<h3 class="title">3-<a class="showcase" href="http://www.cssplay.co.uk/boxes/minheight.html"><font color="#2c6288">IE无视min-height属性</font></a></h3>
<p>- min-height属性在firefox下表现很好但是IE却无视了它，IE的height就像FF的min-height.注意：IE7没有这个bug。</p>
<pre><code>/* 对主流浏览器 */
.container {
width:20em;
padding:0.5em;
border:1px solid #000;
min-height:8em;
height:auto;
}
/* 对IE浏览器 */
/*\*/
* html .container {
height: 8em;
}
/**/</code></pre>
<h3 class="title">4- <a class="showcase" href="http://www.cssplay.co.uk/boxes/minwidth.html"><font color="#2c6288">Min-Width for IE </font></a></h3>
<p>-一个IE的min-width缺陷的修正。</p>
<hr />
<h3 class="title">块级元素居中</h3>
<h3 class="title">5-<a class="showcase" href="http://css-discuss.incutio.com/?page=CenteringBlockElement"><font color="#2c6288">块级元素居中</font></a></h3>
<p>- 有很多种方法可以使块级元素居中；选择哪种方法取决于你的百分比大小设置或使用更绝对的数值。</p>
<p>整个页面内容居中：</p>
<pre><code>body{
text-align: center;
}
#container
{
text-align: left;
width: 960px;
margin: 0 auto;
}</code></pre>
<hr />
<h3 class="title">6-<a class="showcase" href="http://www.badboy.ro/articles/2005-02-20/vertical_align_with_css/"><font color="#2c6288">使用CSS垂直对齐</font></a></h3>
<p>- 如果你想知道怎么才能正确的实现垂直对齐，只需要简单的为你的文本指定和容器等高的line-height。</p>
<pre><code>#wrapper {
	width:530px;
	height:25px;
	background:url(container.gif) no-repeat left top;
	padding:0px 10px;
}
#wrapper p {
	line-height:25px;
}</code></pre>
<hr />
<h3 class="title">栏目问题</h3>
<h3 class="title">7- <a class="showcase" href="http://warpspire.com/tipsresources/web-production/css-column-tricks/"><font color="#2c6288">你的CSS栏目被搞乱的最大原因</font></a></h3>
<p>-一个容易理解的就如何解决普遍的CSS栏目的问题的有用的图解和代码片断的文章.</p>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/0609130D0J.gif" target="_blank"><img height="180" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/0609130D0J.gif" width="500" border="0" /></a><a href="http://warpspire.com/tipsresources/web-production/css-column-tricks/">&nbsp;</a></p>
<hr />
<h3 class="title">8- <a class="showcase" href="http://www.positioniseverything.net/explorer/expandingboxbug.html"><font color="#2c6288">扩大的盒子Bug</font></a></h3>
<p>- 当您尝试创建一个两列浮动的布局， IE浏览器将创建一个&ldquo;浮动下降&rdquo; ，这是由于在一个固定宽度的浮动DIV内存在超出宽度的内容，这些内容必须融入布局中的一个特定位置。这片文章详述了几种可能的替代方法。</p>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/0609131Qb8.gif" target="_blank"><img height="300" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/0609131Qb8.gif" width="450" border="0" /></a><a href="http://www.positioniseverything.net/explorer/expandingboxbug.html">&nbsp;</a></p>
<hr />
<h3 class="title">CSS 定位</h3>
<h3 class="title">9- <a class="showcase" href="http://kilianvalkhof.com/2008/css-xhtml/understanding-css-positioning-part-1"><font color="#2c6288">理解CSS定位Part 1</font></a></h3>
<p>-一系列很有趣的文章，这些文章不仅包括定位，还包括包括定义布局的属性，比如display和float ，和对CSS3 布局模型的一个预览。第一部分将会介绍定位和display属性。 <a href="http://kilianvalkhof.com/2008/css-xhtml/understanding-css-positioning-part-1/"><font color="#2c6288">Part1</font></a>, <a href="http://kilianvalkhof.com/2008/css-xhtml/understanding-css-positioning-part-2/"><font color="#2c6288">Part2</font></a>, <a href="http://kilianvalkhof.com/2008/css-xhtml/understanding-css-positioning-part-3/"><font color="#2c6288">Part3</font></a> 将会带给你对定位的更深的理解.</p>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/060913304507.gif" target="_blank"><img height="166" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/060913304507.gif" width="450" border="0" /></a><a class="showcase" href="http://kilianvalkhof.com/2008/css-xhtml/understanding-css-positioning-part-1">&nbsp;</a></p>
<hr />
<h3 class="title">10- <a class="showcase" href="http://www.detacheddesigns.com/blog/blogSpecific.aspx?BlogId=52"><font color="#2c6288">relative和absolute有什么不同?</font></a></h3>
<p>- 对于刚开始使用CSS的人来说，无论相对行为还是绝对定位都是非常令人沮丧的。这个问题的答案将会让你的迷惑变的清晰些。</p>
<pre><code>#redSquare
{
position: relative;
bottom: 40px;
right: 40px;
}
</code></pre>
<p>显示这样:</p>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/060913424005.gif" target="_blank"><img height="116" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/060913424005.gif" width="450" border="0" /></a><a href="http://www.detacheddesigns.com/blog/blogSpecific.aspx?BlogId=52">&nbsp;</a></p>
<hr />
<h3 class="title">11-<a class="showcase" href="http://css-tricks.com/hangtab-create-a-sticky-tag-from-the-edge-of-the-browser-window-even-with-centered-content/"><font color="#2c6288">HangTab(固定标签)</font></a></h3>
<p>- 在浏览器边缘创建一个固定的标签(即使内容居中)。查看<a href="http://www.panic.com/coda/"><font color="#2c6288">Panic&rsquo;s website for their software Coda</font></a>.</p>
<pre><code>#hang_tab {
position: absolute;
top: 7px;
left: 0px;
width: 157px;
height: 93px;
}</code></pre>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/06091355Z64.jpg" target="_blank"><img height="155" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/06091355Z64.jpg" width="450" border="0" /></a><a href="http://css-tricks.com/examples/HangTab/">&nbsp;</a></p>
<hr />
<h3 class="title">CSS 浮动概念</h3>
<h3 class="title">12- <a class="showcase" href="http://www.smashingmagazine.com/2007/05/01/css-float-theory-things-you-should-know/"><font color="#2c6288">CSS 浮动原理：你应该知道的事情</font></a></h3>
<p>- <a href="http://www.smashingmagazine.com/"><font color="#2c6288">SmashingMagazine</font></a> 浏览几十个相关文章，并选择了在用float开发基于CSS的布局时你应该牢记的最重要的东西。</p>
<pre><code>&lt;div&gt; &lt;!-- float container --&gt;
&lt;div style=&quot;float:left; width:30%;&quot;&gt;&lt;p&gt;Some content&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;Text not inside the float&lt;/p&gt;
&lt;div style=&quot;clear:both;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>
<hr />
<h3 class="title">13- <a class="showcase" href="http://css.maxdesign.com.au/floatutorial/"><font color="#2c6288">Floatutorial: CSS float的简单教程</font></a></h3>
<p>- Floatutorial带你查看浮动元素的基本原理，例如图片，下拉菜单，下一个和返回按钮，相册，内部列表和多列布局。</p>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/06091500I47.gif" target="_blank"><img height="116" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/06091500I47.gif" width="450" border="0" /></a><a href="http://css.maxdesign.com.au/floatutorial/">&nbsp;&nbsp;</a></p>
<hr />
<h3 class="title">14- <a class="showcase" href="http://dtott.com/thoughts/2007/12/10/clear-your-floats-the-right-way/"><font color="#2c6288">清除浮动- 正确的方法</font></a></h3>
<p>- 清除浮动可以说是CSS开发中的一个最令人沮丧的方面，最佳方法之一是在您的网站上使用<a href="http://dtott.com/thoughts/2007/12/10/clear-your-floats-the-right-way/"><font color="#2c6288">EasyClearing</font></a> .</p>
<pre><code>/* EasyClearing http://www.positioniseverything.net/easyclearing.html */
#container:after
{
	content: &quot;.&quot;;
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

#container
{display: inline-block;}

/* Hides from IE-mac \*/
* html #container
{height: 1%;}

#container
{display: block;}
/* End hide from IE-mac */</code></pre>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/0609153A0M.gif" target="_blank"><img height="200" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/0609153A0M.gif" width="450" border="0" /></a><a href="http://dtott.com/thoughts/2007/12/10/clear-your-floats-the-right-way/">&nbsp;&nbsp;</a></p>
<hr />
<h3 class="title">更简单的圆角实现</h3>
<h3 class="title">15- <a class="showcase" href="http://www.askthecssguy.com/2007/11/mike_asks_the_css_guy_for_reco_1.html"><font color="#2c6288">迈克询问CSS圆角建议</font></a></h3>
<p>- &ldquo;最简单的方法是使用一个大的gif图片，然后我将给我的盒子编码&rdquo;</p>
<pre><code>&lt;div class=&quot;roundBox&quot;&gt;
  &lt;p&gt;beautifully-encapsulated paragraph&lt;/p&gt;
  &lt;div class=&quot;boxBottom&quot;&gt;&lt;/div&gt;
&lt;/div&gt;</code></pre>
<p>&ldquo;并给它添加背景&rdquo;</p>
<pre><code>.roundBox {
  background:transparent url(roundBox.gif) no-repeat top left;
  width:340px;
  padding:20px;
}
.roundBox .boxBottom {
  background:white url(roundBox.gif) no-repeat bottom left;
  font-size:1px;
  line-height:1px;
  height:14px;
  margin:0 -20px -20px -20px;
}</code></pre>
<hr />
<p>同样 <a href="http://www.askthecssguy.com/"><font color="#2c6288">Askthecssguy</font></a> 介绍了 <a href="http://www.askthecssguy.com/2008/03/one_pixel_notched_corners_as_u.html"><font color="#2c6288">Google Analytics中使用的技术</font></a>, 他是通过在每个角留下1px的边框来实现圆角的效果，这是一种不用静态图片实现圆角的新方法。你可以在<a href="http://www.askthecssguy.com/examples/notchedcorners/index.html"><font color="#2c6288">这里</font></a>查看一个示例.</p>
<p><a href="http://www.eyesonweb.com/uploads/userup/0708/060915562421.gif" target="_blank"><img height="132" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/060915562421.gif" width="450" border="0" /></a>&nbsp;</p>
<hr />
<h3 class="title">16-<a class="showcase" href="http://cssglobe.com/post/1415/3-simple-steps-in-coding-a-rounded-corners-layout"><font color="#2c6288">3 个简单的步骤实现圆角</font></a></h3>
<p>- Alen Grakalic研究了通过三个步骤来编写一个固定宽度的圆角布局. 他也创建了一个<a href="http://cssglobe.com/articles/3steps/"><font color="#2c6288"> demo </font></a>.</p>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/0609161132R.jpg" target="_blank"><img height="195" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/0609161132R.jpg" width="450" border="0" /></a><a href="http://cssglobe.com/articles/3steps/">&nbsp;</a></p>
<hr />
<h3 class="title">CSS表单问题</h3>
<h3 class="title">17- <a class="showcase" href="http://css-tricks.com/tips-for-creating-great-web-forms/"><font color="#2c6288">创建伟大的网页表单的技巧</font></a></h3>
<p>- Cris Coyer和我们分享了浮动标签，:focus伪类，使用建议等技巧。他同样建立了<a href="http://css-tricks.com/examples/NiceSimpleContactForm/"><font color="#2c6288">又好又简单的联系表单</font></a>, 他首先将它发布在<a href="http://css-tricks.com/nice-and-simple-contact-form/"><font color="#2c6288">这里</font></a>.</p>
<pre><code>label {
	float: left;
	text-align: right;
	margin-right: 15px;
	width: 100px;
}</code></pre>
<hr />
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/0609164911U.gif" target="_blank"><img height="170" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/0609164911U.gif" width="450" border="0" /></a><a href="http://css-tricks.com/examples/NiceSimpleContactForm/">&nbsp;</a></p>
<hr />
<h3 class="title">18- <a class="showcase" href="http://woork.blogspot.com/2008/06/clean-and-pure-css-form-design.html"><font color="#2c6288">简洁而纯粹的CSS表单设计</font></a></h3>
<p>- 对于的CSS爱好者来说，本教程表述了一个如何设计纯粹的CSS表单而不使用HTML表格的建议。你可以在<a href="http://www.box.net/shared/1zbtouuwws"><font color="#2c6288">这里</font></a>抓取代码.</p>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/06091F5KU.gif" target="_blank"><img height="200" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/06091F5KU.gif" width="450" border="0" /></a><a href="http://woork.blogspot.com/2008/06/clean-and-pure-css-form-design.html">&nbsp;</a></p>
<hr />
<h3 class="title">19-<a class="showcase" href="http://www.456bereastreet.com/archive/200710/autopopulating_text_input_fields_with_javascript/"><font color="#2c6288">用javascript自动填充文本输入框</font></a></h3>
<p>- 有时候，我们需要向用户解释他们理应填写文本输入框。当没有标签可以显示，一个通用的解决方案是，把一些占位符文本放在文本框中，并让它当标签来用。本教程介绍了一种很好的解决办法，并启用JavaScript ，label 元素是隐藏的，而且input 元素的title 属性值被复制到value 属性. 如果已禁用JavaScript ，标签显示在被留空的文字输入框的上面。一个简单的演示，您可以在<a href="http://www.456bereastreet.com/lab/autopopulating-text-input-fields/"><font color="#2c6288">这里</font></a>看到演示.</p>
<p class="image-20"><a href="http://www.eyesonweb.com/uploads/userup/0708/06091H2X01.gif" target="_blank"><img height="132" alt="" src="http://www.eyesonweb.com/uploads/userup/0708/06091H2X01.gif" width="450" border="0" /></a><a href="http://www.456bereastreet.com/lab/autopopulating-text-input-fields/">&nbsp;</a></p>
<hr />
<h3 class="title">值得检验的css技巧</h3>
<h3 class="title">20-<a class="showcase" href="http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&amp;postId=4361&amp;productId=1&amp;loc=en_US"><font color="#2c6288"> 跨浏览器的用背景图的水平线</font></a></h3>
<p>- 你或许想使用一个定制的图片来创建一个跨浏览器的水平线作为内容的分隔。</p>
<pre><code>div.hr {
background: #fff url(myhrimg.gif) no-repeat scroll center;
height: 10px
}
div.hr hr {
display: none
}</code></pre>
<hr />
<p>你的代码可以像这样:</p>
<p>&nbsp;</p>
<pre><code>&lt;div class=&quot;hr&quot;&gt;&lt;hr /&gt;&lt;/div&gt;
</code></pre>]]></description>
		</item>
		
			<item>
			<link>http://www.lipeiyu123.cn/blog/article/hpw360.htm</link>
			<title><![CDATA[混批商城]]></title>
			<author>619680470@qq.com(nurture)</author>
			<category><![CDATA[作品]]></category>
			<pubDate>Wed,15 Dec 2010 13:46:48 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=40</guid>
		<description><![CDATA[<p><a target="_blank" href="http://www.hpw360.com">www.hpw360.com</a><img alt="" src="http://www.lipeiyu123.cn/blog/download.asp?id=12" /></p>]]></description>
		</item>
		
			<item>
			<link>http://www.lipeiyu123.cn/blog/article/38cfs.htm</link>
			<title><![CDATA[38财富黄金频道]]></title>
			<author>619680470@qq.com(nurture)</author>
			<category><![CDATA[作品]]></category>
			<pubDate>Wed,15 Dec 2010 13:22:12 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=39</guid>
		<description><![CDATA[<p><a target="_blank" href="http://gold.38cf.com/">gold.38cf.com/</a></p>
<p><img alt="" src="http://www.lipeiyu123.cn/blog/download.asp?id=10" /></p>]]></description>
		</item>
		
			<item>
			<link>http://www.lipeiyu123.cn/blog/article/df.htm</link>
			<title><![CDATA[得发集团]]></title>
			<author>619680470@qq.com(nurture)</author>
			<category><![CDATA[作品]]></category>
			<pubDate>Wed,15 Dec 2010 13:04:42 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=38</guid>
		<description><![CDATA[<p><a target="_blank" href="http://www.danpacgroup.com.cn/cn/default.aspx">www.danpacgroup.com.cn/cn/default.aspx</a>&nbsp; <img alt="" src="http://www.lipeiyu123.cn/blog/download.asp?id=8" /></p>]]></description>
		</item>
		
			<item>
			<link>http://www.lipeiyu123.cn/blog/article/38cf.htm</link>
			<title><![CDATA[38财富支付平台]]></title>
			<author>619680470@qq.com(nurture)</author>
			<category><![CDATA[作品]]></category>
			<pubDate>Wed,15 Dec 2010 12:00:48 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=37</guid>
		<description><![CDATA[<p><a target="_blank" href="http://pay.38cf.com/Login.aspx">pay.38cf.com/Login.aspx</a><img alt="" src="http://www.lipeiyu123.cn/blog/download.asp?id=5" />&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.lipeiyu123.cn/blog/article/lee-1.htm</link>
			<title><![CDATA[给自己的网站添加ICO图标]]></title>
			<author>619680470@qq.com(nurture)</author>
			<category><![CDATA[作品]]></category>
			<pubDate>Mon,06 Dec 2010 09:48:50 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=36</guid>
		<description><![CDATA[<p>avicon.ico 是一种格式，一般用于网页地址栏前或者在标签上以缩略方式显示网站标志，也可以拖曳favicon到桌面以建立到网站的快捷方式。</p>
<p style="text-indent: 2em;"><strong>为什么要设置favicon图标：</strong></p>
<p style="text-indent: 2em;">以图像形态显示，比文字显示更能加深浏览者的记忆和印像。</p>
<p style="text-indent: 2em;">可以塑造网站的品牌。这也是在网站推广的范畴之内，</p>
<p style="text-indent: 2em;">可以让浏览器的收藏夹中除显示相应的标题外，还以图标的方式区别不同的网站。</p>
<p style="text-indent: 2em;">给人以更专业的感觉。</p>
<p style="text-indent: 2em;">如何设置网页图标</p>
<p style="text-indent: 2em;"><strong>如何设置：</strong></p>
<p style="text-indent: 2em;">制作一个16&times;16像素的图像（logo），也可以制作一个200&times;200像素的图像或更大，然后等比列缩小为16&times;16像素，（200&times;200像素方便制作，favicon的规格一般为16&times;16像素）</p>
<p style="text-indent: 2em;">可以用相关软件把jpg格式转换成ico图标格式。</p>
<p style="text-indent: 2em;">我是用在线生成的，这样方便快捷。</p>
<p style="text-indent: 2em;">1、打开 <a href="http://www.chami.com/html-kit/services/favicon/">http://www.chami.com/html-kit/services/favicon/</a></p>
<p style="text-indent: 2em;">2、页面里有个浏览按钮，点击找到你刚才做的图像（logo）.</p>
<p style="text-indent: 2em;">3、点击 Generate FavIcon.ico 按钮提交</p>
<p style="text-indent: 2em;">4、稍等片刻后，你的favicon.ico将会自动生成，可以点击旁边的保存按钮将favicon.ico下载到本地。</p>
<p style="text-indent: 2em;">5、上传favicon.ico文件到网站根目录下</p>
<p style="text-indent: 2em;">6、最后在网页首面HTML的&lt;head&gt;&hellip;&hellip;&lt;/head&gt;标签之间插入代码：&lt;link rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot;&gt;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.lipeiyu123.cn/blog/article/5921.htm</link>
			<title><![CDATA[iPhone Friendly 的 Web 运用 程序 Part 6 …]]></title>
			<author>619680470@qq.com(nurture)</author>
			<category><![CDATA[生活]]></category>
			<pubDate>Tue,16 Nov 2010 17:08:06 +0800</pubDate>
			<guid>http://www.lipeiyu123.cn/blog/default.asp?id=35</guid>
		<description><![CDATA[<p>iUI是一个针对iPhone Safari的Web开发框架，由<a href="http://joehewitt.com/"><font color="#757f8a">Joe Hewitt</font></a>开发。这位Joe Hewitt曾经参与过Firefox的开发，包括其中的DOM Inspector以及Firebug，后来到了Facebook，为Facebook开发了iPhone专用版本，对iPhone Web开发社区算是作出了巨大贡献。</p>
<h3>样式</h3>
<p>我们继续说iUI这个框架。这个框架所做的事情，就是提供iPhone Friendly的交互方式与样式。为了简单起见，我们先来说说样式方面，iUI提供的不仅仅是一个CSS文件，基于这个CSS文件你所创建的页面能够符合iPhone的人机界面指引，并且看起来的效果贴近iPhone原生的应用程序，从而降低用户学习门槛，避免你自己设计的Web应用对iPhone操作不友善（例如按钮不够大，手指难以点击）。</p>
<h3>交互</h3>
<p>至于交互方面，iUI提供一个基于page的换页导航机制。这里所说的page不是一个Web页面，而是一个&lt;body /&gt;内的顶级DOM元素，每一个这样的DOM元素都可以作为一个page，同一时间上仅显示一个page。页面上的所有链接，要么导致page转跳，要么导致整个页面转跳。这种转跳有如下几种情况。</p>
<h4>转跳</h4>
<p>如果链接的href指向的是一个锚点，例如<strong>#somePage</strong>，那么iUI就会在页面中寻找<strong>id=&quot;somePage&quot;</strong>的page对象，然后进行转跳。</p>
<p>如果链接的href指向的是站内地址，例如<strong>/somePage.html</strong>，那么iUI就会使用AJAX的方法加载<strong>/somePage.html</strong>的内容并追加到<strong>&lt;body /&gt;</strong>内，注意，<strong>/somePage.html</strong>必然是一个文档片段而不可能是完整的XHTML文档，否则把<strong>&lt;html /&gt;</strong>追加到<strong>&lt;body /&gt;</strong>下就是错误的了。追加的内容内可以有多个page，如果其中一个有<strong>selected=&quot;true&quot;</strong>的属性，那么接下来将显示该page，否则显示追加内容中的第一个page。</p>
<p>最后一种情况是指向站内地址，但是有<strong>target=&quot;_replace&quot;</strong>属性。iUI在看到<strong>target=&quot;_replace&quot;</strong>属性后，就会知道该&lt;a /&gt;所在的page内直属元素要被删除，并且替换为目标页面的内容。在这里用CSS来解释一下所谓的直属元素，<strong>body &gt; ul#somePage &gt; li &gt; a[target=&quot;_replace&quot;]</strong>，这里<strong>&lt;li /&gt;</strong>就是<strong>&lt;ul id=&quot;somePage /&gt;</strong>的直属元素了。这种转跳通常用于曾亮加载，例如iPhone内置的Mail打开邮箱后自动加载50封邮件，点击more之后再加载50封，Web界面上就可以通过这种方式实现&mdash;&mdash;一个<strong>&lt;ul /&gt;</strong>内包含51个<strong>&lt;li /&gt;</strong>，前面50个对应50封邮件，最后一个<strong>&lt;li /&gt;</strong>包含<strong>&lt;a target=&quot;_replace&quot; /&gt;</strong>的more链接，目标页面就是下50封邮件的<strong>&lt;li /&gt;</strong>。</p>
<p>在转跳的时候，iUI提供了一种很好看的效果，你能够看到当前page从屏幕左边移出去，新的page从屏幕右边移进来，好像PowerPoint的某种幻灯片切换动画那样。如果添加了<strong>axis=&quot;y&quot;</strong>属性，page还能够子底向下滚动。</p>
<h4>历史记录</h4>
<p>AJAX式的页内内容更新不是不好，问题就在于浏览器无法自动保存历史记录，导致前进后退按钮实效。iUI已经解决了这个问题，上述3种转跳中的前两种iUI都会自动创建新的hash以便创建历史记录，hash默认就是<strong>#_pageId</strong>的形式，如果当前显示的page没有id，那么hash就按照增量自动分配id。</p>
<p>在拥有历史记录之后，用户就可以通过浏览器的后退按钮向前翻页了，此时相当于加载前面的page，iUI知道这是一个后退操作，就会提供反向的滚动效果（自左向右或自上向下）。</p>
<p>如果我访问页面的顺序是A &gt; B &gt; C &gt; D &gt; B，那么历史记录会如何呢？历史记录会变成A &gt; C &gt; D &gt; B，也就是说第一次访问B时B从历史记录中删除并重新添加到最前的位置了。</p>
<h3>演示</h3>
<p>说了那么多，我们来看看iUI的实战效果吧！又是Facebook或者Digg的iPhone版？不是，我们来看看自己利用iUI开发一个小应用的效果以及成本如何。就在上个周末，我花了不到20小时做了个名为iBaidu的小东西，自动抓取Baidu的搜索结果与排行榜并以iPhone friendly的方式显示出来。以下是发布到YouTube的演示视频：</p>
<p><embed height="355" type="application/x-shockwave-flash" width="425" src="http://www.youtube.com/v/57kRVyP0-_k&amp;rel=1" allowscriptaccess="samedomain" wmode="transparent"></embed></p>
<p>服务器端使用的技术是Ruby on Rails以及ASP.NET。为什么需要ASP.NET？这是一个很郁闷的问题，因为Baidu是基于GBK的，而RoR的编码转换能力其若无比，我懒得花时间去寻找适合的转码库，因此直接拿了ASP.NET来做抓去代理，抓取的时候顺便做一下编码转换。如果不是编码问题，那么只需要RoR就能轻松完成任务。</p>
<h3>小结</h3>
<p>在这篇文章中，我们已经看到了如果使用RoR搭配Prototype，不好意思，iUI才对，要设计一个iPhone friendly的Web应用程序是多么地容易，开发过程也相当敏捷。如果你喜欢iPhone开发系列的文章，欢迎订阅：</p>
<ul>
    <li><a href="http://chinese.catchen.biz/"><font color="#757f8a">Cat in Chinese</font></a> (<a href="http://feeds.feedburner.com/catchen/chinese"><font color="#757f8a">feed</font></a>)</li>
    <li><a href="http://dotnet.catchen.biz/"><font color="#757f8a">Cat in dotNET</font></a> (<a href="http://feeds.feedburner.com/catchen/dotnet"><font color="#757f8a">feed</font></a>)</li>
</ul>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 无AJAX交互<br />
　　第一种我们要看的交互，是完全不运用 <a title="javascript技巧" href="http://www.vipcn.com/wangluobiancheng/Script/Script_1.html" target="_blank"><font color="#757f8a">javascript</font></a>，这其中一个例子就是GMail。GMail的iPhone版其实就是由普通的GMail移动版修改过来的，界面上更贴近桌面版GMail了，然而交互性并没有如何提高，每一个点击都对应一次刷新，没有任何AJAX可言。<br />
　　事实上，不用任何AJAX效果并不会让你的iPhone Web App低人一等，如果有人讥笑你的运用没有引入任何AJAX功能，你可以直接跟他说&ldquo;GMail也没有&rdquo;。因此，如果你在开发的流程 中决定不把任何时间投入到AJAX有关 技能的研究，这是没疑问 的，确保你的<a title="服务器" href="http://www.vipcn.com/wangluojishu/fuwuqi/fuwuqi_1.html" target="_blank"><font color="#757f8a">服务器</font></a>响应速度，并且交互设计得当，那就行了。<br />
　　以服务器端为中心的AJAX<br />
　　接下来我们看看另外一些运用 ，例如之前说到的多个 ，就拿最基本 的AppMarks来说说吧。首先，运用 User Agent Switch修改 你的<a title="FireFox 下载" href="http://www.vipcn.com/wangluoruanjian/zhuyeliulan/3017.html" target="_blank"><font color="#757f8a">FireFox</font></a>的user-agent属性，伪装为iPhone，然后打开AppMarks，并且打开Firebug。接着点 Menu -&gt; Add -&gt; Browse，看到出现AJAX请求了吧？猜猜这个请求是什么类型的，面向内容（传输更新上去的X<a title="Html" href="http://www.vipcn.com/wangzhanjianshe/Html/Html_1.html" target="_blank"><font color="#757f8a">Html</font></a>）、面向脚本（传输执行 更新操作的 <a title="Java" href="http://www.vipcn.com/chengxukaifa/Java/Java_1.html" target="_blank"><font color="#757f8a">Java</font></a>Script）还是面向数据（传输更新有关的JSON）？答案是&mdash;&mdash;面向内容的！<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这可是Web App哦，不是一般带有一点点AJAX的网页哦，我们要MVC，我们要&ldquo;先进&rdquo;的面向数据，为什么要&ldquo;落后&rdquo;的面向内容呢？至今为止，我们能够看到的大部分iPhone Web A<a title="PPS 下载" href="http://www.vipcn.com/wangluoruanjian/wangluodianshi/4904.html" target="_blank"><font color="#757f8a">PPS</font></a>，都将MVC保留在服务器端了，客户端唯一须要知道的就是内容更新，不存在任何的客户端MVC模型。暂时我还没看到有面向脚本或者面向数据的，如果你见到有运用这样做了，请告诉我。<br />
　 　我们继续说MVC的事情。现在大多运用 的设计方式是这样的：每一个应拥有一个view framework，然后每一次点击所作的操作就是切换view。例如刚才说到的AppMarks，从Menu进入Add是一个view切换，不过因为 Add这个view的内容是固定的，因此一早就包含在页面里，不用AJAX请求直接加载就行了。另外一种情况，就是好像加载Browse那样，是须要 AJAX把view请求过来才能加载的。除了切换view，我们还须要 action，例如提交数据就一定须要 action的。说到这里，感觉是不是和 RoR或者类似框架扯上联系 了？事实上，RoR，或者类似框架，确实很适合用来做iPhone Web Apps。<br />
　　以客户端为中心的AJAX<br />
　　那么除了RoR，我们还有别的选择吗？我们可以选择运用一些客户端框架来实现类似的效果。这样说吧，类似RoR那样每一个view都是一个模板，但不是rhtml，而是普通的html，没有复杂逻辑，点击连接后不是由RoR引擎调在服务器端用rhtml，而是客户端自己直接拦截了链接点击并用 AJAX的要领 去请求该html然后更新内容。这样一个框架，可以在Wrox的Professional iPhone and iPod to<a title="UC 下载" href="http://www.vipcn.com/wangluoruanjian/liaotiangongju/3790.html" target="_blank"><font color="#757f8a">UC</font></a>h Programming : Building Applications for Mobile Safari一<a title="书籍下载" href="http://www.vipcn.com/book.html" target="_blank"><font color="#757f8a">书</font></a>中见到。这本书写着2008年1月出版，但实际上已经出版，并且可以下载源代码。我暂时还没办法买到这本书，但源代码中就包括了这样一个客户端框架。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 然而，这种以客户端为中心的做法并没有真实 在客户端引入一个MVC，它只是基本 地把服务器端的MVC裁减掉了，服务器端只能基本的发送内容或响应提交，因此只适用于比上面的以服务器端为中心的模型更基本 的情景。如果你正在编写的运用不涉及大量的提交操作，或者根本就是Web1.0站点 ，我的意思是，单向传递信息不接受任何用户提交的站点，那么这种轻量级的模型就非常适用了。<br />
　　小结<br />
　　在这次的文章里，我们介绍了三种多见 的iPhone Web Apps交互方案，没有哪一个是绝对更好或者更坏的，按照你当前开发的运用做出选择吧。将来我们写文章深入探讨其中的一些实现细节，或者是交互模式，但前提是我先完成了多个 iPhone Web Apps。</p>]]></description>
		</item>
		
</channel>
</rss>

