左边固定宽度div右边随着窗口大小改变大小的div布局

代码如下

* {
    margin: 0;
    padding: 0;
}

#ccc{
	overflow: hidden;
}
#left {
    float: left;
    width: 200px;
    height: 100px;
    background-color: green;
}
#content {
    background-color: orange;
    margin-left: 200px;
  	height: 100px;
  	
  }


	<div >Left sidebar</div>
<div >Main Content</div>

  

相关文章:

  • 2021-06-04
  • 2022-01-25
  • 2022-02-12
  • 2021-09-20
  • 2021-06-28
  • 2022-01-02
  • 2021-09-21
  • 2021-12-21
猜你喜欢
  • 2022-02-14
  • 2021-11-11
  • 2021-09-30
  • 2021-11-18
  • 2021-10-20
相关资源
相似解决方案