2016-08-28 4 views
1

입력을위한 자리 표시 자 텍스트가 잘리지 않습니다. 입력 상자의 길이를 늘리는 것 이외에 텍스트를 표시 할 수있는 방법이 있습니까? 다음과 같이자리 표시 자 컷오프 입력

enter image description here

HTML은 다음과 같습니다

뭔가 표시 할 충분한 공간이없는 경우

<section class="comment-input"> 
 
    <input type="text" placeholder="Try adding your own todosadsadasdsdaasdasdsaddsad!"> 
 
    <button>Clickez moi</buttoon> 
 
</section>

답변

1

번호, 표시하지 않을. 입력 값을 크게해야합니다.

0

모든 텍스트를 표시 할 수는 없지만이 CSS와 함께 줄임표를 추가 할 수는 있습니다.

text-overflow: ellipsis;