0
怎么在这个例子中,http://jsfiddle.net/eVdFH/ divs不对齐?这些div如何不排队?
我需要做些什么才能使它们在中心对齐?
理论上的“导航”,它应该是set to center, set width of 600px, then moved left 300px so it is in the center
他们为什么不中的中心对齐呢?
怎么在这个例子中,http://jsfiddle.net/eVdFH/ divs不对齐?这些div如何不排队?
我需要做些什么才能使它们在中心对齐?
理论上的“导航”,它应该是set to center, set width of 600px, then moved left 300px so it is in the center
他们为什么不中的中心对齐呢?
应该是:
#navigation {
margin-left: -322.5px;
}
因为你有padding: 20px;
和border: 2.5px
该元素上。
哦......呃!非常感谢!我总是很困惑,并且混合了填充和宽度等。 –