??xml version="1.0" encoding="utf-8" standalone="yes"?>91国内免费在线视频,激情欧美一区二区三区,国产一二三区在线视频http://www.aygfsteel.com/chenglu/category/38636.htmlIT fans,Java Programmer,Your partner......zh-cnThu, 08 Jul 2010 02:54:02 GMTThu, 08 Jul 2010 02:54:02 GMT60如何固定表格宽度http://www.aygfsteel.com/chenglu/archive/2010/07/06/table-width.htmlJava宅男Java宅男Tue, 06 Jul 2010 14:43:00 GMThttp://www.aygfsteel.com/chenglu/archive/2010/07/06/table-width.htmlhttp://www.aygfsteel.com/chenglu/comments/325406.htmlhttp://www.aygfsteel.com/chenglu/archive/2010/07/06/table-width.html#Feedback0http://www.aygfsteel.com/chenglu/comments/commentRss/325406.htmlhttp://www.aygfsteel.com/chenglu/services/trackbacks/325406.html如何固定表格宽度 转自http://blog.csdn.net/cjh47349038/archive/2009/04/09/4058680.aspx

<TABLE style="table-layout: auto | fixed">
auto: 默认?br /> fixed: 宽度固定,截断出的内?br />
<TABLE style="word-break: normal | break-all | keep-all">
normal: 默认?按字词截断换?br /> break-all: 截断q换?br /> keep-all: 不截断不换行

使用:style="table-layout:fixed;"
表示输出停止,停留在设定的长度?

使用:style="word-break : break-all;"
表示对超镉K?换行再l显C?

对于在英文中使用,请用style="table-layout:fixed; word-wrap:break-word"
推荐使用word-wrap:break-word;word-break:break-all;table-layout:fixed;

==============================================================================

word-wrap同word-break的区?/span>

word-wrap:
normal      Default. Content exceeds the boundaries of its container. 
break-word Content wraps to next line, and a word-break occurs when necessary. 必要时会(x)触发word-break?/p>

word-break:
normal      Default. Allows line breaking within words. 好像是只对Asian text起作用?br /> break-all Behaves the same as normal for Asian text, yet allows the line to break arbitrarily for non-Asian text. This value is suited to Asian text that contains some excerpts of non-Asian text. 
keep-all Does not allow word breaking for Chinese, Japanese, and Korean. Functions the same way as normal for all non-Asian languages. This value is optimized for text that includes small amounts of Chinese, Japanese, or Korean.

ȝ如下Q?br /> word-wrap是控制换行的?br /> 使用break-wordӞ是将强制换行。中文没有Q何问题,英文语句也没问题。但是对于长串的英文Q就不v作用?/span>

break-word是控制是否断词的?br /> normal是默认情况,英文单词不被拆开?br /> break-allQ是断开单词。在单词到边界时Q下个字母自动到下一行。主要解决了(jin)长串英文的问题?br /> keep-allQ是指Chinese, Japanese, and Korean不断词。即只用此时Q不用word-wrapQ中文就不会(x)换行?jin)。(英文语句正常。)(j)


ie下:(x)
使用word-wrap:break-word;所有的都正常?/p>

ff下:(x)
如这2个都不用的话Q中文不?x)出M问题。英文语句也不会(x)出问题。但是,长串英文?x)出问题?br /> Z(jin)解决长串英文Q一般用word-wrap:break-word;word-break:break-all;。但是,此方式会(x)DQ普通的英文语句中的单词?x)被断开Qie下也是)(j)?/p>

目前主要的问题存在于 长串英文 ?英文单词被断开。其实长串英文就是一个比较长的单词而已?br /> 卌文单词应不应该被断开那?那问题很明显?jin),昄不应该被断开?jin)?br /> 对于长串英文Q就是恶意的东西Q自然不用去了(jin)。但是,也要想些办法Q不让它把容器撑大?br /> 用:(x)overflow:auto; ie下,长串?x)自动折行。ff下,长串?x)被遮盖?/p>


所以,lgQ?span style="line-height: 21px; color: #ff0000; ">最好的方式是word-wrap:break-word;overflow:hidden;而不是word-wrap:break-word;word-break:break-all;?br /> word-wrap:break-word;overflow:auto;在ie下没有Q何问题。在ff下,长串?x)被遮住部分内容?/span>

另,试代码如下Q?/p>

1.htm===================================================================

