1
:z-indexスタッキングコンテキスト - 子オーバーラップ親w /オーバーフロー:非表示?これを達成するための最良の方法は何
私は2つの要素を持って、両方の絶対位置と、私は親が持っているにもかかわらず、子供が水平方向にオーバーラップしたいオーバーフローを-X:隠されました。
.parent {
position: absolute;
z-index:1;
height: 100%;
min-height: 300px;
overflow-y:auto;
overflow-x:hidden;
width: 200px;
background: #ccc;
}
.child {
position:absolute;
z-index:2;
width: 300px;
height: 100px;
top: 30px;
left: 10px;
padding: 10px;
background: #555;
color: white
}
可能な複製:http://stackoverflow.com/q/16365320/3597276 –