1
나는 나의 레이블과 입력을 다음과 같은 CSS를 가지고 :CSS 라벨 및 입력 질문
label {
display:block;
font-weight:bold;
color:#444;
margin:5px 0;
}
label.notification {
clear: both;
color:#200;
margin:5px 0;
}
input {
width:300px;
padding:4px;
border:none;
border-bottom:1px dotted #ccc;
font:90% Verdana;
color:#777;
}
내가 원하는 내가 한 줄에 입력 및 레이블 통지가있을 때 있도록. 어떻게해야합니까? 현재는 항상 별도의 줄에 있습니다.
<label id="date">Date</label>
<input id="datepicker" name="datepicker"/></label>
<label class="notification">You need to enter a date</label>
날짜 선택기 및 알림이 같은 줄에 있어야하지만, 라벨 (날짜) 및 날짜 선택기가
입력란이있는 새 줄에 사용할 수있는 두 가지 유형의 레이블이 필요합니다. – aherlambang
문제의 'label'은 알림 클래스가있는 레이블입니까? 그렇다면 단순히'display : inline'을'label.notification'에 추가하면됩니다. –