<style>
.c1{ width:300px;      border:1px solid red}
.c2{ width:300px;word-wrap:break-word;      border:1px solid yellow}
.c3{ width:300px;word-wrap:break-word;word-break:break-all;      border:1px solid green}
.c4{ width:300px;word-wrap:break-word;word-break:keep-all; border:1px solid blue}
.c5{ width:300px;word-break:break-all;      border:1px solid black}
.c6{ width:300px;word-break:keep-all;      border:1px solid red}
.c7{ width:300px;word-wrap:break-word;overflow:auto;      border:1px solid yellow}
</style>

.c1{ width:300px;      border:1px solid red}
<div class="c1">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c1>
This is all English. This is all English. This is all English.
</div>
<div class=c1>
全是中文的情c(din)全是中文的情况。全是中文的情况?br /> </div>
<div class=c1>
中英文؜排的情况。Chinese and English. 中英文؜排的情况。Chinese and English. 
</div>

<br>
.c2{ width:300px;word-wrap:break-word; border:1px solid yellow}
<div class="c2">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c2>
This is all English. This is all English. This is all English.
</div>
<div class=c2>
全是中文的情c(din)全是中文的情况。全是中文的情况?br /> </div>
<div class=c2>
中英文؜排的情况。Chinese and English. 中英文؜排的情况。Chinese and English. 
</div>

<br>
.c3{ width:300px;word-wrap:break-word;word-break:break-all;      border:1px solid green}
<div class="c3">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c3>
This is all English. This is all English. This is all English.
</div>
<div class=c3>
全是中文的情c(din)全是中文的情况。全是中文的情况?br /> </div>
<div class=c3>
中英文؜排的情况。Chinese and English. 中英文؜排的情况。Chinese and English. 
</div>

<br>
.c4{ width:300px;word-wrap:break-word;word-break:keep-all; border:1px solid blue}
<div class="c4">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c4>
This is all English. This is all English. This is all English.
</div>
<div class=c4>
全是中文的情c(din)全是中文的情况。全是中文的情况?br /> </div>
<div class=c4>
中英文؜排的情况。Chinese and English. 中英文؜排的情况。Chinese and English. 
</div>

<br>
.c5{ width:300px;word-break:break-all;      border:1px solid black}
<div class="c5">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c5>
This is all English. This is all English. This is all English.
</div>
<div class=c5>
全是中文的情c(din)全是中文的情况。全是中文的情况?br /> </div>
<div class=c5>
中英文؜排的情况。Chinese and English. 中英文؜排的情况。Chinese and English. 
</div>

<br>
.c6{ width:300px;word-break:keep-all;      border:1px solid red}
<div class="c6">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c6>
This is all English. This is all English. This is all English.
</div>
<div class=c6>
全是中文的情c(din)全是中文的情况。全是中文的情况?br /> </div>
<div class=c6>
中英文؜排的情况。Chinese and English. 中英文؜排的情况。Chinese and English. 
</div>

<br>
.c7{ width:300px;word-wrap:break-word;overflow:auto;      border:1px solid yellow}
<div class="c7">
safjaskflasjfklsajfklasjflksajflksjflkasjfksafj
</div>
<div class=c7>
This is all English. This is all English. This is all English.
</div>
<div class=c7>
全是中文的情c(din)全是中文的情况。全是中文的情况?br /> </div>
<div class=c7>
中英文؜排的情况。Chinese and English. 中英文؜排的情况。Chinese and English. 
</div>



Java宅男 2010-07-06 22:43 发表评论
]]>
【{】解决table不能换行的问题(sh)CSS之自动换行ȝhttp://www.aygfsteel.com/chenglu/archive/2010/06/25/table_huanhang.htmlJava宅男Java宅男Fri, 25 Jun 2010 06:06:00 GMThttp://www.aygfsteel.com/chenglu/archive/2010/06/25/table_huanhang.htmlhttp://www.aygfsteel.com/chenglu/comments/324434.htmlhttp://www.aygfsteel.com/chenglu/archive/2010/06/25/table_huanhang.html#Feedback0http://www.aygfsteel.com/chenglu/comments/commentRss/324434.htmlhttp://www.aygfsteel.com/chenglu/services/trackbacks/324434.html转自Qhttp://www.ry168.net/bbs/thread-226-1-1.html
table不能换行问题 一般是Q一行里面全是数字或是字母或者结有多个感叹可(g)导?table不能换行Q中文默认的?x)自动换行的Q字母不能换行问题:(x)
style="table-layout:fixed; word-break: break-all; overflow:hidden;"
复制代码在单元格属性里加入上面q句Q如Q?br /> <td style="table-layout:fixed; word-break: break-all; overflow:hidden;">
复制代码用表格做|页排版的时候,一般都能正怋用。偏偏有时会(x)到一D连l的英文词或者一堆感叹号(!!!)把网就撑开的现象?/p>

