Js实现图片上传前的预览功能,主要是使用html5 的 Files API实现,ie可兼容部分功能,在火狐和chrome下正常运行。HTML5的 file input标签支持multiple 和 accept ,前一个属性可控制多文件选择,后一个控制上传的文件类型。预了解更多关于File API的资...
在 clean project 后,并没有报错,但是在'Run as Android Application' 的时候就会报出这样的错。1 Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files de...
分类:
其他好文 时间:
2014-08-13 00:27:34
阅读次数:
320
样式的优先级多重样式(Multiple Styles):如果外部样式、内部样式和内联样式同时应用于同一个元素,就是使多重样式的情况。一般情况下,优先级如下:(外部样式)External style sheet 测试!选择器的优先权解释:1. 内联样式表的权值最高 1000;2. ID 选择器的权值为...
分类:
Web程序 时间:
2014-08-10 23:58:50
阅读次数:
564
Find The Multiple
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 18012
Accepted: 7297
Special Judge
Description
Given a positive integer n, write a pr...
分类:
其他好文 时间:
2014-08-07 19:06:40
阅读次数:
221
Intel® Advanced Vector Extensions (Intel® AVX) is a set of instructions for doing Single Instruction Multiple Data (SIMD) operations on Intel® architecture CPUs. These instructions extend previous SIM...
分类:
其他好文 时间:
2014-08-07 00:51:07
阅读次数:
995
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-08-07 00:37:17
阅读次数:
187
http://msdn.microsoft.com/en-us/library/hh156548(v=vs.110).aspxThe .NET Framework provides several ways for you to use multiple threads of execution t...
分类:
Web程序 时间:
2014-08-06 18:44:02
阅读次数:
364
1001:Inversion
模版题,求逆序数对。有多少逆序数对,就可以剪掉多少。
1003:Least common multiple
对于每一个子集,lcm为2的a的最大值次方*3的b的最大值次方。
所以我们只需要求出以某个b为b的最大值的时候,a的最大值的分布情况即可。
我们先把b从小到大排序。
对于某一个b,我门只需要求出之前出现过的a比当前a小的数量为x;
那么就可知对于这...
分类:
其他好文 时间:
2014-08-06 14:57:51
阅读次数:
214
这是个很普通的 file 上传组件,multiple 是支持多选,当然 IE6-9 是不支持的,所以先不论他们了。file对象 是一个非常好用的东西,可以获取到文件的 文件名,文件大小,文件类型,最后一次修改日期。用起来也很简单,来看个小例子: file 不出意外的话,你可以在控制台看到...
分类:
Web程序 时间:
2014-08-06 01:37:20
阅读次数:
273
转至:https://github.com/CSSLint/csslint/wiki/Bulletproof-font-faceWhen using @font-face to declare multiple font types for cross browser compatibility, ...
分类:
Web程序 时间:
2014-08-05 10:49:39
阅读次数:
700