1
我有隐藏溢出内容/ div(#map_Marker_Check_Block)在另一个div内的问题。屏幕的中间几乎是父母的位置。 div“map_Marker_Check_Block”的位置是正确的-12em。所以当用户点击这个div时,jquery播放动画并将整个div滑动到右边位置0.功能部分工作正常,只是隐藏#map_Marker_Check_Block div(15em-12em)的问题。请注意,因为我需要y-scrolbar来查看隐藏div内容中的内容。hidding div溢出内容
HTML
<div id="map_Marker_Check_Block">
<div class="markerDiv" id="maker_school">
<label class="marker_label">School</label> <input class=
"marker_ckeckbox" name="markerType" type="checkbox" value="school">
</div><br>
<div class="markerDiv" id="maker_gym">
<label class="marker_label">Gym</label> <input class="marker_ckeckbox"
name="markerType" type="checkbox" value="gym">
</div><br>
</div>
CSS
#sp_tab2 {
position:relative;
}
#map_Marker_Check_Block {
display:block;
position:absolute;
width:15em;
height:400px;
top:0;
right:-12em;
z-index:10;
overflow-x:hidden;
overflow-y:auto;
}