我有这样一个结构:
<div class="father">
This string is left-aligned
<div class="divToCenter" style="display:inline-block;">
//contains other divs.I used inline block for making this div as large as
//content ATTENTION: its width is not fixed!
</div>
</div>
我该如何表述:
让"father" div中仅名为"divToCenter"的类居中显示。
谢谢
Luca
display:inline-block;
。 - Krimo