ȝ?jin)一下,只要在CSS中定义了(jin)如下句子Q可保网不?x)再被撑开?jin)?/p>

自动换行问题,正常字符的换行是比较合理?而连l的数字和英文字W常常将容器撑大,人头?下面介绍的是CSS如何实现换行的方?/p>

对于div,p{块U元?/p>

正常文字的换?亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定义的宽度之后自动换行

html
<div id="wrap">正常文字的换?亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定?lt;/div>
css
#wrap{white-space:normal; width:200px; }

IE览?/p>

q箋的英文字W和阿拉伯数?使用word-wrap: break-word ;或者word-break:break-all;实现强制断行

html
<div id="wrap">abcdefghijklmnabcdefghijklmnabcdefghijklmn111111111</div>

css
#wrap{word-break:break-all; width:200px;}
或?
#wrap{word-wrap:break-word; width:200px;}

Firefox览?br /> q箋的英文字W和阿拉伯数字的断行,Firefox的所有版本的没有解决q个问题,我们只有让超?gu)界的字符隐藏或?l容器添加滚动条

html
<div id="wrap">abcdefghijklmnabcdefghijklmnabcdefghijklmn111111111</div>

css
#wrap{word-break:break-all; width:200px; overflow:auto;}

对于table元素
IE览?br /> 1. 使用 table-layout:fixed;强制table的宽?多余内容隐藏<table style="table-layout:fixed" width="200"><tr><td>abcdefghigklmnopqrstuvwxyz1234567890ssssssssssssss</td></tr></table>
复制代码2. 使用 table-layout:fixed;强制table的宽?内层td,th采用word-break : break-all;或者word-wrap : break-word ;换行 <table width="200" style="table-layout:fixed;"><tr><td width="25%" style="word-break : break-all; ">abcdefghigklmnopqrstuvwxyz 1234567890</td><td style="word-wrap : break-word ;">abcdefghigklmnopqrstuvwxyz 1234567890</td></tr></table>
复制代码3.在td,th中嵌套div,p{采用上面提到的div,p的换行方?/p>

Firefox览?/p>

1. 使用 table-layout:fixed;强制table的宽?内层td,th采用word-break : break-all;或者word-wrap : break-word ;换行Q用overflow:hidden;隐藏出内,q里overflow:auto;无法起作?lt;table style="table-layout:fixed" width="200"><tr>

<td width="25%"  style="word-break : break-all; overflow:hidden; ">abcdefghigklmnopqrstuvwxyz1234567890</td>

<td width="75%" style="word-wrap : break-word; overflow:hidden; ">abcdefghigklmnopqrstuvwxyz1234567890</td>

</tr></table>
复制代码2.在td,th中嵌套div,p{采用上面提到的对付Firefox的方法?/p>

最佳CSS定义换行代码.wrap { table-layout:fixed; word-break: break-all; overflow:hidden; }
复制代码当然Q这U现象出现的几率很小Q但是不能排除网友的恶搞?



Java宅男 2010-06-25 14:06 发表评论
]]>
QQ在线状态代码详解及(qing)如何自定义在UK格图?/title><link>http://www.aygfsteel.com/chenglu/archive/2010/06/25/wp_qq.html</link><dc:creator>Java宅男</dc:creator><author>Java宅男</author><pubDate>Thu, 24 Jun 2010 23:28:00 GMT</pubDate><guid>http://www.aygfsteel.com/chenglu/archive/2010/06/25/wp_qq.html</guid><wfw:comment>http://www.aygfsteel.com/chenglu/comments/324381.html</wfw:comment><comments>http://www.aygfsteel.com/chenglu/archive/2010/06/25/wp_qq.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/chenglu/comments/commentRss/324381.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/chenglu/services/trackbacks/324381.html</trackback:ping><description><![CDATA[|址是http://wp.qq.com<br /> 发现q个玩意来强大了(jin)Q就忍不住把官方的介l搬q来Q?br /> 代码样例<br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><</span><span style="color: #000000">a href</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">http://sighttp.qq.com/cgi-bin/check?sigkey=81a37f0b7cac68639bddfdb9b93a6c92bc211f3e3a4e683afbb31a079382dc9d</span><span style="color: #000000">"</span><span style="color: #000000">;target</span><span style="color: #000000">=</span><span style="color: #000000">_blank; onclick</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=81a37f0b7cac68639bddfdb9b93a6c92bc211f3e3a4e683afbb31a079382dc9d';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;</span><span style="color: #000000">"</span><span style="color: #000000">><</span><span style="color: #000000">img border</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">0</span><span style="color: #000000">"</span><span style="color: #000000"> SRC</span><span style="color: #000000">=</span><span style="color: #000000">'http:</span><span style="color: #008000">//</span><span style="color: #008000">wpa.qq.com/pa?p=1:80000805:1' alt="点击q里l我发消?></a></span></div> <p>1)、sigkeyZ人鉴权keyQ请勿修改,否则无法发v临时?x)话?/p> <p>2)、(f)时会(x)话图?lt;img border="0" SRC='http://wpa.qq.com/pa?p=1:80000805:1' alt="点击q里l我发消?></p> <p>SRC是图标链接,自定义图标中可以替换q一部分己图片的链接Q?/p> <p>参数Q?/p> <p style="line-height: 24px">P=以冒?#8220;:”分隔多个参数</p> <p style="line-height: 24px">W一个参Cؓ(f)版本P目前?Q?/p> <p style="line-height: 24px">W二个ؓ(f)QQ/TML(fng)Q?/p> <p style="line-height: 24px">W三个参Cؓ(f)囑փ风格Q支持多U状态?/p> <p style="line-height: 24px">alt是图标旁留言?/p> <p>3)、除?jin)自定义图标需要修改(f)时会(x)话图标外Q其他情况下不要修改代码Q因为有可能D在不同的环境和浏览器下,无法发v临时?x)话?/p> <br /> <p style="font-weight: bold; font-size: 14px; margin-bottom: 3px">自定义在UK格图?/p> <p>用JS实现Q具体步骤如下:(x)</p> <p>1) 甌代码</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #000000"><</span><span style="color: #000000">a href</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">http://sighttp.qq.com/cgi-bin/check?sigkey=81a37f0b7cac68639bddfdb9b93a6c92bc211f3e3a4e683afbb31a079382dc9d</span><span style="color: #000000">"</span><span style="color: #000000">; target</span><span style="color: #000000">=</span><span style="color: #000000">_blank; onclick</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=81a37f0b7cac68639bddfdb9b93a6c92bc211f3e3a4e683afbb31a079382dc9d';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;</span><span style="color: #000000">"</span><span style="color: #000000">><</span><span style="color: #000000">img border</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">0</span><span style="color: #000000">"</span><span style="color: #000000"> SRC</span><span style="color: #000000">=</span><span style="color: #000000">'http:</span><span style="color: #008000">//</span><span style="color: #008000">wpa.qq.com/pa?p=1:80000805:1' alt="点击q里l我发消?></a></span></div> <p>2) 定义online数组Q必Lonline命名</p> <p><script>var online= new Array();</script> <p>3) 获取在线状?/p> <p><script src="http://webpresence.qq.com/getonline?Type=1&80000805:"></script></p> <p>可以获取多个Q必M冒号分隔Q以冒号l尾Q比?</p> <p><script src="http://webpresence.qq.com/getonline?Type=1&80000805:10000:123456:"></script></p> <p>online[0]=0,表示80000805ȝ</p> <p>online[1]=1,表示10000在线</p> <p>online[2]=1,表示123456在线</p> <p>填写L(fng)的先后顺序,分别对应数组online???</p> <p>4) d代码</p> <p>把SRC='http://wpa.qq.com/pa?p=1:80000805:1'替换q囄Q比?</p> <div style="border-right: #cccccc 4px solid; padding-right: 5px; border-top: #cccccc 4px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 4px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 4px solid; background-color: #eeeeee"><span style="color: #000000"><</span><span style="color: #000000">script</span><span style="color: #000000">></span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000">(online[</span><span style="color: #000000">0</span><span style="color: #000000">]</span><span style="color: #000000">==</span><span style="color: #000000">0</span><span style="color: #000000">) document.write(</span><span style="color: #000000">"</span><span style="color: #000000"><a href=</span><span style="color: #000000">"</span><span style="color: #000000">http:</span><span style="color: #008000">//</span><span style="color: #008000">sighttp.qq.com/cgi-bin/check?sigkey=81a37f0b7cac68639bddfdb9b93a6c92bc211f3e3a4e683afbb31a079382dc9d"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=81a37f0b7cac68639bddfdb9b93a6c92bc211f3e3a4e683afbb31a079382dc9d';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><img border="0" SRC=<strong>'http://xxxx/outline.jpg'</strong> alt="点击q里l我发消?></a>"); </span><span style="color: #008000"><br /> </span><span style="color: #0000ff">else</span><span style="color: #000000"> document.write(</span><span style="color: #000000">"</span><span style="color: #000000"><a href=</span><span style="color: #000000">"</span><span style="color: #000000">http:</span><span style="color: #008000">//</span><span style="color: #008000">sighttp.qq.com/cgi-bin/check?sigkey=81a37f0b7cac68639bddfdb9b93a6c92bc211f3e3a4e683afbb31a079382dc9d"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=81a37f0b7cac68639bddfdb9b93a6c92bc211f3e3a4e683afbb31a079382dc9d';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><img border="0" SRC=<strong>'http://xxxx/online.jpg'</strong> alt="点击q里l我发消?></a>"); </script> </span></div> <br /> 我是q样看的Q用tx的方法得到某QQh否在U,用js判断Q显Conline.jpg或者outline.jpgq两个图片,其余不变?img src ="http://www.aygfsteel.com/chenglu/aggbug/324381.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/chenglu/" target="_blank">Java宅男</a> 2010-06-25 07:28 <a href="http://www.aygfsteel.com/chenglu/archive/2010/06/25/wp_qq.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>html常见标签 for Ajax考试http://www.aygfsteel.com/chenglu/archive/2010/01/07/html_tags_ajax.htmlJava宅男Java宅男Thu, 07 Jan 2010 08:31:00 GMThttp://www.aygfsteel.com/chenglu/archive/2010/01/07/html_tags_ajax.htmlhttp://www.aygfsteel.com/chenglu/comments/308563.htmlhttp://www.aygfsteel.com/chenglu/archive/2010/01/07/html_tags_ajax.html#Feedback0http://www.aygfsteel.com/chenglu/comments/commentRss/308563.htmlhttp://www.aygfsteel.com/chenglu/services/trackbacks/308563.html阅读全文

