- Think before writing any code. Have a sketch in mediums other than code
- If you're not test-driven, think of the test scenario before coding. Take care about the error handling.
- [JS] consider about the type passed in
- Prioritize the test scenario, make the code pass the tests by order.
Saturday, July 9, 2011
Agile and Test driven
inline-block在IE
- IE7下block元素不支持inline-block,但是inline元素默认支持inline-block
- 在所有浏览器里,inline-block的对齐需要通过vertical-align进行控制。默认的对齐方式是baseline,看起来很奇怪。调节成vertical-align: top会好看很多。
testcase: http://jsbin.com/ujadis/3
Subscribe to:
Posts (Atom)