如何在div之外的div中缩进文本

时间:2011-11-07 17:14:34

标签: html css css3

这是代码...... http://jsfiddle.net/jpBU6/3/

如何使文本显示更高,并仍然使包含div高度自动化为文本长度?

2 个答案:

答案 0 :(得分:0)

删除此空div <div id="real-body-top"></div>

答案 1 :(得分:0)

<div style='position:relative; ' >
 <div id="topBody"></div>
 <div id="real-body-top"></div>
 <div id="boddy-middle" style='margin:4px 0px 0px 20px; overflow:auto; ' >
  asdasd asdas dasdas as dasd as dasdas asdasd asdas dasdas as dasd as dasdas asdasd asdas
  dasdas.
  asdas dasdas as dasd as dasdas asdasd asdas dasdas as dasd as dasdas asdasd asdas dasd
  as as dasd as dasdas asdasd asdas dasdas as dasd as dasdas asdasd asdas dasdas as dasd
  as dasdas asdasd.
 </div>
 <div id="body-bottom"></div>
</div>