Java宅男 2010-01-07 16:31 发表评论
]]>
常用正则表达?/title><link>http://www.aygfsteel.com/chenglu/archive/2009/10/12/zhengze_usual.html</link><dc:creator>Java宅男</dc:creator><author>Java宅男</author><pubDate>Mon, 12 Oct 2009 03:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/chenglu/archive/2009/10/12/zhengze_usual.html</guid><wfw:comment>http://www.aygfsteel.com/chenglu/comments/297866.html</wfw:comment><comments>http://www.aygfsteel.com/chenglu/archive/2009/10/12/zhengze_usual.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/chenglu/comments/commentRss/297866.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/chenglu/services/trackbacks/297866.html</trackback:ping><description><![CDATA[<p>/^\w+$/匚w由数字?6个英文字母或者下划线l成的字W串<br /> /^[A-Za-z0-9]+$/ 匚w由数字和26个英文字母组成的字符?br /> /^[a-z]+$/匚w?6个英文字母的写l成的字W串<br /> 只能输入数字Q?^[0-9]*$/ <br /> 只能输入n位的数字Q?^\d{n}$/<br /> 只能输入m-n位的数字Q?^\d{m,n}$/<br /> 只能输入有两位小数的正实敎ͼ(x)/^[0-9]+(\.[0-9]{2})?$/<br /> 验证Email地址Q?^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/<br /> 匚ww䆾证:(x)/^(\d{14}|\d{17})(\d|[xX])$/<br /> 匚wip地址Q?\d+).(\d+).(\d+).(\d+) <br /> 匚w腾讯QQP(x)/[1-9][0-9]{4,}/腾讯QQ号从10000开?br /> 匚w中文字符的正则表辑ּQ? [\u4e00-\u9fa5] /<br /> </p><img src ="http://www.aygfsteel.com/chenglu/aggbug/297866.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/chenglu/" target="_blank">Java宅男</a> 2009-10-12 11:20 <a href="http://www.aygfsteel.com/chenglu/archive/2009/10/12/zhengze_usual.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一个超U简单图片选择x昄的语?/title><link>http://www.aygfsteel.com/chenglu/archive/2009/09/28/pic_upload_display.html</link><dc:creator>Java宅男</dc:creator><author>Java宅男</author><pubDate>Mon, 28 Sep 2009 00:29:00 GMT</pubDate><guid>http://www.aygfsteel.com/chenglu/archive/2009/09/28/pic_upload_display.html</guid><wfw:comment>http://www.aygfsteel.com/chenglu/comments/296708.html</wfw:comment><comments>http://www.aygfsteel.com/chenglu/archive/2009/09/28/pic_upload_display.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.aygfsteel.com/chenglu/comments/commentRss/296708.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/chenglu/services/trackbacks/296708.html</trackback:ping><description><![CDATA[<span style="font-size: 10pt">dQ做一个图片上传,但是在上传之前要昄本地囄的内?br /> 首先Q命名一个id="pic"的img标签Qid命名可随意)(j)</span><br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">img </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="pic"</span><span style="color: #0000ff">/></span></div> <span style="font-size: 10pt">然后看file选择?br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">input </span><span style="color: #ff0000">type</span><span style="color: #0000ff">="file"</span><span style="color: #ff0000"> name</span><span style="color: #0000ff">="doc"</span><span style="color: #ff0000"> onChange</span><span style="color: #0000ff">="document.images['pic'].src=this.value;"</span><span style="color: #ff0000"> </span><span style="color: #0000ff">/></span></div> </span><span style="font-size: 10pt">重要的就?br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">onChange</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">document.images['pic'].src=this.value;</span><span style="color: #000000">"</span></div> </span><span style="font-size: 10pt">q样一句代码,具体什么含义我惛_安应该很清楚啦Q我׃在这里说?br /> 注意document.images['pic'].src=this.value;" q个pic需要与id保持一?/span> <img src ="http://www.aygfsteel.com/chenglu/aggbug/296708.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/chenglu/" target="_blank">Java宅男</a> 2009-09-28 08:29 <a href="http://www.aygfsteel.com/chenglu/archive/2009/09/28/pic_upload_display.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>代码收藏-l典的javascript自定义提CZ?/title><link>http://www.aygfsteel.com/chenglu/archive/2009/07/30/js_good_src.html</link><dc:creator>Java宅男</dc:creator><author>Java宅男</author><pubDate>Thu, 30 Jul 2009 13:44:00 GMT</pubDate><guid>http://www.aygfsteel.com/chenglu/archive/2009/07/30/js_good_src.html</guid><wfw:comment>http://www.aygfsteel.com/chenglu/comments/289176.html</wfw:comment><comments>http://www.aygfsteel.com/chenglu/archive/2009/07/30/js_good_src.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/chenglu/comments/commentRss/289176.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/chenglu/services/trackbacks/289176.html</trackback:ping><description><![CDATA[     摘要: 用于鼠标Ud到自定义Q所有标{֝可)(j)的提CZ?nbsp; <a href='http://www.aygfsteel.com/chenglu/archive/2009/07/30/js_good_src.html'>阅读全文</a><img src ="http://www.aygfsteel.com/chenglu/aggbug/289176.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/chenglu/" target="_blank">Java宅男</a> 2009-07-30 21:44 <a href="http://www.aygfsteel.com/chenglu/archive/2009/07/30/js_good_src.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一些js ajax 源码http://www.aygfsteel.com/chenglu/archive/2009/07/04/js_sth.htmlJava宅男Java宅男Sat, 04 Jul 2009 01:17:00 GMThttp://www.aygfsteel.com/chenglu/archive/2009/07/04/js_sth.htmlhttp://www.aygfsteel.com/chenglu/comments/285439.htmlhttp://www.aygfsteel.com/chenglu/archive/2009/07/04/js_sth.html#Feedback0http://www.aygfsteel.com/chenglu/comments/commentRss/285439.htmlhttp://www.aygfsteel.com/chenglu/services/trackbacks/285439.html 1.首页flash囄轮播源文?br /> /Files/chenglu/flash-index.rar
2.囄局部放?br /> /Files/chenglu/tjpzoom.zip
3.Tab内容切换
/Files/chenglu/ajaxtabscontent.rar
4.Jquery报纸Ҏ(gu)
/Files/chenglu/jquerynewspager.rar

