day6

作者: debt | 来源:发表于2016-12-30 01:08 被阅读4次

background:color img repeat attachment position;

background-repeat:repeat || repeat-x || repeat-y || no-repeat

background-attachment:scroll || fixed (默认scroll 背景随内容滚动,设置fixed背景不动)

tabel-cell

BFC

关于css3的perspective


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

相关文章

网友评论

      本文标题:day6

      本文链接:https://www.haomeiwen.com/subject/eympvttx.html