私は次のcssを持っています:
#leftmenu{
top: 400px;
left: 4%;
position: fixed;
width: 150px;
height: 200px;
background: transparent;
}
html,body{
height:100%;
margin:0;
}
「Leftmenu」の位置は画面の左側に固定されていますが、現在、top は px (400) で定義されており、% で定義したいので、div「leftmenu」を中央揃えで垂直方向に配置する必要があります。高さは同じでなければなりません。
ありがとうございました