Java宅男 2009-07-04 09:17 发表评论
]]>
d到收藏夹和设Z?/title><link>http://www.aygfsteel.com/chenglu/archive/2009/06/14/282193.html</link><dc:creator>Java宅男</dc:creator><author>Java宅男</author><pubDate>Sun, 14 Jun 2009 10:07:00 GMT</pubDate><guid>http://www.aygfsteel.com/chenglu/archive/2009/06/14/282193.html</guid><wfw:comment>http://www.aygfsteel.com/chenglu/comments/282193.html</wfw:comment><comments>http://www.aygfsteel.com/chenglu/archive/2009/06/14/282193.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/chenglu/comments/commentRss/282193.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/chenglu/services/trackbacks/282193.html</trackback:ping><description><![CDATA[<p> </p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">1</span><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">a </span><span style="color: #ff0000">href</span><span style="color: #0000ff">="#"</span><span style="color: #ff0000"> onclick</span><span style="color: #0000ff">="this.style.behavior='url(#default#homepage)';this.setHomePage(chenglu.blogjava.net)"</span><span style="color: #ff0000"> </span><span style="color: #0000ff">></span><span style="color: #000000"> </span><span style="color: #0000ff"><</span><span style="color: #800000">font </span><span style="color: #ff0000">color</span><span style="color: #0000ff">="#FFFFFF"</span><span style="color: #0000ff">></span><span style="color: #000000">设ؓ(f)首页 </span><span style="color: #0000ff"></</span><span style="color: #800000">font</span><span style="color: #0000ff">></span><span style="color: #000000"> </span><span style="color: #0000ff"></</span><span style="color: #800000">a</span><span style="color: #0000ff">></span><span style="color: #000000"> <br /> </span><span style="color: #008080">2</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">a </span><span style="color: #ff0000">href</span><span style="color: #0000ff">="#"</span><span style="color: #ff0000"> onClick</span><span style="color: #0000ff">="window.external.AddFavorite(document.location.href,'Javazhai)"</span><span style="color: #ff0000"> onmousemove</span><span style="color: #0000ff">="status='收藏本页';"</span><span style="color: #ff0000"> onmouseout</span><span style="color: #0000ff">="status='';"</span><span style="color: #0000ff">></span><span style="color: #000000"> </span><span style="color: #0000ff"><</span><span style="color: #800000">font </span><span style="color: #ff0000">color</span><span style="color: #0000ff">="#FFFFFF"</span><span style="color: #0000ff">></span><span style="color: #000000">加入收藏?nbsp;</span><span style="color: #0000ff"></</span><span style="color: #800000">font</span><span style="color: #0000ff">></span><span style="color: #000000"> </span><span style="color: #0000ff"></</span><span style="color: #800000">a</span><span style="color: #0000ff">></span></div> <img src ="http://www.aygfsteel.com/chenglu/aggbug/282193.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/chenglu/" target="_blank">Java宅男</a> 2009-06-14 18:07 <a href="http://www.aygfsteel.com/chenglu/archive/2009/06/14/282193.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一个低U错误~http://www.aygfsteel.com/chenglu/archive/2009/05/09/javascript-diji-mistake.htmlJava宅男Java宅男Sat, 09 May 2009 02:22:00 GMThttp://www.aygfsteel.com/chenglu/archive/2009/05/09/javascript-diji-mistake.htmlhttp://www.aygfsteel.com/chenglu/comments/269728.htmlhttp://www.aygfsteel.com/chenglu/archive/2009/05/09/javascript-diji-mistake.html#Feedback0http://www.aygfsteel.com/chenglu/comments/commentRss/269728.htmlhttp://www.aygfsteel.com/chenglu/services/trackbacks/269728.html<script language="javascript">
function checkForm(form){
    if(isEmpty(form.uid.value)||isEmpty(form.password.value)||isEmpty(form.confirmPassword.value)||isEmpty(form.email.value)||isEmpty(form.quesstion.value)||isEmpty(form.answer.value)||){
        alert("请将表单信息填写完整Q?);
        return false;
    }
    if(form.password.value!=form.confirmPassword.value){
        alert("两次密码不相同!");
        return false;
    }
    if(form.password.value.length<6||form.password.value.length>16){
        alert("密码长度不合法!");
        return false;
    }
    return true;
}
function isEmpty(str){
if(str=null||str.length==0)return true;
else return false;
}

</script>

扣错Q?/p>

错在

if(isEmpty(form.uid.value)||isEmpty(form.password.value)||isEmpty(form.confirmPassword.value)||isEmpty(form.email.value)||isEmpty(form.quesstion.value)||isEmpty(form.answer.value)||){
q里错了(jin)QisEmpty(form.answer.value)||){

意思就是无论如何都是会(x)q回一个true的!

怪不得我在form表单里添加这个函数没作用Q哎Q以后还是小?j)?f)好啊Q?/p>

