Raphael.js元素(Element)改变层叠顺序,Raphael.js是一个矢量绘图库兼容svg和vml。初学时感觉css的z-index能搞定,结果是不支持,不过矢量绘图符合dom标准。可以改变dom加载顺序实现想要的结果。1、看Raphael.jsAPI,有关于改变层叠的方法,但只找到两个...
分类:
Web程序 时间:
2014-06-28 23:04:09
阅读次数:
340
Given a sorted linked list, delete all duplicates such that each element appear only once.For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3...
分类:
其他好文 时间:
2014-06-21 07:30:11
阅读次数:
157
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexi...
分类:
其他好文 时间:
2014-06-20 23:34:47
阅读次数:
308
1、只有块级box可以collapse;2、floated box 的margins不会collapse;3、overflow (而不是visible)不会同它的子元素发生collapse;4、root element不collapse 指什么?5、If A's parent is ‘rl’:If ...
分类:
其他好文 时间:
2014-06-18 14:39:13
阅读次数:
281
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Could you devise a constant space solution?
思路:因为需要遍历整个矩阵,时间复杂度肯定需要O(m * n),对于空间复杂度而言,第一种是可以使用O(m * n),...
分类:
其他好文 时间:
2014-06-18 12:33:39
阅读次数:
167
The HTML5 element is used to draw graphics, on the fly, via scripting (usually JavaScript).1、本身没有外观,只是在文档中创建了一个画板,我们需要使用脚本来画图2、IE9前的浏览器不支持canvas3、使用c....
分类:
Web程序 时间:
2014-06-18 10:35:17
阅读次数:
274
1.基本选择器选择器描述返回示例#id 单个元素 $("#test").class集合元素$(".test")element集合元素$("p")* 匹配所有元素集合元素$("*")selector1,selector2集合元素$("div,span,p")2. 层次选择器选择器描述返回示例$("a....
分类:
Web程序 时间:
2014-06-18 09:04:23
阅读次数:
186
题目链接 Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn...
分类:
其他好文 时间:
2014-06-17 23:45:10
阅读次数:
373
??
First, a
dependency is a semantic relationship between two model elements in which a change to one element
(the independent one) may affect the semantics of the other element (the dependent on...
分类:
其他好文 时间:
2014-06-17 18:50:36
阅读次数:
182
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet...
分类:
其他好文 时间:
2014-06-17 14:57:30
阅读次数:
269