2012-03-21 4 views

答えて

0

重要な属性は以下のとおりです。overflowheight

<style type="text/css"> 
html, body { height:100%; } 
div.scroll { 
    height: 100%; 
    width: 300px; 
    overflow: auto; 
    border: 1px solid #666; 
} 
</style> 

私は、これはすべてのブラウザで働いているかわからない...

+0

私は流体の高さを持つように内部カラムを必要とする - 画面を埋めるために、私はそれはあなたがJavaScriptでそれを行う必要があり、ブラウザ画面 – nirhere

+0

に合わせ取得する方法を探しています。.. 。 – Alex

1

はあなたを入れて別の '列'に2つの列/ divs /を設定し、margin:autoを使用して中央に配置します。その後、overflowプロパティにautoまたはscrollの値を使用できます。そのような何か:

<div style="margin:auto;"> 
    <div style="overflow:scroll" ></div> 
    <div style="overflow:scroll" ></div> 
</div> 
関連する問題