<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[乐里回]]></title>
<link>http://www.backley.net/</link>
<description><![CDATA[2008，新的起跑线！]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[31104@qq.com(乐里回)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>乐里回</title> 
	<url>http://www.backley.net/images/logos.gif</url> 
	<link>http://www.backley.net/</link> 
	<description>乐里回</description> 
</image>

			<item>
			<link>http://www.backley.net/default.asp?id=284</link>
			<title><![CDATA[适应IE和Firefox的Div最小高度设置]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Tue,02 Sep 2008 20:31:13 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=284</guid>	
		<description><![CDATA[在IE环境下，其实height就几乎就等于是min-height，指定容器高度后，当内容撑大时有自动延伸的特质。在Firefox内不会，而是显示固定height值。所以,就要找到一种适应IE和Firefox的方法。<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp44337"><html>
<head>
<style type=&#34;text/css&#34;>
<!--
.box1{ background-color:#F90; min-height:200px; width:125px; height:200px; float:left;}
.box2{ background-color:#0CF; min-height:200px; width:125px; height:200px; float:left;}
.box3{ background-color:#9C0; min-height:200px; width:125px; height:200px; float:left; height:auto;}
.box4{ background-color:#F9C; min-height:200px; width:125px; height:200px; float:left;}
[class].box4{height:auto;} 
-->
</style></head>

<body>
<div class=&#34;box1&#34;>
  <p>BOX1</p>
  <p>BOX1</p>
  <p>BOX1</p>
  <p>BOX1</p>
  <p>BOX1</p>
  <p>BOX1</p>
  <p>BOX1</p>
  <p>BOX1</p>
  <p>BOX1</p>
  <p>BOX1</p>
</div>
<div class=&#34;box2&#34;>
  <p>BOX2</p>  
</div>
<div class=&#34;box3&#34;>
  <p>BOX3</p>
</div>
<div class=&#34;box4&#34;>
  <p>BOX4</p>
  <p>BOX4</p>
  <p>BOX4</p>
  <p>BOX4</p>
  <p>BOX4</p>
  <p>BOX4</p>
  <p>BOX4</p>
  <p>BOX4</p>
  <p>BOX4</p>
</div>
</body>
</html></TEXTAREA><br/><INPUT onclick="runEx('temp44337')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp44337')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.backley.net/default.asp?id=283</link>
			<title><![CDATA[highslide图片特效代码]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Html]]></category>
			<pubDate>Sat,19 Jul 2008 21:36:10 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=283</guid>	
		<description><![CDATA[<img src="http://www.backley.net/myfile/highslide/demo.jpg" border="0" alt=""/><br/><br/><a target="_blank" href="http://www.backley.net/myfile/highslide">点击进入</a><br/><br/><a target="_blank" href="http://www.backley.net/myfile/highslide2">组图效果点击进入</a><br/><br/>非常好的效果，当前页面显示大图，效果比lightbox还要好！]]></description>
		</item>
		
			<item>
			<link>http://www.backley.net/default.asp?id=281</link>
			<title><![CDATA[透明PNG背景图片CSS设置]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Sun,29 Jun 2008 15:37:58 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=281</guid>	
		<description><![CDATA[应用PNG图片的透明或半透明的特性能做出非常漂亮的网页来。Firefox和Opera对PNG的支持非常的好，都是IE却无视PNG图片这一特性的“存在”，IE7已经支持，是IE6还是不行。虽然有让IE6支持PNG透明背景的JS程序，都是不是很方便，还是用CSS来实现的好。使用到的就是：<br/>IE5.5+的AlphaImageLoader滤镜<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">语法：<br/>filter&nbsp;:&nbsp;progid:DXImageTransform.Microsoft.AlphaImageLoader&nbsp;(&nbsp;enabled=bEnabled&nbsp;,&nbsp;sizingMethod=sSize&nbsp;,&nbsp;src=sURL&nbsp;)&nbsp;<br/>属性：<br/>enabled&nbsp;:&nbsp;可选项。布尔值(Boolean)。设置或检索滤镜是否激活。true&nbsp;|&nbsp;false&nbsp;<br/>　　　　　　true&nbsp;:&nbsp;默认值。滤镜激活。&nbsp;<br/>　　　　　　false&nbsp;:&nbsp;滤镜被禁止。&nbsp;<br/><br/>sizingMethod&nbsp;:&nbsp;可选项。字符串(String)。设置或检索滤镜作用的对象的图片在对象容器边界内的显示方式。&nbsp;crop&nbsp;:&nbsp;剪切图片以适应对象尺寸。&nbsp;<br/>　　　　　　　　image&nbsp;:&nbsp;默认值。增大或减小对象的尺寸边界以适应图片的尺寸。&nbsp;<br/>　　　　　　　　scale&nbsp;:&nbsp;缩放图片以适应对象的尺寸边界。&nbsp;<br/>　　　　　　　　src&nbsp;:&nbsp;必选项。字符串(String)。使用绝对或相对&nbsp;url&nbsp;地址指定背景图像。假如忽略此参数，滤镜将不会作用。&nbsp;<br/><br/>说明：<br/>在对象容器边界内，在对象的背景和内容之间显示一张图片。并提供对此图片的剪切和改变尺寸的操作。如果载入的是PNG(Portable&nbsp;Network&nbsp;Graphics)格式，则0%-100%的透明度也被提供。<br/>PNG(Portable&nbsp;Network&nbsp;Graphics)格式的图片的透明度不妨碍你选择文本。也就是说，你可以选择显示在PNG(Portable&nbsp;Network&nbsp;Graphics)格式的图片完全透明区域后面的内容。<br/></div></div><br/><br/><br/>了解了以上的内容，可以写一段简单的CSS代码（还不是完全正确的代码）：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">#div1&nbsp;{<br/>&nbsp;&nbsp;height:&nbsp;600px;<br/>&nbsp;&nbsp;width:&nbsp;260px;<br/>&nbsp;&nbsp;padding:&nbsp;20px;<br/>&nbsp;&nbsp;background-repeat:&nbsp;repeat;<br/>&nbsp;&nbsp;filter:&nbsp;progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,&nbsp;sizingMethod=scale,&nbsp;src=&#34;bj1.png&#34;<br/><br/>}</div></div><br/><br/>这段简单的CSS代码就可以在IE中正常的显示PNG透明背景，但是会发现在FF下不会出现背景，分析原因：<br/>AlphaImageLoader滤镜只能被IE支持，FF是不支持该滤镜的<br/>有些初次写的时候很多人会这样：<br/>在代码中添加这样一段：&nbsp;background-image:&nbsp;url(bj1.png);<br/>添加这样一段代码虽然能解决FF下的问题，都是IE又出现问题：新的背景会覆盖在滤镜的背景之上，导致滤镜显示无效，这时候就用到IE和FF对CSS读取的区别特性了：<br/>Firefox、Opera等完全支持PNG透明图片的浏览器也支持子选择器（&gt;），而IE不识别（包括IE7），所有我们可以通过这来定义Firefox、Opera等浏览器中PNG图片的样式。代码如下：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">html&gt;body&nbsp;#div1&nbsp;{<br/>&nbsp;&nbsp;background-repeat:&nbsp;repeat;background-image:&nbsp;url(bj1.png);<br/>}</div></div><br/><br/>同时，我们通过只有IE才识别的通配符（*），来定义IE浏览器中的滤镜。代码如下：<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">*&nbsp;#div1&nbsp;{filter:&nbsp;progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,&nbsp;sizingMethod=scale,&nbsp;src=&#34;bj1.png&#34;)<br/><br/>}</div></div><br/><br/>而#div1&nbsp;{}就放一些IE和FF共用的设置来减少代码文件的大小。最终就是这样：<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">#div1&nbsp;{<br/>&nbsp;&nbsp;height:&nbsp;600px;<br/>&nbsp;&nbsp;width:&nbsp;260px;<br/>&nbsp;&nbsp;padding:&nbsp;20px;<br/>&nbsp;&nbsp;background-repeat:&nbsp;repeat;<br/>&nbsp;&nbsp;<br/><br/>}<br/><br/>html&gt;body&nbsp;#div1&nbsp;{<br/>&nbsp;&nbsp;background-repeat:&nbsp;repeat;background-image:&nbsp;url(bj1.png);<br/>}<br/>*&nbsp;#div1&nbsp;{filter:&nbsp;progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,&nbsp;sizingMethod=scale,&nbsp;src=&#34;bj1.png&#34;)<br/><br/>}</div></div><br/><br/>需要注意的是：AlphaImageLoader滤镜会导致该区域的链接和按钮无效，解决的办法是为链接或按钮添加：position:&nbsp;relative;这样条代码，使其相对浮动。AlphaImageLoader无法设置背景的重复，所以对图片的切图精度会有很高的精确度要求。<br/>]]></description>
		</item>
		
			<item>
			<link>http://www.backley.net/default.asp?id=280</link>
			<title><![CDATA[随机显示图片的JS代码 ]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Html]]></category>
			<pubDate>Sun,29 Jun 2008 15:32:31 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=280</guid>	
		<description><![CDATA[关于随机显示图片的代码很多，但有的只能在IE下才有效果，如果换在Firefox或其他浏览器下就会失去效果，能做到两全的JS真的很少，今天给大家介绍一个很简单的JS随机显示图片的代码。&nbsp;<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">//&nbsp;JavaScript&nbsp;Document&nbsp;<br/>var&nbsp;m=10;&nbsp;//随机显示图片的总数量&nbsp;<br/>var&nbsp;n=Math.floor(Math.random()*m+1)&nbsp;<br/>document.write&nbsp;(&#34;&lt;img&nbsp;src=&#39;/banner/banner_&#34;+n+&#34;.gif&#39;&nbsp;border=0&nbsp;galleryimg=no&gt;&#34;);&nbsp;<br/>//&nbsp;<br/></div></div><br/><br/><br/>&nbsp;&nbsp;上面代码的意思是图片保存在/banner/文件夹下，根据设置的图片总数量，分别放入10张从banner_01.gif到banner_10.gif的图片,在执行这个JS时，它会随机显示从banner_01.gif到banner_10.gif的图片。&nbsp;<br/>&nbsp;&nbsp;保存这个JS为banner.js。&nbsp;<br/><br/>在网页相应的地方写入调用代码&nbsp;<br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">&lt;script&nbsp;language=&#34;JavaScript&#34;&nbsp;src=&#34;/Js/banner.js&#34;&gt;&lt;/script&gt;//--&gt;&nbsp;<br/>//调用&nbsp;</div></div><br/><br/><br/>这段代码可以在IE和Firefox下有效显示。&nbsp;]]></description>
		</item>
		
			<item>
			<link>http://www.backley.net/default.asp?id=279</link>
			<title><![CDATA[jQuery实现的图片预览效果]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Sun,29 Jun 2008 02:08:58 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=279</guid>	
		<description><![CDATA[<img src="http://www.backley.net/myfile/image_pre/preview.jpg" border="0" alt=""/><br/><br/>演示效果：&nbsp;<a target="_blank" href="http://www.backley.net/myfile/image_pre">点击进入</a><br/><br/>文件下载：<a target="_blank" href="http://www.backley.net/myfile/image_pre/download.rar">点击这里</a>]]></description>
		</item>
		
			<item>
			<link>http://www.backley.net/default.asp?id=278</link>
			<title><![CDATA[鼠标移动上去的图片链接样式]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Sat,28 Jun 2008 17:05:46 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=278</guid>	
		<description><![CDATA[<img src="http://www.backley.net/myfile/imagelink/imagelink.jpg" border="0" alt=""/><br/><br/>鼠标移动上去会有不同的效果，效果很丰富，应用也很方便<br/><br/>单一样式：<a target="_blank" href="http://www.backley.net/myfile/imagelink/singlestyle">点击进入</a><br/><br/>多种样式：<a target="_blank" href="http://www.backley.net/myfile/imagelink/multistyle">点击进入</a><br/><br/>文件打包下载<a target="_blank" href="http://www.backley.net/myfile/imagelink/imagelink.zip">点击下载</a>]]></description>
		</item>
		
			<item>
			<link>http://www.backley.net/default.asp?id=277</link>
			<title><![CDATA[javascript和css的结合 完美的图片缩放函数]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Html]]></category>
			<pubDate>Thu,26 Jun 2008 00:42:27 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=277</guid>	
		<description><![CDATA[JS代码：<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">/**<br/>*&nbsp;重新设定图片大小<br/>*&nbsp;<br/>*@param&nbsp;picname&nbsp;图片路径<br/>*@param&nbsp;width_v&nbsp;&nbsp;目标宽度<br/>*@param&nbsp;height_v&nbsp;目标高度<br/>*/<br/>&nbsp;<br/>function&nbsp;resizepic(picname,width_v,height_v){<br/>if(isFirefox=navigator.userAgent.indexOf(&#34;Firefox&#34;)&gt;0){<br/>var&nbsp;backw=width_v;<br/>var&nbsp;backh=height_v;<br/>}else<br/>{<br/>var&nbsp;backw=width_v+8;<br/>var&nbsp;backh=height_v+8;<br/>}<br/>var&nbsp;i&nbsp;=&nbsp;String(Math.floor(Math.random()*10000)+1);&nbsp;&nbsp;<br/>document.writeln(&#34;&lt;div&nbsp;style=&#39;width:&#34;+backw+&#34;px;height:&#34;+backh+&#34;px;padding:3px;border:1px&nbsp;solid&nbsp;#a1a1a1;background:#fff;&#39;&gt;&#34;);<br/>document.writeln(&#34;&lt;div&nbsp;style=&#39;width:&#34;+width_v+&#34;px;height:&#34;+height_v+&#34;px;overflow:hidden;&#39;&gt;&#34;);<br/>document.writeln(&#34;&lt;img&nbsp;src=&#39;&#34;+picname+&#34;&#39;&nbsp;id=&#39;img&#34;+i+&#34;&#39;/&gt;&lt;/div&gt;&lt;/div&gt;&#34;);<br/>var&nbsp;pic=document.getElementById(&#34;img&#34;+i);<br/>if((width_v/height_v)&gt;(pic.offsetWidth/pic.offsetHeight)){<br/>pic.width=width_v;<br/>}else<br/>{<br/>pic.height=height_v;<br/>}<br/>}&nbsp;</div></div><br/><br/><br/>调用代码：<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">&lt;script&gt;<br/>resizepic(&#34;<a href="http://www.backley.net/myfile/multipage/thumbnail.jpg" target="_blank">http://www.backley.net/myfile/multipage/thumbnail.jpg</a>&#34;,220,110);<br/>resizepic(&#34;<a href="http://www.backley.net/myfile/multipage/thumbnail.jpg" target="_blank">http://www.backley.net/myfile/multipage/thumbnail.jpg</a>&#34;,100,130);<br/>&lt;/script&gt;&nbsp;</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.backley.net/default.asp?id=276</link>
			<title><![CDATA[IE6下使PNG图片作为背景，并实现透明的方法]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Div+Css]]></category>
			<pubDate>Thu,19 Jun 2008 10:53:50 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=276</guid>	
		<description><![CDATA[<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.backley.net/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp75963"><!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; 

&#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; />
<title>无标题文档</title>
<style type=&#34;text/css&#34;>

#div1 {
height: 600px;
width: 260px;
padding: 20px;
background-repeat: repeat;

}


* #div1 {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader

(enabled=true, sizingMethod=scale, src=&#34;<a href="http://www.cesz.cn/www2/sd/images/logo1.png" target="_blank">http://www.cesz.cn/www2/sd/images/logo1.png</a>&#34;)

}
</style>
</head>
<body bgcolor=&#34;#f11ddd&#34;>
<div id=&#34;div1&#34;>乐里回</div>
</body>
</html>
</TEXTAREA><br/><INPUT onclick="runEx('temp75963')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp75963')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>需&nbsp;要注意的是：AlphaImageLoader滤镜会导致该区域的链接和按钮无效，解决的办法是为链接或按钮添加：position:&nbsp;relative;这样条代码，使其相对浮动。AlphaImageLoader无法设置背景的重复，所以对图片的切图精度会有很高的精确度要求。<br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.backley.net/default.asp?id=275</link>
			<title><![CDATA[标准下如何隐藏页面的滚动条]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Html]]></category>
			<pubDate>Tue,25 Mar 2008 20:54:01 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=275</guid>	
		<description><![CDATA[本来的话，在CSS中定义body{overflow-x:hidden}就隐藏掉滚动条<br/><br/>当使用!DOCTYPE声明打开符合标准的模式时，overflow、overflow-x和overflow-y属性会应用于HTML元素，应用于BODY元素时无效。<br/><br/><br/>所以要在CSS中定义：html{overflow-x:hidden}，问题解决]]></description>
		</item>
		
			<item>
			<link>http://www.backley.net/default.asp?id=274</link>
			<title><![CDATA[今年苏州的雪真大]]></title>
			<author>31104@qq.com(乐里回)</author>
			<category><![CDATA[Emotions]]></category>
			<pubDate>Tue,29 Jan 2008 15:37:10 +0800</pubDate>
			<guid>http://www.backley.net/default.asp?id=274</guid>	
		<description><![CDATA[<img src="http://www.backley.net/images/snow.jpg" border="0" alt=""/><br/><br/>据苏州土人讲，苏州从来没下过这么大的雪，今年回家都难了~~<br/><br/>雪啊，那个一直下~]]></description>
		</item>
		
</channel>
</rss>