입력 한 텍스트가 왼쪽 여백 (위치 지정자 텍스트)과 함께 세로로 가운데 정렬되어야합니다.
다음은 내 xPage 코드입니다.
<xe:djTextBox id="djTextBoxSearch"
style="width:100%;height:60px;">
<xe:this.dojoAttributes>
<xp:dojoAttribute name="placeholder" value="Please enter a name to search...">
</xp:dojoAttribute>
</xe:this.dojoAttributes>
</xe:djTextBox>
기본적으로 수직 정렬은 중앙에 있습니다. 여백-왼쪽 / 오른쪽을 편집 할 수 있습니다. 추가로 수직 위치를 편집하려면 주석 처리 된 코드를 사용할 수 있습니다.
input[type='text']{
height : 100px;
width : 200px;
padding : 0 0 0 30px;
/* padding : 20px 0 0 0; //to change the vertical positon */
text-align : left;
}
<input type="text" placeholder="Enter text">
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다