5
如何将div与其父对象的顶部对齐,但保持其内联代码块行为?
请参阅:http://jsfiddle.net/b2BpB/1/ 问:如何使box1和box3与父div的顶部对齐boxContainer? #boxContainerContainer { background: #fdd; text-align: center; } #boxContainer { display: inline-block; border: thick dotted #060; margin: 0px auto 10px auto; text-align: left; } #box1 { width: 50px; height: 50px; background: #999; display: inline-block; } #box2 { width: 50px; height: 100px; background: #999; display: inline-block; } #box3 { width: …