摘要: http://www.jb51.net/article/21339.htm 阅读全文
posted @ 2016-04-27 18:02 Researcher 阅读(98) 评论(0) 推荐(0) 编辑
摘要: http://www.ruanyifeng.com/blog/2012/07/three_ways_to_define_a_javascript_class.html 阅读全文
posted @ 2016-04-27 16:59 Researcher 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 如何水平居中,方法有2: 1. 设置当前div的style为:margin: auto; 其实真正关键的是设置其margin-left和margin-right为auto,这样的目的是自动调整div以适应屏幕宽度,使其居中 2. 设置div的父级容器,例如body样式如下: body { displ 阅读全文
posted @ 2016-04-27 15:20 Researcher 阅读(294) 评论(0) 推荐(0) 编辑