Java宅男 2009-05-09 10:22 发表评论
]]>
stcms音乐发布pȝ 面地址更改初探http://www.aygfsteel.com/chenglu/archive/2009/03/29/stcms.htmlJava宅男Java宅男Sun, 29 Mar 2009 02:03:00 GMThttp://www.aygfsteel.com/chenglu/archive/2009/03/29/stcms.htmlhttp://www.aygfsteel.com/chenglu/comments/262703.htmlhttp://www.aygfsteel.com/chenglu/archive/2009/03/29/stcms.html#Feedback0http://www.aygfsteel.com/chenglu/comments/commentRss/262703.htmlhttp://www.aygfsteel.com/chenglu/services/trackbacks/262703.html看我q么妙的musicfeeling被改成万恶的stcmsQ感觉心(j)里挺不忿的,于是乎就x子将其干掉,换成正常|址

Ҏ(gu)个hWordPressl验Q感觉应该从数据库入手,MS那个本页面地址?x)是从数据库d的:(x)

我查询了(jin)最有可能的dataQ随后又试?jin)其他的Q无果,郁闷?#8230;…
dFTPQ?br />
考虑C(x)在config.inc.php里,一阉|喜,打开……

随之我发现这个跟后台的MS一?#8230;…

参数完全一?#8230;………
又在FTP里{(zhn),cd js  and  cd include



下蝲?jin)很多文Ӟ但是依?#8230;…

