由于某种原因,父 div 扩展到页面底部。我试图让它的内容有一个高度。
HTML:
<div id="sideMenu" >
<ul class="bmenu">
<li onclick="wideScreen()">Wide Screen</li> <!--turn sidebar on/off-->
<li onclick="randFrame()">Random Border</li> <!--randomize vidcontain border-->
<li onclick="randBG()">Control Bar</li>
</ul>
<div style="clear:both;"></div>
</div>
CSS:
#sideMenu{
position: fixed;
left: -90px;
top: 250px;
height:100%;
width:100px;
background-color: black;
border: 3px solid #999400;
z-index:1000000;
float:left;
display:table;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
-o-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-border-radius: 0 5px 5px 0;
-moz-border-radius: 0 5px 5px 0;
border-radius: 0 5px 5px 0;
}