Interface or Class? Why a Hero interface and not a Hero class? We want a strongly typed Hero. We get strong typing with either option. Our choice depends on how we intend to use the Hero. If we need a Hero that goes beyond simple properties, a Hero with logic and behavior, we must define a class....
导致了ie6、7与其他浏览器不兼容,ie的高度得是+Offset的高度,原来这是ie的一个bug,貌似只有li才有这个bug。原因就是 LI 里面有block元素,LI之间的空格不会被被忽略,而是单独占用额外的一行夹在每个LI之间,解决办法就是触发layoutli {width:100%; float:left}