2012-09-10 2 views
0

라벨에서 입력 태그를 제거하면 높이가 왜 변하는 지 알 수 없습니다. 입력 태그가 라벨과 함께 배치 될 때 높이 맞춤과 관련하여 특별한 것이 있습니까?입력 태그를 제거 할 때 텍스트가 위로 이동합니다

에서 :

<div class=" pull-right"> 
     <label class="pull-left"><small>FROM:</small><input type="date"></label> 
     <label class="pull-left"><small>TO:</small><input type="date"></label> 
    </div> 

enter image description here

에 :

<div class=" pull-right"> 
     <label class="pull-left"><small>FROM:</small><input type="date"></label> 
     <label class="pull-left"><small>TO:</small></label> 
    </div> 

enter image description here

+1

Chrome 또는 Firefox에서이 작업을 수행하지 않습니다. 어떤 브라우저에서 이것을 볼 수 있습니까? – j08691

+0

나는 파이어 폭스에서 그랬다. 고마워. 내가 HTML의 나머지 부분을 제거하여 이것을 확인하자. – prostock

+0

덕분에 그것은 나쁘다. 다른 CSS가 문제를 일으켰습니다. – prostock

답변

0

당신은 당신의 CSS 파일에 추가 할 수

position: absolute; 
width:???px; 
관련 문제