01 2012 档案
摘要:中文字号VS英文字号(磅)VS像素值的对应关系:八号=5磅(5pt) ==(5/72)*96=6.67 =6px七号=5.5磅 ==(5.5/72)*96=7.3 =7px小六=6.5磅 ==(6.5/72)*96=8.67 =8px六号=7.5磅 ==(7.5/72)*96=10px小五=9磅 ==(9/72)*96=12px五号=10.5磅 ==(10.5/72)*96=14px小四=12磅 ==(12/72)*96=16px四号=14磅 ==(14/72)*96=18.67 =18px小三=15磅 ==(15/72)*96=20px三号=16磅 ==(16/72)*96=21.3 =21
阅读全文
摘要:$(".btn1").click(function(){ $("#box").animate({height:"300px"});});定义和用法animate() 方法执行 CSS 属性集的自定义动画。该方法通过CSS样式将元素从一个状态改变为另一个状态。CSS属性值是逐渐改变的,这样就可以创建动画效果。只有数字值可创建动画(比如 "margin:30px")。字符串值无法创建动画(比如 "background-color:red")。注释:使用 "+=" 或 "
阅读全文
摘要:起初以为this和$(this)就是一模子刻出来。但是我在阅读时,和coding时发现,总不是一回事。What is "this"?In many object-oriented programming languages, this (or self) is a keyword which can be used in instance methods to refer to the object on which the currently executing method has been invoked.$("#textbox").hover(
阅读全文
摘要:符号解释、字符描述:\将下一个字符标记为一个特殊字符、或一个原义字符、或一个向后引用、或一个八进制转义符。例如,'n'匹配字符"n"。'\n'匹配一个换行符。序列'\\'匹配"\"而"\("则匹配"("。^匹配输入字符串的开始位置。如果设置了RegExp对象的Multiline属性,^也匹配'\n'或'\r'之后的位置。$匹配输入字符串的结束位置。如果设置了RegExp对象的Multiline属性,$也匹配'\n'或
阅读全文
摘要:XmlDocumentxml=newXmlDocument(); xml.Load("D:\\Xml\\sellgame.xml") XmlNamespaceManagernsmgr= newXmlNamespaceManager(newXmlDocument().NameTable); //建立Xml命名空间管理器对象 nsmgr.AddNamespace("v","www-shop-game"); //增加命名空间 ,C# 操作XML之读取Xmlstringprice=xml.SelectSingleNode( "v:G
阅读全文
摘要:C#格式化数值结果表字符说明示例输出C货币string.Format("{0:C3}", 2)$2.000D十进制string.Format("{0:D3}", 2)002E科学计数法1.20E+0011.20E+001G常规string.Format("{0:G}", 2)2N用分号隔开的数字string.Format("{0:N}", 250000)250,000.00X十六进制string.Format("{0:X000}", 12)Cstring.Format("{0:000.
阅读全文