您的位置:首页 > 其它

Whack-a-mole(打地鼠)

2017-08-17 09:59 816 查看
源码传送门: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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息