依然找不到问题的所在,
q个时候,一首熟(zhn)的歌曲响v——梦飞船《不值得?#8230;…

L?jin)一把脸Q根据WordPress原理 然后我发C(jin)FTP目录里我嗅探C(jin)一个很敏感的目录:(x)

templateQ!
据正思h的思维Q所有的风格模板应该都带有制作h的版权信息的Q因此这里会(x)不会(x)……
Go !!

music.html/.q个MS是音乐播放面Q~~Q!Q?br />
下蝲 UE?#8230;…

一句激动h?j)的代码Q?nbsp;
<input id="url" type="text" size="45" value="http://stcms.vicp.net/music/music.php?id={$music.id}"/>
遂将Qhttp://stcms.vicp.net/music/
替换?http://musicfeelings.cn卛_Q?br /> Qdone~Q?/span>

Java宅男 2009-03-29 10:03 发表评论
]]>
获得本页面URL地址的JS代码(收藏)http://www.aygfsteel.com/chenglu/archive/2009/03/29/js.htmlJava宅男Java宅男Sun, 29 Mar 2009 01:09:00 GMThttp://www.aygfsteel.com/chenglu/archive/2009/03/29/js.htmlhttp://www.aygfsteel.com/chenglu/comments/262701.htmlhttp://www.aygfsteel.com/chenglu/archive/2009/03/29/js.html#Feedback0http://www.aygfsteel.com/chenglu/comments/commentRss/262701.htmlhttp://www.aygfsteel.com/chenglu/services/trackbacks/262701.html < script >  (tng)
function  (tng)copyCode(o) {o.select(); var  (tng)js = o.createTextRange();js.execCommand( " Copy " );alert( " 复制成功Q?/span> " );}  (tng)
document.write(
" <table (tng)align=center (tng)class=tableborder1 (tng)cellpadding=1 (tng)cellspacing=0><tr> " ); (tng)
document.write(
" <td (tng)width=10% (tng)nowrap (tng)class=tablebody1>本页URL地址Q双dӞ(j)Q?lt;/td> " ); (tng)
document.write(
" <td (tng)class=tablebody1><textarea (tng)onfocus=this.select() (tng)style='width:100%;overflow-y:visible;' (tng)ondblclick=copyCode(this) (tng)rows=1> " ); (tng)
document.write(self.location
+ " </textarea></td></tr></table> " ); (tng)
</ script >  (tng) (tng)

Java宅男 2009-03-29 09:09 发表评论
]]>
վ֩ģ壺 | | ̫| Դ| | ʯׯ| | ʳ| | | | | | | «Ϫ| ˼| ˮ| ɳ| | | ͺ| ֽ| Ͽ| | կ| | ˳| ¡| | | Ϸ| | | | ޭ| | | | Ȫ| Ȫ| º|