高さが宣言されていない場合、CSS でテキスト入力の高さを通常の高さのパーセントに設定する方法を探しています。それが入っているコンテナの高さのパーセントを探しているわけではありません.そのように:
CSS:
#container {
height: 100%;
width: 100%;
}
input {
width: 100%;
background: orange;
height: [I want this 150% of the height normally assigned to the element]
font-family: inherit;
font-size: inherit;
}
#results {
width: 100%;
background: pink;
height: auto;
height: 100%;
}
HTML:
<div id="container">
<input type="text">
<div id="results"></div>
</div>