摘要:
Definition and Usage The z-index property specifies the stack order of an element. An element with greater stack order is always in front of an elemen 阅读全文
摘要:
Wait:h5 canvas: http://andrew-hoyer.com/experiments/cloth/ canvas 刮奖效果 h5 贪吃蛇 ajax from post and getjs 读取文件 > json jquery-in: bootbox jquery.confirm/ 阅读全文
摘要:
Example 1 2 3 4 5 6 Demo 7 8 9 10 25 26 阅读全文
摘要:
event.stopPropagation()Description: Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.... 阅读全文
摘要:
PHP stands for "Hypertext Preprocessor" ,it is a server scripting language.What Can PHP Do?PHP can generate dynamic page contentPHP can create, open, ... 阅读全文
摘要:
18 Simple Styles for Horizontal Rules (hr CSS Design) Simple Styles for 'sCode: 1 2 3 4 5 Simple Styles for <hr>'s 6 7 8 9 ... 阅读全文
摘要:
由于 opacity 属性能被子元素继承,使用它设置父元素背景透明度时也会影响子元素.解决方法:1> 使用 RGBAExample1 .classname {2 /* RGBa, 透明度0.6 */3 background: rgba(0, 0, 0, 0.6);4 }2> 使用 o... 阅读全文
摘要:
Differenceconsole.log prints the element in an HTML-like treeconsole.dir prints the element in a JSON-like treeExampleSpecifically, console.log gives ... 阅读全文
摘要:
onmousewheel (FireFox不支持此事件)1 // IE/Opera/Chrome/Safari2 document.body.onmousewheel = function(event) {3 event = event || window.event;4 conso... 阅读全文
摘要:
Dog: 1 View CodeI don't know 1 View Code 阅读全文
摘要:
首先,选择器优先级顺序优先级逐级增加的选择器列表:通用选择器(*)元素(类型)选择器类选择器属性选择器伪类ID 选择器内联样式!important规则例外,该样式声明会覆盖CSS中任何其他的声明。一些经验法则:Never 永远不要在全站范围的 css 上使用 !importantOnly 只在需要覆... 阅读全文
摘要:
替换元素和不可替换元素1> 替换元素替换元素就是浏览器根据元素的标签和属性,来决定元素的具体显示内容,在其显示中生成了框。HTML中的、、、、都是替换元素。这些元素往往没有实际的内容,即是一个空元素。Example:#1 浏览器根据标签的src属性的值来读取图片信息并显示出来,而如果查看HTML代码... 阅读全文
摘要:
Some examples1> Input width animationSearch: Code 1 2 3 4 14 15 16 Search: 17 18 View Code2> Shadow EffectShadow Button Shadow on HoverCode 1 2 3... 阅读全文
摘要:
CSS3 2D Transforms Methodstranslate()rotate()scale()skewX()skewY()matrix()1> translate()The translate() method moves an element from its current posit... 阅读全文
摘要:
CSS3 Shadow Effectstext-shadowbox-shadow1> text-shadowThe text-shadow property adds shadow to text.This property accepts a comma-separated list of sha... 阅读全文
摘要:
CSS3 GradientsTwo types of gradients:Linear Gradients (goes down/up/left/right/diagonally)Radial Gradients (defined by their center)Linear Gradientssy... 阅读全文
摘要:
CSS3 Rounded CornersThe border-radius property is a shorthand property for setting the four border-*-radius properties.syntaxborder-radius: 1-4 lengt... 阅读全文
摘要:
Image Opacity / TransparencyThe CSS opacity property is a part of the CSS3 recommendation.Example1 img {2 opacity: 0.4;3 filter: alpha(opacity... 阅读全文
摘要:
CSS CombinatorsFour different combinators in CSS3descendant selector (space)child selector (>)adjacent sibling selector (+)general sibling selector (~... 阅读全文
摘要:
Steps:1.保存到数据库之前把textarea中的换行字符转换为。var dbStr = textareaStr.replace(/\n|\r\n/g,"");2.读取数据时把 替换成textarea的换行符\n。var reg = new RegExp("","g"); //创建正则RegE... 阅读全文