2014年面试
javascript操作dom的方法名:
getElementById(id)
getElementsByName(name)
getElementsByTagName(tagname)
appendChild(node)
removeChild(childreference)
cloneNode(deepBoolean)
replaceChild(newChild, oldChild)
<div>fff</div><div>zzz</div><div>llll</div>排成一排,两种方法
div{ display: inline;}
div{width:auto; float: left;}