已采纳回答 / 叶0528 id为father的div,原为块状元素(display:block;),独占一行。当{display:table-cell}或{display:inline-block;}时,#father变为行内元素(display:inline-block;),不能独占一行,{margin:0 auto;}就失效了。设计一个左右大小相互适应的布局,css可以参考如下:#father{ width:80%; height:600px; margin:0 auto}#left{ width:20%; height:60...