を働いていない私は私のテーブルには、画面の80%を取るが、今、テーブル内のコンテンツの唯一の大きさにしたいです。CSSの高さの80%が
#ecom-mainarea .center
{
margin-left: 10%;
position: relative;
width: 80%;
height: 80%; /* when this is 500px it works fine, but % doesn't work */
border: 1px solid;
border-bottom-color: teal;
border-top-color: gray;
border-left-color: gray;
border-right-color: teal;
background-color: white;
voice-family: "\"}\"";
voice-family: inherit;
vertical-align: text-top;
}
奇妙な:ここで
あなたは作業のサンプルを持っています。幅が効いているようです。他の方法の提案? – 0x4f3759df
サポートされています。 http://www.w3.org/TR/CSS21/visudet.html#the-height-property –
私は明確にする必要があります - 私はブラウザの高さでは動作しないと思っていますが、そのコンテナに対して相対的に動作するはずです。 –