代码和预览:what i have http://img78.imageshack.us/img78/9795/previewec9.gif我怎样才能得到这个div的一部分坐在一起?
<html>
<head>
<title>Testing some CSS</title>
<style type="text/css">
.dDay {
font-size:205%
}
.dMon {
font-weight:bold;
font-variant:small-caps;
font-size:130%;
margin-top:-.7em;
}
.detailContainer {
vertical-align:middle;
display:table-cell;
padding:0em 0em 0em 1em;
}
#dContainer {
border:1px solid green;
display:table;
height:3.25em;
}
</style>
<body>
<div id="dContainer">
<div class="dDay">31</div>
<div class="dMon">sep</div>
<div class="detailContainer">Test O.O</div>
</div>
</body>
</html>
我的问题是:是否有可能到明年将其他日期部分,第一个,所以才出现这样的:what i want http://img505.imageshack.us/img505/2787/previewsp2.gif
编辑:奇怪,我试图浮动之前我问的问题,并没有工作...感谢大家:d
我想我将不得不作出额外的div来包含日期和月份,然后浮正确的吗? – Anders 2008-10-08 15:36:22
不会“显示:table-cell;”不通过v7在IE中工作? – matthewdunnam 2008-10-08 18:26:02