0
我有底線,右側有灰色div,我想懸停以顯示完整的div。在開始灰色div被隱藏。我怎麼能解決這個問題?謝謝!CSS。從底部顯示div
<body>
<div id="wrap">
</div>
<div id="footer">
<div class="container">
<div id="footer_right_wrapper"></div>
</div>
</div>
html, body {
height: 100%;
/* The html and body elements cannot have any padding or margin. */}
/* Wrapper for page content to push down footer */
#wrap {
min-height: 100%;
height: auto !important;
height: 100%;
/* Negative indent footer by its height */
margin: 0 auto -61px;
/* Pad bottom by footer height */
padding: 0 0 60px;
}
#footer {
height: 61px;
background-color: red;
color: black;
}
.container {
height: 61px;
overflow: hidden;
}
#footer_right_wrapper {
width: 100px;
height: 217px;
background-color: grey;
float: right;
}
我希望灰色的div擴大到頂部。像這樣:http://jsfiddle.net/benasg/75eycjkd/1/ – BenasG