我遇到了显示div的问题。由于某些原因,它不显示内部div。绝对高度为100%的位置
父div的位置是相对的,因为子div是绝对的。
这里是演示http://jsfiddle.net/squidraj/6R3Hr/6/
HTML代码:
<div class="page-center">
<div class="question_slide inidfeedback">Test</div>
</div>
CSS代码:
.question_slide {
background: #000000;
height: 569px;
width:100%
}
.question_slide {
overflow: hidden;
position: absolute;
top: 0;
width: 100%;
}
.page-center {
margin: 0 auto;
max-width: 1100px;
overflow: hidden;
position: relative;
text-align: center;
width: 100%;
}
什么是使用'位置的点:在页面中心relative'? –
否则溢出隐藏不起作用。 –