입력란의 크기가 입력란의 너비의 98 %가되도록하십시오. 너비를 98 %로 설정하면 입력이 화면에서 사라집니다. 입력의 폭을 정의하는 특별한 방법이 있습니까? 여기 입력 너비의 비율이 올바르게 작동하지 않습니다.
내 HTML입니다 :<div class="large-12 columns centered">
<input class="typeahead" type="text" placeholder="Start typing to search" spellcheck="false" autofocus />
</div>
그리고 여기 내 CSS입니다 :
input {
padding: 0.8rem 0.9rem;
height: inherit;
font-size: 1.25rem;
margin: 0 0 .5rem 0;
display: block;
width: 98%;
}
그러나 어떤 이유로,이 결과 :
신경 끄시 고,이되었다 지금. – user3306747