#content
{
    background:#000;   
    margin:20px auto;
    overflow:auto;/*在标准浏览器中定义父元素能够自适应高度*/
    display:inline-block;/*在IE6及更低版本中定义父元素为内联款装显示,强迫自动伸缩*/

}
P{
    height:100px;
    border:20 px solid blue;
    margin:20px;
}

相关文章:

  • 2021-09-24
  • 2021-12-28
  • 2022-03-03
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2021-12-20
  • 2021-12-24
  • 2022-12-23
  • 2021-06-16
相关资源
相似解决方案