div가 특정 비율 (너비와 높이)을 차지하는 HTML 페이지를 만들고 싶습니다. 그리고 창 크기를 조정할 때 내부 요소의 크기가 조정되지 않았습니까?html 레이아웃 - 크기 조정을하지 못하도록 요소를 방지합니다.
예 :
/* CSS */
#left-content-area {
position: fixed,
width: 19%,
height: 60%,
left: 27%,
top: 20%
}
<!-- Html -->
<div id="left-content-area">
First name: <input type="text" id=first_name_id" style="width=90%">
Last name: <input type="text" id=last_name_id" style="width=90%">
Phone number: <input type="text" id=phone_number_id" style="width=90%">
Address: <input type="text" id=address_id" style="width=90%">
<!--
And more....
-->
</div>
내가 대신 다시 크기에서 입력 필드를 방지하기 위해 픽셀에 하드 와이어 그것을해야합니까?
style = "width = 90 %"> style = "width : 90 %"> – JoeyPhillips
이어야합니다. 전혀 이해가되지 않습니다. 백분율을 사용하는 전체 요점은 창 크기가 변경 될 때 크기를 조정하는 것입니다. (CSS 규칙 중 하나 하나에 구문 오류가 있습니다.) – Quentin
백분율로 크기를 조정하지 않는다는 것은 본질적으로 요소의 크기가 창의 크기를 기반으로한다는 것을 의미합니까? Quentin이 나를 이길 때까지 – wavemode