我在网上得到了这段代码,它满足了我对最小高度 div 的需求。但我也希望内容垂直居中对齐。有人可以帮忙吗?我已经浏览了这些论坛中给出的许多选项,但它们不能与这个特定的 css 结合使用。我必须使用这个特殊的 css 来获得最小高度的 div。
<html><style type="text/css">
.prop {
float:right;
width:1px;
}
#footer {
clear:both;
border-top:2px solid #000000;
text-align:left;
font-size:80%;
}
.min200px {
height:200px;
}
</style>
</html>
<body>
<div>
<div class="prop min200px"></div>
I want this content to be vertically center aligned
<div id="footer">
Copyight 2012 - xyz
</div>
</div>
</body>