<dl>
<dd><span>Process Yellow</span></dd>
<dt style="background:#f7e214;"></dt>
</dl>
dl dd {
text-align:center;
height:25px;
width:60px;
line-height:25px;
margin:auto auto 0 auto;
background-color:Yellow;
}
dl dd span{
background-color:Orange;
font-size:11px;
}
dl dt{
width:75px;
height:75px;
margin:0 auto;
}
为什么在dl dd 样式底下加 vertical-align:bottom; span整个内容不会移动到dd底下的呢?
请告知原因。
另我打算把span移动到dd底下应该怎么做。line-height不能用因为Process Yellow显示是两行的,用行高破坏布局
<dd><span>Process Yellow</span></dd>
<dt style="background:#f7e214;"></dt>
</dl>
dl dd {
text-align:center;
height:25px;
width:60px;
line-height:25px;
margin:auto auto 0 auto;
background-color:Yellow;
}
dl dd span{
background-color:Orange;
font-size:11px;
}
dl dt{
width:75px;
height:75px;
margin:0 auto;
}
为什么在dl dd 样式底下加 vertical-align:bottom; span整个内容不会移动到dd底下的呢?
请告知原因。
另我打算把span移动到dd底下应该怎么做。line-height不能用因为Process Yellow显示是两行的,用行高破坏布局
将width:60px改成width:160px
dl dd的宽度是特意设少点,让浏览器把span的内容挤成多行请问怎么把整个span的内容放到dd的底下象这个vertical-align:bottom属性效果一样
感谢 limii
dl dd {
text-align:center;
height:25px;
width:60px;
padding-top:10px;
background-color:Yellow;font-size:11px
}
dl dd span{
background-color:Orange;
font-size:11px;line-height:11px;
}
newdigitime
(日月明之)
你的还是没达到我的要求 span的整个内容放在dd的底部