摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head></head><body style="margin:100px;padding:0;background:#000;position: 阅读全文
posted @ 2012-03-25 18:29
wuhao12
阅读(206)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2012-03-25 18:22
wuhao12
阅读(122)
评论(0)
推荐(0)
摘要:
XHR EvalXHR InjectionScript in IframeScript DOM Element -ff和opera可以保证顺序执行。Script Defer - 该方法原本仅适用于IE,但是目前对于Firefox3.1同样有效。可以保证顺序,在load事件之前执行。document.write Script Tag - 该方式仅在IE中能解决阻塞问题。可以保证顺序。 阅读全文
posted @ 2012-03-24 20:33
wuhao12
阅读(156)
评论(0)
推荐(0)
摘要:
onmousedown onmousemoveonmouseout与mouseleave: 前者当移到区域外触发,后者移出DOM结构才触发。 在DOM结构与页面区域无必然联系,考虑绝对定位。onmouseover与mouseenter:当指针移到区域内和DOM结构里,两者都会被触发,只是后者只触发一次,应试优先使用mouseenteronmouseuponclickondblclick 阅读全文
posted @ 2012-03-17 19:21
wuhao12
阅读(136)
评论(0)
推荐(0)
摘要:
eval:eval中引用变量会扩展到调用他的外部,定义的函数/变量(相当调用他的外面定义的)从调用处开始生效。with(obj){var a=5//最高优先级b=5//先在obj中b,没有时,再沿着作用域链找b,直到window.b}new Function("code string") //code string中未直接申明的变量,都来自window,而不像上面两种情况会在作用域链中查找。/////////////////////var b=1;function(){var b=2;setTimeout(/*"alert(b)"*/function() 阅读全文
posted @ 2012-03-15 23:36
wuhao12
阅读(202)
评论(0)
推荐(0)
摘要:
提倡样式与元素绑定,避免混乱属性选择器:[id=xx] [id^=xx] [id$=xx] [id*=xx]伪元素选择器::first-letter/first-line/before/after结构性伪类选择器::root/not/empty/target/结构性伪元素选择器::first-child/last-child/nth-child/nth-last-child:nth-child(num|even|odd)/nth-last-child(num|even|odd):nth-child(an+b)/nth-last-child(an+b)//循环选择器:nth-of-type/nt 阅读全文
posted @ 2012-03-15 22:26
wuhao12
阅读(104)
评论(0)
推荐(0)
摘要:
css3采用模块化结构,便于拆分或拼装,分工协作。浏览器可按需要加以实现。 阅读全文
posted @ 2012-03-15 22:25
wuhao12
阅读(153)
评论(0)
推荐(0)
摘要:
主体: article:独立,完整的内容,例如贴子 header ... footer section:表示内容分块,分段 nav 阅读全文
posted @ 2012-03-15 21:58
wuhao12
阅读(138)
评论(0)
推荐(0)
摘要:
兼容性:通用规范语义化:新标签功能:新API 阅读全文
posted @ 2012-03-15 21:57
wuhao12
阅读(193)
评论(0)
推荐(0)
摘要:
语法新标签与废除标签新属性与废除属性全局属性 阅读全文
posted @ 2012-03-15 21:57
wuhao12
阅读(135)
评论(0)
推荐(0)
浙公网安备 33010602011771号