I want to center a div
vertically with CSS. 我想用CSS將div
垂直居中。 I don't want tables or JavaScript, but only pure CSS. 我不須要表或JavaScript,而只須要純CSS。 I found some solutions, but all of them are missing Internet Explorer 6 support. 我找到了一些解決方案,可是全部這些解決方案都缺乏Internet Explorer 6支持。 瀏覽器
<body> <div>Div to be aligned vertically</div> </body>
How can I center a div
vertically in all major browsers, including Internet Explorer 6? 如何在全部主要瀏覽器(包括Internet Explorer 6)中垂直居中放置div
? spa