background:color img repeat attachment position;
background-repeat:repeat || repeat-x || repeat-y || no-repeat
background-attachment:scroll || fixed (默认scroll 背景随内容滚动,设置fixed背景不动)
tabel-cell
BFC
Math.max.apply(null,[2,4,5,88,3939])
这个方法可以找出数组中最大的数!本来Math.max(1,2,3)这样调用,运用apply方法后就可以把数组当成参数传入,传入null或者undefined相当于传入window吧!
function
fun() {
alert(this);
}
fun.call(1);
fun.call('a');
fun.call(true);
fun.call(null); // window
fun.call(undefined) //window