<style type="text/css">
html {
overflow: hidden
}
html, body, #centralDIvision {
margin-left: auto;
margin-right: auto;
width: 1100px;
height: 400px;
}
#centralDivision {
float: left;
}
#outer {
display: table;
position: absolute;
height: 100%;
width: 100%
}
</style>
を持っていますが、代わりに400ピクセルに等しいcentralDivision div要素の高さを有するので、私はそれがブラウザの現在の画面サイズの75%になりたいです。私にこれをする方法はありますか?
HTMLを表示してください。 DOM構造はここでは必須です。 –
何を試しましたか? '#centralDivision'ルールの' height:75% 'だけではありませんか? –