<?xml version="1.0" encoding="UTF-8"?>
  <feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html"><![CDATA[蛛蛛虎's Blog]]></title>
  <subtitle type="html"><![CDATA[学无止境，学以致用]]></subtitle>
  <id>http://www.spiger.cn/</id>
  <link rel="alternate" type="text/html" href="http://www.spiger.cn/" /> 
  <link rel="self" type="application/atom+xml" href="http://www.spiger.cn/atom.asp" /> 
  <generator uri="http://www.pjhome.net/" version="2.8">PJBlog3</generator> 
  <updated>2010-09-01T21:28:24+08:00</updated>

  <entry>
	  <title type="html"><![CDATA[城中名邸]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=9" label="休闲杂谈" /> 
	  <updated>2010-09-01T21:28:24+08:00</updated>
	  <published>2010-09-01T21:28:24+08:00</published>
		  <summary type="html"><![CDATA[　　<a href="http://www.spiger.cn/download.asp?id=86" rel="lightbox[roadtrip]" title="www.spiger.cn"><img src="http://www.spiger.cn/download.asp?id=86" border="0" alt=""/></a><br/><br/>　　亿豪·<a target="_blank" href="http://czmd.qzajly.com" rel="external">城中名邸</a>位于青州市区中心干道之一的北城大街与玲珑山中路的交汇处，项目的东面就是玲珑山中路，北面是北城大街，南面则是龙山路口；向南步行约300米可达市中心繁华地段，周边生活配套十分齐全，如青州二中、青州人民医院、中都财富广场、佳乐家超市、银座百货，中国银行等，可以很好的满足居民的日常需求。建有约5000平方米的大型商业广场，建成后也会有一些餐饮、娱乐等生活配套，住在这里，就可以过上轻松便捷的健康生活。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;城中名邸项目占地面积约3.9万平方米，总建筑面积约7.3万平方米，共分两期开发；由13栋小高层电梯公寓及沿街楼组成；建筑为现代、简洁的风格，灰色外墙立面突显高档品位；公寓房采用了抗震系数最高的剪力墙结构。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;目前城中名邸项目在售的是2#和3#两栋楼；2#楼总高为9层，每单元一梯两户的设计保证了最高的房屋使用率，户型均为115-138平方米的三房；3#楼总高为14层，均为两梯三户的设计，房型有约98平方米的两房和114-125平方米的三房；另外，在部分楼的最高一层，我们为追求较大的空间的业主准备了210-290平方米的复式房，并且赠送大露台；3米的层高、4.2米的客厅面宽及南北双阳台的设计，使户型的空间感更强；每栋楼的最东套和最西套，都在主卧设计有270°的转角飘窗，将绿色、阳光、新鲜空气迎接到家；40%左右的绿化率及近40米的楼间距，提供了良好的生活环境和日照采光；项目内总共有565个车位，地上294个，地下271个，车位比达到1:1，充分的满足了业主的停车需求；在安保方面，城中名邸采用了智能化的物业管理系统，在小区的几个主要的入口处设有24小时的保安值班室，以及针对访客的对讲系统、24小时电子巡更系统和水电设备运行情况监控系统等等多重保护，让您的家居生活无后顾之忧。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;选择城中名邸，选择不一样的都市新贵生活；相信<a target="_blank" href="http://czmd.qzajly.com" rel="external">城中名邸</a>是您居家、投资的首选楼盘！]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/247.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=247</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[Mssql数据库：因为文件组 &#39;PRIMARY&#39; 已满的解决方法]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=8" label="编程天地" /> 
	  <updated>2010-08-14T16:22:39+08:00</updated>
	  <published>2010-08-14T16:22:39+08:00</published>
		  <summary type="html"><![CDATA[　　今天给客户处理一个错误，发布信息提示发布成功，数据库里却没有。<br/><br/>　　后台发布信息报错：未能为数据库 &#39;sddiao***&#39; 中的对象 &#39;china_d***&#39; 分配空间，因为文件组 &#39;PRIMARY&#39; 已满。&nbsp;&nbsp;(为保护客户隐私，数据库及表名后三位隐去。)<br/><br/>　　上网查了下主要就是空间不够，或Mssql限制了数据库文件的大小。<br/>1、检查你的磁盘剩余空间是否足够，如果没有磁盘剩余空间，则清理下磁盘，腾出更多空间。<br/><br/>2、企业管理器--右键你的数据库--属性--文件增长限制--如果有限制大小，取消限制（不知道为什么我的数据默认限制了50M的最大值）&nbsp;&nbsp;<a href="http://www.spiger.cn/download.asp?id=85" rel="lightbox[roadtrip]" title="www.spiger.cn"><img src="http://www.spiger.cn/download.asp?id=85" border="0" alt=""/></a><br/><br/>3、检查你的磁盘分区格式,如果不是NTFS分区,则会有限制,将磁盘分区格式改成NTFS&nbsp;&nbsp;：如果是FAT16,则数据文件最大只能是2G，如果是FAT32,则数据文件最大只能是4G，改为NTFS分区则没有这种限制。 <br/><br/>4、检查你的SQL版本，如果你用MSDE，则限制了数据文件最大是2G。<br/><br/>5、你也可以为 primary 组添加新的数据文件来解决这个问题；企业管理器--右键你的数据库--属性--数据文件－添加数据文件。<br/><br/>使用SQL语句：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code18056);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code18056>alt&#101;r database 库名 add file(NAME = 逻辑文件名,FILENAME = &#39;c:实际文件名.ndf&#39;</div></div><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/246.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=246</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[css中filter:alpha透明度总结]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=11" label="网站设计" /> 
	  <updated>2010-07-28T10:56:28+08:00</updated>
	  <published>2010-07-28T10:56:28+08:00</published>
		  <summary type="html"><![CDATA[Alpha，设置透明度。<br/><br/><span style="color:Blue">用法：</span><br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code56655);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code56655>FILTER:alpha(opacity=80);/* 设置不透明度为80 */<br/></div></div><br/>filter:Alpha(Opacity=?, FinishOpacity=?, Style=?, StartX=?, StartY=?, FinishX=?, FinishY=?)<br/>Opacity：透明度级别，范围是0-100，0代表完全透明，100代表完全不透明。<br/>FinishOpacity：设置渐变的透明效果时，用来指定结束时的透明度，范围也是0 到 100。<br/>Style：设置渐变透明的样式，值为0代表统一形状、1代表线形、2代表放射状、3代表长方形。<br/>StartX和StartY：代表渐变透明效果的开始X和Y坐标。<br/>FinishX和FinishY：代表渐变透明效果结束X和Y 的坐标。<br/><br/>对于IE上述方法是没有问题的。若要支持firefox请参照下面：<br/><br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code34628);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code34628>filter:alpha(opacity=80);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* IE */<br/>-moz-opacity:0.8;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Moz + FF */<br/>opacity: 0.8;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* 支持CSS3的浏览器（FF 1.5也支持）*/</div></div><br/><br/>　　简单解释，IE使用私有属性filter:alpha(opacity)，Moz Family使用私有属性-moz-opacity，而标准的属性是opacity（CSS 3, Moz Family部分支持CSS3）。后面的数值是透明度，使用百分比或者小数（alpha(opacity)）使用大于0小于100的数值，其实也是百分比）。]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/245.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=245</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[Microsoft VBscri&#112;t 运行时错误 错误 &#39;800a0046&#39; 没有权限]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=6" label="网络笔记" /> 
	  <updated>2010-07-24T09:43:36+08:00</updated>
	  <published>2010-07-24T09:43:36+08:00</published>
		  <summary type="html"><![CDATA[　　用fso组件删除文件时没有权限，报错：Microsoft VBscri&#112;t 运行时错误 错误 &#39;800a0046&#39; 没有权限。主要原因。如文中描述，没有权限。<br/><br/>　　<span style="color:Blue">解决办法：</span><br/>　　一、在开始里运行：regsvr32.exe scrrun.dll　，这是注册FSO组件的命令。（删除fso: 在运行中输入:regsvr32/u scrrun.dll 即可）<br/><br/>　　二、找到网站目录，对应要删除文件的上级文件夹设置权限，经过我测试“iusr_计算机名”用户，只要设置“修改、读取和运行、列出文件夹目录、读取、写入”为允许就OK。当然设置完全控制当然也是可以的。<br/><br/>　　三、一般到此问题都能解决。网上还有句关于代码修改的意见：fso.del&#101;tefile 文件完整路径,true；这里的true，表示包括只读指令的文件也将被删除！<br/><br/>　　附删除文件代码：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code67918);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code67918>&lt;% &#39;&#39;文件删除函数 <br/>function del&#101;tefile(filename)&nbsp;&nbsp;<br/>if filename&lt;&gt;&#34;&#34; then <br/>&#160;&#160;&#160;&#160;set fso=server.Cr&#101;ateObject(&#34;scripting.filesystemobject&#34;) <br/>&#160;&#160;&#160;&#160;if fso.FileExists(filename) then <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fso.Del&#101;teFile filename,true<br/>&#160;&#160;&#160;&#160;else <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Response.Write &#34;&lt;script&gt;alert(&#39;&#39;该文件不存在&#39;&#39;);&lt;/script&gt;&#34; <br/>&#160;&#160;&#160;&#160;end if <br/>end if <br/>end function&nbsp;&nbsp;<br/>%&gt; </div></div><br/><br/>调用方法 :<br/><br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code49355);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code49355>&lt;%&#39;删除文件&nbsp;&nbsp; <br/>strfile=server.MapPath(&#34;../&#34;+fileName) &#39;注意这个路径&nbsp;&nbsp; <br/>del&#101;tefile(strfile)&nbsp;&nbsp;%&gt;</div></div>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/244.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=244</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[把mssql server所有表的所有者改为dbo]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=8" label="编程天地" /> 
	  <updated>2010-07-22T18:06:01+08:00</updated>
	  <published>2010-07-22T18:06:01+08:00</published>
		  <summary type="html"><![CDATA[　　今天有个客户的数据库转移到我们的服务器上，版本也是ms2000的，企业管理器可以打开数据内容。而用查询分析器执行任一操作，比如：“sel&#101;ct * from gg”却一直报错：“服务器: 消息 208，级别 16，状态 1，行 1&nbsp;&nbsp;对象名 &#39;gg&#39; 无效。”新建一个表一切OK，仔细对比了下其所有者不同。如图：<br/><a href="http://www.spiger.cn/download.asp?id=84" rel="lightbox[roadtrip]" title="www.spiger.cn"><img src="http://www.spiger.cn/download.asp?id=84" border="0" alt=""/></a><br/><br/>　　<span style="color:Blue">解决办法：</span><br/>　　将当前库的所有表的所有者改为dbo后一切正常：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code50296);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code50296>exec sp_msforeachtable &#39;sp_changeobjectowner &#39;&#39;?&#39;&#39;, &#39;&#39;dbo&#39;&#39;&#39; </div></div><br/>以SA登陆查询分析器，选中你要的数据库，执行上述SQL语句。把表或存储过程中的所有者都改成dbo <br/><br/>如果是要用户表/存储过程/视图/触发器/自定义函数一齐改,则用游标(不要理会错误提示)<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code76999);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code76999>declare tb cursor local for<br/>sel&#101;ct &#39;sp_changeobjectowner &#39;&#39;[&#39;+replace(user_name(uid),&#39;]&#39;,&#39;]]&#39;)+&#39;].[&#39;+replace(name,&#39;]&#39;,&#39;]]&#39;)+&#39;]&#39;&#39;,&#39;&#39;dbo&#39;&#39;&#39;<br/>from sysobjects<br/>wh&#101;re xtype in(&#39;U&#39;,&#39;V&#39;,&#39;P&#39;,&#39;TR&#39;,&#39;FN&#39;,&#39;IF&#39;,&#39;TF&#39;) and status&gt;=0<br/>open tb<br/>declare @s nvarchar(4000)<br/>fetch tb into @s<br/>while @@fetch_status=0<br/>begin<br/>exec(@s)<br/>fetch tb into @s<br/>end<br/>close tb<br/>deallocate tb<br/>go</div></div>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/243.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=243</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[SQL实现上一条下一条记录查询]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=8" label="编程天地" /> 
	  <updated>2010-07-21T09:28:14+08:00</updated>
	  <published>2010-07-21T09:28:14+08:00</published>
		  <summary type="html"><![CDATA[　　在网站开发中经常会用到比较新闻文章页，给用户一个导航，使用户无需回到上一级的栏目就可以看到上一条下一条记录信息，给用户浏览者带来了方便。好脑子不如烂笔头，记下来，以防每次想这两句SQL的时候还要查。<br/><br/><span style="color:Blue">上一条记录的SQL语句：</span><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code90658);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code90658>sel&#101;ct top 1 * from news wh&#101;re newsid&lt;id o&#114;der by newsid DESC </div></div><br/><span style="color:Blue">下一条记录的SQL语句：</span><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code57546);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code57546>sel&#101;ct top 1 * from news wh&#101;re newsid&gt;id o&#114;der by newsid ASC </div></div><br/><br/>补充：这里的id是指当前正在被访问的id参数。<br/><br/>解释： 上一条的sql语句，从news表里按从大到小的顺序选择一条比当前ID小的新闻。<br/>　　　下一条的sql语句，从news表里按从小到大的顺序选择一条比当前ID大的新闻。<br/><br/>恩，自己的理解解释的。]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/242.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=242</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[CDN技术原理]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=6" label="网络笔记" /> 
	  <updated>2010-07-17T08:52:37+08:00</updated>
	  <published>2010-07-17T08:52:37+08:00</published>
		  <summary type="html"><![CDATA[　　通过本文分析得出，不论是否使用CDN网络，普通用户客户端设置不需做任何改变，直接使用被加速网站原有域名访问即可。对于要加速的网站，只需修改整个访问过程中的域名解析部分，便能实现透明的网络加速服务。<br/><br/>　　要了解CDN的实现原理，首先让我们来回顾一下网站传统的访问过程，以便理解其与CDN访问方式之间的差别：<a href="http://www.spiger.cn/download.asp?id=82" rel="lightbox[roadtrip]" title="www.spiger.cn"><img src="http://www.spiger.cn/download.asp?id=82" border="0" alt=""/></a><br/><br/>由上图可见，<strong>传统的网站访问过程为</strong>:<br/><br/>1. 用户在浏览器中输入要访问的域名；<br/>2. 浏览器向域名解析服务器发出解析请求，获得此域名对应的IP地址；<br/>3. 浏览器利用所得到的IP地址，向该IP对应的服务器发出访问请求；<br/>4. 服务器对此响应，将数据回传至用户浏览器端显示出来。<br/><br/>　　与传统访问方式不同，CDN网络则是在用户和服务器之间增加Cache层，将用户的访问请求引导到Cache节点而不是服务器源站点，要实现这一目的，主要是通过接管DNS实现，下图为使用CDN缓存后的网站访问过程：<br/><a href="http://www.spiger.cn/download.asp?id=83" rel="lightbox[roadtrip]" title="www.spiger.cn"><img src="http://www.spiger.cn/download.asp?id=83" border="0" alt=""/></a><br/><br/>由上图可见，<span style="color:Blue"><strong>使用CDN缓存后的网站访问过程演变为</strong></span>：<br/><br/>1.&nbsp;&nbsp;用户在浏览器中输入要访问的域名； <br/>2.&nbsp;&nbsp;浏览器向域名解析服务器发出解析请求，由于CDN对域名解析过程进行了调整，所以用户端一般得到的是该域名对应的CNAME记录，此时浏览器需要再次对获得的CNAME域名进行解析才能得到缓存服务器实际的IP地址。<br/><i>注：在此过程中，全局负载均衡DNS解析服务器会根据用户端的源IP地址，如地理位置（深圳还是上海）、接入网类型（电信还是网通）将用户的访问请求定位到离用户路由最短、位置最近、负载最轻的Cache节点（缓存服务器）上，实现就近定位。定位优先原则可按位置、可按路由、也可按负载等。 </i><br/>3. 再次解析后浏览器得到该域名CDN缓存服务器的实际IP地址，向缓存服务器发出访问请求； <br/>4.&nbsp;&nbsp;缓存服务器根据浏览器提供的域名，通过Cache内部专用DNS解析得到此域名源服务器的真实IP地址，再由缓存服务器向此真实IP地址提交访问请求； <br/>5.&nbsp;&nbsp;缓存服务器从真实IP地址得到内容后，一方面在本地进行保存，以备以后使用，同时把得到的数据发送到客户端浏览器，完成访问的响应过程； <br/>6.&nbsp;&nbsp;用户端得到由缓存服务器传回的数据后显示出来，至此完成整个域名访问过程。 <br/><br/>通过以上分析可以看到，不论是否使用CDN网络，普通用户客户端设置不需做任何改变，直接使用被加速网站原有域名访问即可。对于要加速的网站，只需修改整个访问过程中的域名解析部分，便能实现透明的网络加速服务。 <br/><br/>本文转自：<a href="http://www.51cto.com/art/200704/45928.htm" target="_blank" rel="external">http://www.51cto.com/art/200704/45928.htm</a><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/241.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=241</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[图片下边的多余空隙——IE布局BUG总结]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=11" label="网站设计" /> 
	  <updated>2010-07-15T17:27:32+08:00</updated>
	  <published>2010-07-15T17:27:32+08:00</published>
		  <summary type="html"><![CDATA[　　IE6下图片元素下多余空隙这个问题是个老生常谈的问题，平时自己也是见招拆招，没有系统的总结过到底有多少种方法。最近上网一网打尽IE6BUG，这里我就当是温故而知新，具体表现形式就不列举了，直接把解决方法归纳出来。<br/><br/>　　<span style="color:Blue">问题假设：</span><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code4883);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code4883>&lt;div id=&#34;sub&#34;&gt;&lt;img src=&#34;/demo.jpg&#34; /&gt;&lt;/div&gt;</div></div><br/><br/>以下总结归纳网络上比较常用的几种方法，我都是直接转载过来，感谢网络同仁们。<br/><br/><strong>一、将图片转换为块级对象</strong><br/>即，设置img为“display:block;”。例如，添加一组CSS代码：<div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code80316);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code80316>#sub img {display:block;}</div></div><br/><br/><strong>二、设置图片的垂直对齐方式</strong><br/>即设置图片的vertical-align属性为“top，text-top，bottom，text-bottom”也可以解决。例如，增加一组CSS代码：<div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code54017);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code54017>#sub img {vertical-align:top;}</div></div><br/><br/><strong>三、设置图片的浮动属性</strong><br/>即在本例中增加一行CSS代码：<div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code6356);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code6356>#sub img {float:left;}</div></div>。如果要实现图文混排，这种方法是很好的选择。<br/><br/><strong>四、改变<span style="color:Blue">父对象</span>的属性</strong><br/>如果父对象的宽、高固定，图片大小随父对象而定，那么可以设置“overflow:hidden;”来解决。例如，<div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code49340);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code49340>#sub{overflow:hidden;}</div></div><br/><br/><strong>五、设置<span style="color:Blue">父对象</span>的文字大小为0px</strong><br/>例如，在#sub中添加一行：“font-size:0;”可以解决问题。但这也引发了新的问题，在父对象中的文字都无法显示。就算文字部分被子对象括起来，设置子对象文字大小依然可以显示，但在CSS效验的时候会提示文字过小的错误。<br/><br/><strong>六、取消图片标签和其父对象的最后一个结束标签之间的空格。</strong><br/><br/>这个方法要强调下，在实际开发中该方法可能会出乱子，因为在写代码的时候为了让代码更体现语义和层次清晰，难免要通过IDE提供代码缩进显示，这必然会让标签和其他标签换行显示，比如说DW的“套用源格式”命令。所以说这个方法可以供我们了解出现BUG的一种情况，具体解决方案的还得各位见招拆招了。]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/240.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=240</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[IE6双倍边距——IE布局BUG总结]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=11" label="网站设计" /> 
	  <updated>2010-07-15T17:06:04+08:00</updated>
	  <published>2010-07-15T17:06:04+08:00</published>
		  <summary type="html"><![CDATA[　　前言：IE6双倍边距这个问题其实早在学习Css之初都已经知道如何解决，但当时只知道如何解决而并不知道引起这个BUG的原因是什么，再接下来工作过程中不断实践也终于明白是怎么回事了。但脑子始终不好使，索性上网把所有的IE6BUG 都收集整理下，作为我可怜的大脑的外挂硬盘储备。<br/><br/><span style="color:Blue"><strong>1、问题：</strong></span>在IE6下如果某个标签使用了float属性，同时设置了其外补丁“margin:10px 0 0 10px”可以看出，上边距和左边距同样为10px，但第一个对象距左边有20px。<br/><br/><span style="color:Blue"><strong>2、解决办法：</strong></span>当将其display属性设置为inline时问题就都解决了。<br/><br/><span style="color:Blue"><strong>3、说明：</strong></span>这是因为块级对象默认的display属性值是block，当设置了浮动的同时，还设置了它的外边距 就会出现这种情况。也许你会问：“为什么第二个对象和第一个对象之间就不存在双倍边距的BUG”？因为浮动都有其相对应的对象，<strong>只有相对于其父对象的浮动，对象才会出现这样的问题。</strong>第一个对象是相对父对象的，而第二个对象是相对第一个对象的，所以第二个对象在设置后不会出现问题。另外在一些特殊布局中，可能需要组合使用display:block;和display:inline;才能达到预期效果。当然最坏的情况下，我们就可以使用<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code4661);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.spiger.cn/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code4661>margin:10px 0 0 10px;*margin:10px 0 0 10px;_margin:10px 0 0 5px;</div></div>，这种“<strong>标准属性;*IE7识别属性;_IE6识别属性</strong>”HACK方式解决。<br/><br/>4、总结：这个现象仅当块级对象设置了浮动属性后才会出现，内联对象（行级对象）不会出现此问题。并且只有设置左边距和右边距的值才会出问题，上下边距不会出现问题。]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/239.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=239</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[汽车哪个座位最安全？]]></title>
	  <author>
		 <name>蛛蛛虎</name>
		 <uri>http://www.spiger.cn/</uri>
		 <email>xiorhoo@gmail.com</email>
	  </author>
	  <category term="" scheme="http://www.spiger.cn/default.asp?cateID=9" label="休闲杂谈" /> 
	  <updated>2010-07-15T10:34:46+08:00</updated>
	  <published>2010-07-15T10:34:46+08:00</published>
		  <summary type="html"><![CDATA[<a href="http://www.spiger.cn/download.asp?id=81" rel="lightbox[roadtrip]" title="www.spiger.cn"><img src="http://www.spiger.cn/download.asp?id=81" border="0" alt=""/></a><br/><br/>　　随着汽车越来越快地走进人们的生活，安全也成为了人们最关心的话题，不少人会提出这样的问题：轿车中的哪个座位是最安全的呢？ <br/>　<br/>　　据悉，美国交通管理部门曾做过调查，得出的结论是：如果将汽车驾驶员座位的危险系数设定为100，则副驾驶位置的危险系数是101，而驾驶员后排座位的危险系数是73.4，后排另一侧座位的危险系数是74.2，后排中间位置的危险系数是62.2。一些专家还惊奇地发现，后排中间位置的危险系数62.2，与被人们称为“黄金系数”的0.618最相接近，如果将0.619扩大100倍，为61.8，与最安全座位的62.2相差无几。<br/>　<br/><br/>　　所以有人把后排中间座位称为轿车的“黄金座位”。虽然有人认为前副座视野会更好，但视野与安全是两码事。]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.spiger.cn/article/238.html" /> 
	  <id>http://www.spiger.cn/default.asp?id=238</id>
  </entry>	
		
</feed>
