<?xml version="1.0" encoding="UTF-8" ?>



<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

<channel>
<title><![CDATA[个人博客]]> </title>
<description>
<![CDATA[——企业网站：http://www.s8tex.com 



]]>
</description>
<link>http://fxiang.blog.bokee.net/</link>
<language>zh-cn</language>
<creator>fxiang</creator>
<pubDate>Tue, 26 Dec 2006 16:40:57 CST </pubDate>
<generatorAgent rdf:resource="http://www.bokee.net"/>
<ttl>5</ttl>

<item>
<title>一些“事”</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3682752.html</link>
<description>
<![CDATA[<div id="blogDetailDiv" style="FONT-SIZE: 16px">
<p>2009年8月31日：</p>
<p>1、许多产业领域中的&ldquo;国进民退&rdquo;现象严重,市场垄断力量明显增强,市场化改革进程有所倒退。（政府主导的收购兼并，以大吃小，比如煤炭、钢铁、航空行业等等）</p>
<p>&nbsp;</p>
<p>2、再融资30%分红新规成一纸空文（《关于修改上市公司现金分红若干规定的决定》详见以下官方网址：<a target="_blank" href="http://www.csrc.gov.cn/n575458/n575667/n4231514/n4231533/n8928778/10930879.html">http://www.csrc.gov.cn/n575458/n575667/n4231514/n4231533/n8928778/10930879.html</a>）</p>
<p>&nbsp;</p>
<p>3、浙江省高级人民法院刚刚出台的《关于审理交通肇事刑事案件若干意见》的规定：交通肇事后报警并在现场等候处理的行为，不能认定为自首；而交通肇事逃逸后向有关机关投案，并如实供述犯罪事实的，可以认定自首。</p>
<p>　　以下是一些专家的观点：</p>
<p>　　浙江高院刑三庭庭长丁卫强是意见起草者之一，他对媒体解释，刑法已将交通肇事后逃逸的行为规定为加重处罚情节，交通肇事后报警并保护事故现场是道路交通安全法规定的当事人交通肇事后必须履行的义务。如果将这种当事人本来就应该做的事情也认定为自首，那就等于对一件事作了双重评价，不符合立法精神。针对人们&ldquo;跑了后投案反而比不跑处罚得更轻？&rdquo;的质疑，丁卫强解释，刑法规定，一般交通肇事案件处3年以下有期徒刑，肇事后逃逸的处3年以上7年以下有期徒刑。所以，逃逸后投案，虽然根据自首的规定可以从轻或减轻处罚，但是量刑幅度却是在3年到7年之内，比一般交通肇事还是要重的。 </p>
<p>　　交通部管理干部学院的张柱庭教授曾是《道路交通安全法》起草人之一。他强调，省高院是没有法律解释权的，即使是内部指导意见，也不应当向社会发布，从而对公众产生误导。中国政法大学刑法学教授邬明安认为&ldquo;浙江省高院的意见属于适用于本地区的内部司法规范，不能与刑法和司法解释规定相背离。&rdquo; </p>
<p>　　依据最高法院司法解释，在交通肇事后报案并在现场等候处理，或肇事后主动投案，并能如实供述自己肇事罪行的，均符合自首的两个法定条件，应依法认定为自首，不存在&ldquo;交通肇事后报警与不报警&rdquo;这一额外的构成要件。 </p>
<p>　　邬明安教授说，履行道路交通安全法的义务并不是自首的例外规定，履行报警义务并不能排斥自首规定的适用；肇事后报警并在肇事现场等候处理的行为与主动去司法机关投案有相同的法律效果，不存在重复评价的问题。如肇事者肇事后不履行保护现场、抢救受伤人员并报警的义务而离开现场去投案，或肇事后履行报警义务但并不在现场等候而去投案等都属于自首，岂不更应当把&lsquo;肇事后报警并在肇事现场等候处理的行为&rsquo;认定为自首。 </p>
<p>&nbsp;</p>
</div>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3682752.html</guid>
<subject>个人随记</subject>
<author>fxiang</author>
<category>个人随记</category>
<pubDate>Mon, 31 Aug 2009 22:00:18 CST </pubDate>
</item>

<item>
<title>世帛纺织WAP网站开通</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/2922364.html</link>
<description>
<![CDATA[<p><font color="#000000"><font color="#000000" size="2">热烈祝贺<font face="Verdana">中国轻纺城世帛纺织WAP网站开通</font>! 竭诚欢迎广大新老客户来人来电洽谈订购!</font></font></p>
<p><font size="2">企业WAP网址：<a href="http://3g.s8tex.com/">3g.s8tex.com</a> </font></p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/2922364.html</guid>
<subject></subject>
<author>fxiang</author>
<category></category>
<pubDate>Wed, 22 Apr 2009 11:58:47 CST </pubDate>
</item>

<item>
<title>中国轻纺城世帛纺织网站开通</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/2922355.html</link>
<description>
<![CDATA[<p><font color="#000000"><font color="#000000" size="2">热烈祝贺<font face="Verdana">中国轻纺城世帛纺织网站开通</font>! 竭诚欢迎广大新老客户来人来电洽谈订购!</font></font></p>
<p><font size="2"><a href="http://www.s8tex.com/">www.s8tex.com</a></font></p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/2922355.html</guid>
<subject></subject>
<author>fxiang</author>
<category></category>
<pubDate>Wed, 22 Apr 2009 11:58:18 CST </pubDate>
</item>

<item>
<title>短信网址使用方法</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1419334.html</link>
<description>
<![CDATA[编辑短信内容：&ldquo;中华供应商&rdquo;（不含双引号），发送至&ldquo;12114&rdquo;，（不产生任何信息费用）]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1419334.html</guid>
<subject>世帛纺织公司文章</subject>
<author>fxiang</author>
<category>世帛纺织公司文章</category>
<pubDate>Wed, 13 Feb 2008 17:11:09 CST </pubDate>
</item>

<item>
<title>server.htmlencode </title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1275458.html</link>
<description>
<![CDATA[Function HTMLEncode(Str)<br /> If Isnull(Str) Then<br />	 HTMLEncode = &quot;&quot;<br />	 Exit Function <br /> End If<br /> Str = Replace(Str,Chr(0),&quot;&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;&quot;&quot;&quot;, &quot;&amp;quot;&quot;, 1, -1, 1)<br /> Str = Replace(Str,&quot;&lt;&quot;,&quot;&amp;lt;&quot;, 1, -1, 1)<br /> Str = Replace(Str,&quot;&gt;&quot;,&quot;&amp;gt;&quot;, 1, -1, 1) <br /> Str = Replace(Str, &quot;script&quot;, &quot;&amp;#115;cript&quot;, 1, -1, 0)<br /> Str = Replace(Str, &quot;SCRIPT&quot;, &quot;&amp;#083;CRIPT&quot;, 1, -1, 0)<br /> Str = Replace(Str, &quot;Script&quot;, &quot;&amp;#083;cript&quot;, 1, -1, 0)<br /> Str = Replace(Str, &quot;script&quot;, &quot;&amp;#083;cript&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;object&quot;, &quot;&amp;#111;bject&quot;, 1, -1, 0)<br /> Str = Replace(Str, &quot;OBJECT&quot;, &quot;&amp;#079;BJECT&quot;, 1, -1, 0)<br /> Str = Replace(Str, &quot;Object&quot;, &quot;&amp;#079;bject&quot;, 1, -1, 0)<br /> Str = Replace(Str, &quot;object&quot;, &quot;&amp;#079;bject&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;applet&quot;, &quot;&amp;#097;pplet&quot;, 1, -1, 0)<br /> Str = Replace(Str, &quot;APPLET&quot;, &quot;&amp;#065;PPLET&quot;, 1, -1, 0)<br /> Str = Replace(Str, &quot;Applet&quot;, &quot;&amp;#065;pplet&quot;, 1, -1, 0)<br /> Str = Replace(Str, &quot;applet&quot;, &quot;&amp;#065;pplet&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;[&quot;, &quot;&amp;#091;&quot;)<br /> Str = Replace(Str, &quot;]&quot;, &quot;&amp;#093;&quot;)<br /> Str = Replace(Str, &quot;&quot;&quot;&quot;, &quot;&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;=&quot;, &quot;&amp;#061;&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;'&quot;, &quot;''&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;select&quot;, &quot;sel&amp;#101;ct&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;execute&quot;, &quot;&amp;#101xecute&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;exec&quot;, &quot;&amp;#101xec&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;join&quot;, &quot;jo&amp;#105;n&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;union&quot;, &quot;un&amp;#105;on&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;where&quot;, &quot;wh&amp;#101;re&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;insert&quot;, &quot;ins&amp;#101;rt&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;delete&quot;, &quot;del&amp;#101;te&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;update&quot;, &quot;up&amp;#100;ate&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;like&quot;, &quot;lik&amp;#101;&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;drop&quot;, &quot;dro&amp;#112;&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;create&quot;, &quot;cr&amp;#101;ate&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;rename&quot;, &quot;ren&amp;#097;me&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;count&quot;, &quot;co&amp;#117;nt&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;chr&quot;, &quot;c&amp;#104;r&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;mid&quot;, &quot;m&amp;#105;d&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;truncate&quot;, &quot;trunc&amp;#097;te&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;nchar&quot;, &quot;nch&amp;#097;r&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;char&quot;, &quot;ch&amp;#097;r&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;alter&quot;, &quot;alt&amp;#101;r&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;cast&quot;, &quot;ca&amp;#115;t&quot;, 1, -1, 1)<br /> Str = Replace(Str, &quot;exists&quot;, &quot;e&amp;#120;ists&quot;, 1, -1, 1)<br /> Str = Replace(Str,Chr(13),&quot;&lt;br&gt;&quot;, 1, -1, 1)<br /> HTMLEncode = Replace(Str,&quot;'&quot;,&quot;''&quot;, 1, -1, 1)<br />End Function<br />]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1275458.html</guid>
<subject>计算机</subject>
<author>fxiang</author>
<category>计算机</category>
<pubDate>Tue, 18 Dec 2007 21:24:51 CST </pubDate>
</item>

<item>
<title> VBScript  FormatDateTime函数</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1261770.html</link>
<description>
<![CDATA[<p class="label"><strong>描述</strong></p>
<p>返回一个日期或时间格式的表达式。</p>
<p class="label"><strong>语法</strong></p>
<p><strong><font style="BACKGROUND-COLOR: #335ea8" color="#ffffff">FormatDateTime</font>(</strong><span class="emp"><em>Date</em></span>[<strong>,</strong><span class="emp"><em>NamedFormat</em></span>]<strong>)</strong></p>
<p><strong><font style="BACKGROUND-COLOR: #335ea8" color="#ffffff">FormatDateTime</font></strong>函数语法有如下几部分：</p>
<p>
<table cols="2" cellpadding="5" rules="rows" border="1" frame="below">
    <tbody>
        <tr valign="top">
            <td class="label" width="27%"><strong>部分</strong></td>
            <td class="label" width="73%"><strong>描述</strong></td>
        </tr>
        <tr valign="top">
            <td width="27%"><span class="emp"><em>Date</em></span></td>
            <td width="73%">必需的。要被格式化的日期表达式。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><span class="emp"><em>NamedFormat</em></span></td>
            <td width="73%">可选的。数字值，表示日期/时间所使用的格式。如果忽略该值，则使用<strong>vbGeneralDate</strong>。</td>
        </tr>
    </tbody>
</table>
<br /></p>
<p class="label"><strong>设置值</strong></p>
<p><span class="emp"><em>NamedFormat</em></span>参数的设置值如下：</p>
<p>
<table cols="3" cellpadding="5" rules="rows" border="1" frame="below">
    <tbody>
        <tr valign="top">
            <td class="label" width="27%"><strong>常数</strong></td>
            <td class="label" width="12%"><strong>值</strong></td>
            <td class="label" width="61%"><strong>描述</strong></td>
        </tr>
        <tr valign="top">
            <td width="27%"><strong>vbGeneralDate</strong></td>
            <td width="12%">0</td>
            <td width="61%">显示日期和/或时间。如果有日期部分，则用短日期格式显示。如果有时间部分，则用长时间格式显示。如果都有，两部分都显示。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><strong>vbLongDate</strong></td>
            <td width="12%">1</td>
            <td width="61%">用计算机区域设置值中指定的长日期格式显示日期。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><strong>vbShortDate</strong></td>
            <td width="12%">2</td>
            <td width="61%">用计算机区域设置值中指定的短日期格式显示日期。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><strong>vbLongTime</strong></td>
            <td width="12%">3</td>
            <td width="61%">用计算机区域设置值中指定的时间格式显示时间。</td>
        </tr>
        <tr valign="top">
            <td width="27%"><strong>vbShortTime</strong></td>
            <td width="12%">4</td>
            <td width="61%">用24小时格式（hh：mm）显示时间。</td>
        </tr>
    </tbody>
</table>
</p>
<p><font size="4"></font>&nbsp;</p>
<p><font size="4">Windows中的时间格式还真不少，什么长日期、短日期，两位年份、四位年份等等，在Delphi中可用<font face="Times New Roman">FormatDateTime函数输出这些格式，下面介绍它的用法：</font></font> </p>
<p><font face="Times New Roman" size="4">function FormatDateTime(const Format: string; DateTime: TDateTime): string; </font></p>
<p><font face="Times New Roman" size="4">Format参数是一个格式化字符串。DateTime是时间类型。返回值是一种格式化后的字符串，重点来看Format参数中的指令字符：</font></p>
<p><font face="Times New Roman" size="4">c 以短时间格式显示时间，即全部是数字的表示<br />FormatdateTime('c',now);<br />输出为：2004-8-7 9:55:40</font></p>
<p><font face="Times New Roman" size="4">d 对应于时间中的日期，日期是一位则显示一位，两位则显示两位<br />FormatdateTime('d',now);<br />输出可能为1～31<br />dd 和d的意义一样，但它始终是以两位来显示的<br />FormatdateTime('dd',now);<br />输出可能为01～31<br />ddd 显示的是星期几<br />FormatdateTime('ddd',now);<br />输出为: 星期六<br />dddd 和ddd显示的是一样的。<br />但上面两个如果在其他国家可能不一样。<br />ddddd 以短时间格式显示年月日 <br />FormatdateTime('ddddd',now);<br />输出为：2004-8-7<br />dddddd 以长时间格式显示年月日<br />FormatdateTime('dddddd',now); <br />输出为：2004年8月7日</font></p>
<p><font face="Times New Roman" size="4">e/ee/eee/eeee 以相应的位数显示年<br />FormatdateTime('ee',now); <br />输出为：04 （表示04年）</font></p>
<p><font face="Times New Roman" size="4">m/mm/mmm/mmmm 表示月<br />FormatdateTime('m',now);<br />输出为：8<br />FormatdateTime('mm',now);<br />输出为 08<br />FormatdateTime('mmm',now);<br />输出为 八月<br />FormatdateTime('mmmm',now); <br />输出为 八月<br />和ddd/dddd 一样，在其他国家可能不同</font></p>
<p><font face="Times New Roman" size="4">yy/yyyy 表示年<br />FormatdateTime('yy',now);<br />输出为 04<br />FormatdateTime('yyyy',now);<br />输出为 2004</font></p>
<p><font face="Times New Roman" size="4">h/hh,n/nn,s/ss,z/zzz 分别表示小时，分，秒,毫秒<br />t 以短时间格式显示时间<br />FormatdateTime('t',now);<br />输出为 10:17<br />tt 以长时间格式显示时间<br />FormatdateTime('tt',now);<br />输出为10:18:46</font></p>
<p><font face="Times New Roman" size="4">ampm 以长时间格式显示上午还是下午<br />FormatdateTime('ttampm',now);<br />输出为：10:22:57上午</font></p>
<p><font face="Times New Roman" size="4">如果要在Format中加普通的字符串，可以用双引号隔开那些特定义的字符，这样普通字符串中如果含特殊的字符就不会被显示为时间格式啦：<br />FormatdateTime('&quot;today is&quot; c',now);<br />输出为：today is 2004-8-7 10:26:58</font></p>
<p><font face="Times New Roman" size="4">时间中也可以加&quot;-&quot;或&quot;\&quot;来分开日期：<br />FormatdateTime('&quot;today is&quot; yy-mm-dd',now);<br />FormatdateTime('&quot;today is&quot; yy\mm\dd',now);<br />输出为： today is 04-08-07</font></p>
<p><font face="Times New Roman" size="4">也可以用&quot;:&quot;来分开时间 <br />FormatdateTime('&quot;today is&quot; hh:nn:ss',now);<br />输出为：today is 10:32:23<br /></font></p>
&nbsp;<br />]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1261770.html</guid>
<subject>计算机</subject>
<author>fxiang</author>
<category>计算机</category>
<pubDate>Thu, 13 Dec 2007 22:09:11 CST </pubDate>
</item>

<item>
<title>css元素定位</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1255820.html</link>
<description>
<![CDATA[<p><strong>1. position:static|无定位</strong><br />position:static是所有元素定位的默认值, 一般不用注明，除非有需要取消继承的别的定位</p>
<p>example:</p>
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>#div-1 {<br />&nbsp;position:static;<br />}</td>
        </tr>
    </tbody>
</table>
<p><strong>2. position:relative|相对定位<br /></strong>使用position:relative，就需要top,bottom,left,right4个属性来配合，确定元素的位置。<br />如果要让div-1层向下移动20px,左移40px:</p>
<p>example:</p>
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>#div-1 {<br />&nbsp;position:relative;<br />&nbsp;top:20px;<br />&nbsp;left:40px;<br />}</td>
        </tr>
    </tbody>
</table>
<p>如果用到相对定位，紧随他的层divafter是不会出现在div-1的下方，而是和div-1在同一个高度出现。</p>
<p align="center"><img height="140" src="http://www.butong.net/wangyezhizuo/060519/01.gif" width="242" border="0" alt="" /></p>
<p>可见， position:relative;并不是很好用。</p>
<p><strong>3. position:absolute|绝对定位</strong><br />使用position:absolute;,能够很准确的将元素移动到你想要的位置，让我将 div-1a 移动到页面的右上角:</p>
<p>example:</p>
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>#div-1a {<br />&nbsp;position:absolute;<br />&nbsp;top:0;<br />&nbsp;right:0;<br />&nbsp;width:200px;<br />}</td>
        </tr>
    </tbody>
</table>
<p>使用绝对定位的div-1a层前面的或者后面的层会认为这个层并不存在，丝毫不影响到他们。所以position:absolute;用于将一个元素放到固定的位置很好用，但是如果需要div-1a层相对于附近的层来确定位置就不要实现了。<br /><font color="#ff0000">*这里有个Win IE的bug需要提到，就是如果为绝对定位的元素定义一个相对的度，那么在IE下它的宽度取决于父元素的宽度而不是整个页面的宽度。</font></p>
<p><strong>4. position:relative + position:absolute|绝对定位+相对定位</strong><br />如果给父元素(div-1)定义为position:relative;子元素(div-1a)定义为position:absolute，那么子元素(div-1a)的位置将相对于父元素(div-1)，而不是整个页面。<br />让div-1a定位于div-1的右上角：</p>
<p>example:</p>
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>&lt;div id=&quot;div-1&quot;&gt;<br />&nbsp;&lt;div id=&quot;div-1a&quot;&gt;<br />&nbsp;this is div-1a element.<br />&nbsp;&lt;/div&gt;<br />this is div-1 element.<br />&lt;/div&gt;</td>
        </tr>
    </tbody>
</table>
<br />
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>#div-1 {<br />&nbsp;position:relative;<br />}<br />#div-1a {<br />&nbsp;position:absolute;<br />&nbsp;top:0;<br />&nbsp;right:0;<br />&nbsp;width:200px;<br />}</td>
        </tr>
    </tbody>
</table>
<p><strong>5. two column layout|两列布局</strong><br />让我们实践position:relative + position:absolute的理论，实现两列布局</p>
<p>example:</p>
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>&lt;div id=&quot;div-1&quot;&gt;<br />&nbsp;&lt;div id=&quot;div-1a&quot;&gt;this is the column-one&lt;/div&gt;<br />&nbsp;&lt;div id=&quot;div-1b&quot;&gt;this is the column-two&lt;/div&gt;<br />&lt;/div&gt;</td>
        </tr>
    </tbody>
</table>
<br />
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>#div-1 {<br />&nbsp;position:relative;/*父元素相对定位*/<br />}<br />#div-1a {<br />&nbsp;position:absolute;/*子元素绝对定位*/<br />&nbsp;top:0;<br />&nbsp;right:0;<br />&nbsp;width:200px;<br />}<br />#div-1b {<br />&nbsp;position:absolute;/*子元素绝对定位*/<br />&nbsp;top:0;<br />&nbsp;left:0;<br />&nbsp;width:200px;<br />}</td>
        </tr>
    </tbody>
</table>
<p>注意，在这个例子中会发现父元素的高度不会随着子元素的告诉变化，所以如果父元素的背景和边框需要定义一个足够高的高度才能显示出来。</p>
<p><strong>6.float|浮动对齐</strong><br />使用float定位一个元素有float:left;&amp;float:right;两种值。这种定位只能在水平坐标定位，不能在垂直坐标定位。而且让下面的元素浮动环绕在它的左边或者右边。</p>
<p>example:</p>
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>#div-1a {<br />&nbsp;float:left;<br />&nbsp;width:200px;<br />}</td>
        </tr>
    </tbody>
</table>
<p><strong>7.make two clumn with float|浮动实现两列布局<br /></strong>如果让一个元素float:left;另一个float:right;控制好他们的宽度，就能实现两列的布局效果。</p>
<p>example:</p>
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>#div-1a {<br />&nbsp;float:left;<br />&nbsp;width:150px;<br />}<br />#div-1b {<br />&nbsp;float:left;<br />&nbsp;width:150px;<br />}</td>
        </tr>
    </tbody>
</table>
<p><strong>8.clear float|清除浮动</strong><br />如果你不想让使用了float元素的下面的元素浮动环绕在它的周围，那么你就使用clear,clear有三个值，clear:left;(清除左浮动)，clear:right;(清除右浮动)，clear:both;(清除所有浮动)。</p>
<p>example:</p>
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>&lt;div id=&quot;div-1a&quot;&gt;this is div-1a&lt;/div&gt;<br />&lt;div id=&quot;div-1b&quot;&gt;this is div-1b&lt;/div&gt;<br />&lt;div id=&quot;div-1c&quot;&gt;this is div-1c&lt;/div&gt;</td>
        </tr>
    </tbody>
</table>
<br />
<table cellspacing="0" cellpadding="2" width="100%" class="ddedfb">
    <tbody>
        <tr>
            <td>#div-1a {<br />&nbsp;float:left;<br />&nbsp;width:190px;<br />}<br />#div-1b {<br />&nbsp;float:left;<br />&nbsp;width:190px;<br />}<br />#div-1c {<br />&nbsp;clear:both;<br />}</td>
        </tr>
    </tbody>
</table>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1255820.html</guid>
<subject>计算机</subject>
<author>fxiang</author>
<category>计算机</category>
<pubDate>Wed, 12 Dec 2007 08:40:28 CST </pubDate>
</item>

<item>
<title>asp日历代码</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1213484.html</link>
<description>
<![CDATA[<p>&lt;% <br />Sub Calendar()</p>
<p>Dim y, m, d <br />Dim i, j, n, c, w <br />Dim iEnd </p>
<p>' y, m, d 年 月 日 <br />y = Year(Date()) <br />m = Month(Date()) <br />d = Day(Date()) </p>
<p>' n 一年的天数 <br />If y Mod 400 = 0 Or (y Mod 4 = 0 And y Mod 100 &lt;&gt; 0) Then <br />n = 366 <br />Else <br />n = 365 <br />End If </p>
<p>' c 当前月的天数 <br />Select Case m <br />Case 1, 3, 5, 7, 8, 10, 12 <br />c = 31 <br />Case 2 <br />If n = 366 Then <br />c = 29 <br />Else <br />c = 28 <br />End If <br />Case Else <br />c = 30 <br />End Select </p>
<p>' w 当前月第一天是星期几 <br />w = CInt(Weekday(DateSerial(y, m, 1))) <br />iEnd = ((w+c-1)\7-CInt((w+c-1)\7&lt;&gt;(w+c-1)/7))*7 </p>
<p>Response.Write &quot;&lt;table id=&quot;&quot;calendar&quot;&quot;&gt;&quot; <br />Response.Write &quot;&lt;tr&gt;&lt;td class=&quot;&quot;sunday&quot;&quot;&gt;日&lt;/td&gt;&lt;td&gt;一&lt;/td&gt;&lt;td&gt;二&lt;/td&gt;&lt;td&gt;三&lt;/td&gt;&lt;td&gt;四&lt;/td&gt;&lt;td&gt;五&lt;/td&gt;&lt;td&gt;六&lt;/td&gt;&lt;/tr&gt;&quot; <br />For i = 1 To iEnd <br />If i = 1 Then Response.Write &quot;&lt;tr&gt;&quot; <br />If i &gt; w-1 And i &lt; w+c Then <br />If i Mod 7 = 1 Then <br />Response.Write &quot;&lt;td class=&quot;&quot;sunday&quot;&quot;&gt;&quot; <br />Else <br />Response.Write &quot;&lt;td&gt;&quot; <br />End If <br />If i-w+1 = d Then <br />Response.Write &quot;&lt;span id=&quot;&quot;today&quot;&quot; style=&quot;&quot;font-weight:bold;&quot;&quot;&gt;&quot; &amp; i-w+1 &amp; &quot;&lt;/span&gt;&quot; <br />Else <br />Response.Write i-w+1 <br />End If <br />Response.Write &quot;&lt;/td&gt;&quot; <br />Else <br />Response.Write &quot;&lt;td&gt;&lt;/td&gt;&quot; <br />End If <br />If i Mod 7 = 0 And i &lt;&gt; iEnd Then Response.Write &quot;&lt;/tr&gt;&lt;tr&gt;&quot; <br />If i = iEnd Then Response.Write &quot;&lt;/tr&gt;&quot; <br />Next <br />Response.Write &quot;&lt;/table&gt;&quot; <br />End Sub <br />%&gt; <br /></p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1213484.html</guid>
<subject>计算机</subject>
<author>fxiang</author>
<category>计算机</category>
<pubDate>Tue, 27 Nov 2007 22:23:55 CST </pubDate>
</item>

<item>
<title>IIS HTTP 500 内部服务器错误 服务器无法加载应用程序</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1200397.html</link>
<description>
<![CDATA[查看网络上的资料,发现与DTS服务有关.<br />在运行里输入命令&quot;services.msc&quot;,寻找DTC服务（全名：Distributed Transaction Coordinator），发现服务列表里没有这个服务,到c:\windows\system32下查找,找到了MSDTC目录,而且在c:\windows\system32\inetsrv 中wamreg.dll和asptxn.dll都有,system32下也有msdtc.exe文件.看来是msdtc 服务没有安装上.<br /><br />运行命令安装&nbsp;&nbsp; msdtc -install<br />运行services.msc,发现dtc 服务已经在列表中了,设置为&quot;自动&quot;并启动它.<br />确认在事件查看器中msdtc服务已经正常启动[这步很关键，如果没有，重新启动下电脑看看],<br />只有启动了msdtc后才能运行下列命令,否则会失败<br />cd %windir%\system32\inetsrv
<p>rundll32 wamreg.dll, CreateIISPackage </p>
<p>regsvr32 asptxn.dll</p>
<p>（请注意，CreateIISPackage 区分大小写。）<br /><br />这时候再刷新要运行的ASPX页面,太好了,已经能正常显示了!!</p>
<p>&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</p>
<p>启动msdtc：</p>
<p><font style="BACKGROUND-COLOR: #ffffff" color="#333300">如果MSDTC服务没有启动就先启动</font></p>
<p><font style="BACKGROUND-COLOR: #ffffff" color="#333300">net start msdtc<br />启动MSDTC服务然后就可以了<br />如果启动失败，提示distributed transaction coordinator 服务不能启动，就进行下面的操作</font></p>
<p><font style="BACKGROUND-COLOR: #ffffff" color="#333300">{MSDTC 分布式事务无法启动 <br />错误消息：</font></p>
<p><font style="BACKGROUND-COLOR: #ffffff" color="#333300">---------------------------<br />服务<br />---------------------------<br />Windows 不能在 本地计算机 启动 Distributed Transaction Coordinator。有关更多信息，查阅系统事件日志。如果这是非 Microsoft 服务，请与服务厂商联系，并参考特定服务错误代码 -1073737712。<br />---------------------------<br />确定&nbsp;&nbsp;&nbsp;<br />---------------------------</font></p>
<p><br /><font style="BACKGROUND-COLOR: #ffffff" color="#333300">解决办法：</font></p>
<p><font style="BACKGROUND-COLOR: #ffffff" color="#333300">把 C:\WINDOWS\system32\dtclog 这个目录重命名（如果有），然后重新建立该目录。<br />在命令行下： msdtc -resetlog</font></p>
<p><font style="BACKGROUND-COLOR: #ffffff" color="#333300">然后 msdtc 就可以启动了。}</font></p>
<p><font style="BACKGROUND-COLOR: #ffffff" color="#333300">然后在&ldquo;开始&rdquo;-&gt;&ldquo;设置&rdquo;-&gt;&ldquo;控制面板&rdquo;-&gt;&ldquo;管理工具&rdquo;-&gt;&ldquo;组件服务&rdquo;中，&ldquo;控制台根目录&rdquo;-&gt;&ldquo;组件服务&rdquo;-&gt;&ldquo;计算机&rdquo;-&gt;&ldquo;我的电脑&rdquo;-&gt;&ldquo;COM+应用程序&rdquo;中，有一个&ldquo;IIS Out-Of-Process Pooled&rdquo;鼠标右键&ldquo;属性&rdquo;--&ldquo;标识&rdquo;--把&ldquo;此用户&rdquo;调整为&ldquo;交互式用户--目前已登录的用户&rdquo;。然后&ldquo;确定&rdquo;，再鼠标右键&ldquo;属性&rdquo;--&ldquo;启动&rdquo;。</font></p>
<p><br /></p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1200397.html</guid>
<subject>计算机</subject>
<author>fxiang</author>
<category>计算机</category>
<pubDate>Fri, 23 Nov 2007 09:36:40 CST </pubDate>
</item>

<item>
<title>Page-Enter、Page-Exit的使用</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1146858.html</link>
<description>
<![CDATA[<font color="#009999">Page-Enter、Page-Exit</font>是页面被载入和调出时的一些特效。<br />用法：<br />&lt;Meta http-equiv=&quot;Page-Enter&quot; Content=&quot;blendTrans(Duration=0.5)&quot;&gt;<br />&lt;Meta http-equiv=&quot;Page-Exit&quot; Content=&quot;blendTrans(Duration=0.5)&quot;&gt;<br /><br />注意：blendTrans是动态滤镜的一种，产生渐隐效果。<br />另一种动态滤镜RevealTrans也可以用于页面进入与退出效果: <br />&lt;Meta http-equiv=&quot;Page-Enter&quot; Content=&quot;revealTrans(duration=x, transition=y)&quot;&gt;<br />&lt;Meta http-equiv=&quot;Page-Exit&quot; Content=&quot;revealTrans(duration=x, transition=y)&quot;&gt;<br />Duration　　表示滤镜特效的持续时间(单位：秒)<br />Transition　滤镜类型。表示使用哪种特效，取值为0-23。
<p>0 矩形缩小<br />1 矩形扩大<br />2 圆形缩小<br />3 圆形扩大<br />4 下到上刷新<br />5 上到下刷新<br />6 左到右刷新<br />7 右到左刷新<br />8 竖百叶窗<br />9 横百叶窗<br />10 错位横百叶窗<br />11 错位竖百叶窗<br />12 点扩散<br />13 左右到中间刷新<br />14 中间到左右刷新<br />15 中间到上下<br />16 上下到中间<br />17 右下到左上<br />18 右上到左下<br />19 左上到右下<br />20 左下到右上<br />21 横条<br />22 竖条<br />23 以上22种随机选择一种</p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/1146858.html</guid>
<subject>计算机</subject>
<author>fxiang</author>
<category>计算机</category>
<pubDate>Sat, 03 Nov 2007 20:58:30 CST </pubDate>
</item>

</channel>
</rss>
