<div class="container">
  <div class="left">我是左边内容</div>
  <div class="right">我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容我是右边内容</div>
  <!-- 给右侧div添加 overflow: hidden即可 -->
</div>
.container {
  height: 300px;
  background-color: #e1e1e1;
}

.left {
  width: 100px; 
  height: 100px; 
  float: left;
  background-color: pink;
}

.right {
  overflow: hidden; 
  background-color: yellow;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.