Whack-a-mole(打地鼠)

来源:互联网 发布:飞思卡尔单片机课程 编辑:程序博客网 时间:2024/05/21 18:41

源码传送门:https://github.com/yycer/share

这里写图片描述

几个小问题
1.flex布局

传送门:http://blog.csdn.net/m0_37851778/article/details/77241009

2.setTimeout()

setTimeout(()=> timeUp = true , 10000);//等价于setTimeout(function(){    timeUp = true;},10000);

3.classList属性返回元素的类名,作为DOMTokenList对象。

该属性是只读的,但可使用以下方法修改它。①add(class1,class2,...)②remove(class1,class2,...)③toggle(class,true|false)④item(index)⑤contain(class)

4.line-height
http://cssreference.io/property/line-height/

line-height行高:两行文字间基线(base line)的距离。②line-height: normal;line-height: 1.6;--- the line height will be relative to the font size.④line-height: 30px;line-height: 0.8em;--- the line height will be relative to the font size.