小编vin*_*avi的帖子

为什么身体溢出不起作用?

为什么身体 溢出:视口高度大于css高度时隐藏不起作用?

ViewPort高度> 700px和

css高度为300px

codepen http://codepen.io/vinaymavi/pen/aNMVYX

div{
  border: 1px dashed;
  height:55px;
}
body{
  padding:10px;
  width:100%;
  height:300px;
  border:2px solid red;
  overflow:hidden;
}
Run Code Online (Sandbox Code Playgroud)
<html> 
  <body> 
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
    <div>6</div>
    <div>7</div>
  </body>
</html
Run Code Online (Sandbox Code Playgroud)

产量 在此输入图像描述

html css

4
推荐指数
2
解决办法
6371
查看次数

标签 统计

css ×1

html ×1