JavaScript判断文件大小
摘要:第一种是应用ActiveX控件的实现,例如: Javascript代码 <script type="text/javascript"> function getFileSize(filePath) { var fso = new ActiveXObject("Scripting.FileSystemObject"); alert("文件大小为:"+fso.GetFile(fileP...
阅读全文
posted @
2009-08-18 10:23
朱胜
阅读(3503)
推荐(1) 编辑
clientHeight,offsetHeight和scrollHeight区别
摘要:不知道大家对这个标题有没有想法,反正此前我一直把他们混为了一谈。其实不然,首先需有个“标准”的概念。对于document.compatMode,很多朋友可能都根我一样很少接触,知道他的存在却不清楚他的用途。其实这个对于我们开发兼容性的web页面还是很有帮助,我们都知道,盒模型的渲染在 Standards Mode和Quirks Mode是有很大差别的,在不声明Doctype...
阅读全文
posted @
2009-08-16 18:03
朱胜
阅读(771)
推荐(0) 编辑
CSS HACK(ie6-ie7-fox 兼容)
摘要:区别IE6与FF: background:orange;*background:blue;区别IE6与IE7: background:green !important;background:blue;区别IE7与FF: background:orange; *background:green;区别FF,IE7,IE6: background:orange;*background:green !im...
阅读全文
posted @
2009-08-14 11:31
朱胜
阅读(718)
推荐(0) 编辑