摘要:
What is the DOM? When a web page is loaded, the browser creates a Document Object Model(DOM) of the page.The DOM defines the logical structure of the 阅读全文
摘要:
Golden rule Every line of code should appear to be written by a single person, no matter the number of contributors. 1.Syntax Use soft tabs with two s 阅读全文
摘要:
Golden rule Every line of code should appear to be written by a single person, no matter the number of contributors. 1.Syntax Use soft tabs with two s 阅读全文
摘要:
创建object时,可以用object literal方法来创建一个对象,也可以通过constructor(关键词function)来创建object type,再通过关键词new,结合不同的arguments来创建很多个对象。 String:一般通过literal方法来创建。常用属性:length 阅读全文
摘要:
var是用来存放data value的(container)。data type包括number, string, array, math, date等(其中string, array, math, date都是object)。 function是a block of code,优势:通过不同的ar 阅读全文
摘要:
文档流的概念:CSS元素要么in normal flow, 要么out of normal flow。Normal flow就是盒子flow down the page,默认的static position; out of normal flow包括position absolute/positio 阅读全文
摘要:
设置float之后,比如在一个容器里,一个图片后面有一段文字,图片设置了float。会有3个变化: 1、被float的元素会脱离标准文档流。(如果float的是inline element,会变成float-box)。shift to the left or right,到包含他的盒子边缘或者其他f 阅读全文