Points Pixels Ems Percent6pt 8px 0.5em 50%7pt &nb...
http://www.jb51.net//article/16116.htm
大致程序思想就是使用递规来计算目录占用空间多少,然后再把这个占用空间的值写进文本文件里,那么只要访问这个txt文件就知道占用了多少空间,不用频繁获取而读磁盘,节省资源.每次用户如果上传的文件或者删除了文件,那么又重新进行统计.当然,也可以把统计结果保存到数据库里.<?/***File:fetchuserdirectoryusesize*Author:heiyeluren<heiyeluren_AT_gmail_com>*Create:2005-9-1916:20*Modifed:2005-9-1916:41*//***基本函数***///计算目录大小functioncount...
http://www.jb51.net//article/15778.htm
函数较简单,看下面的例子:[code]s='hEllopYthon'prints.upper()prints.lower()prints.capitalize()prints.title()[/code]输出结果:HELLOPYTHONhellopythonHellopythonHelloPython判断大小写Python提供了isupper(),islower(),istitle()方法用来判断字符串的大小写。注意的是:1.没有提供iscapitalize()方法,下面我们会自己实现,至于为什么Python没有为我们实现,就不得而知了。2.如果对空字符串使用isupper(),islower...
http://www.jb51.net//article/15703.htm
把他们全都换成大写或小写,再比较就可以了 indexOf对象内第一次出现子字符串的字符位置 用toLowerCase或toUpperCase [html]<script>var testStr = 'ABCDEF';var subStr = 'bcd';alert(testStr.toLowerCase().indexOf(subStr.toLowerCase()));testStr = 'AbCdEf';alert(testStr.toLowerCase()....
http://www.jb51.net//article/15445.htm
不知道家有没有遇到过这样的情况:在CSS控制图片大小时,如果把图片的宽度写死,比如 img{width:500px;} ,固然,如果图片宽度大于500px可以很好的控制它不让它过大,但如果图片宽度小于500px,比如说只有100px时,刚才的写法会把这张图扩大5倍显示,显然,这不是我们想看到的。 那么,CSS如何可以区分对待这些图片设置大小呢?很简单,请看:img{width:expression(this.width>500?"500px":this.width+"px"); } &nbs...
http://www.jb51.net//article/15185.htm
[html]<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; Charset=gb2312" /><title>ASP vbs 代码大小写规范-脚本之家</title></head><body><p align="center"> <textarea&n...
http://www.jb51.net//article/14958.htm
[code]img,a img{ border:0; margin:0; padding:0; max-width:590px; width:expression(this.width>590?"590px":this.width); &...
http://www.jb51.net//article/14832.htm
// 方法:setSelectReadOnly 用于设定极select控件ReadOnly,// 这个一个模拟只读不是真的只读// 使用了onbeforeactivate,onfocus,onmouseover,onmouseout事件// 示例:< img src='img.jpg' ...
http://www.jb51.net//article/14562.htm
下面这个是比较不错的一个[code]Function FormatImg2(content) dim re Set re=new RegExp re.Igno...
http://www.jb51.net//article/13685.htm
1.--区分大小写 select * from a where a=’AbCdE’ collate Chinese_PRC_CS_AI--区分大小写 select * from a where a=’abCdE’ collate Chinese_PRC_CI_AI--不区分大小写 2.如果想让服务器上所有的存储表都区分大小写就需要在安装服务器时设置服务器的排序规则 或者 ...
http://www.jb51.net//article/13681.htm
<%@Language=JScript @CodePage=936%> <Script Language=JScript RunAt=Server> /****************************************************************\ <lostinet:source xmlns:lostinet="lostinet-d2g-com/source"> <lostinet:source-info> &...
http://www.jb51.net//article/13663.htm
