How to use text-overflow ellipsis in an html input field?

后端 未结 4 770
死守一世寂寞
死守一世寂寞 2020-12-05 05:56

My web page has input fields to which I have applied the following css :

.ellip {
    white-space: nowrap;
    width: 200px;
    overflow: hidden;
    -o-tex         


        
4条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 06:44

    A field is an element with its own rules. The input field is implemented in the way that if the text gets longer than the field, the text gets just unseen.

    The reason for this is, if you use the field in a form and it would be possible to use text-overflow ellipsis, then it would only transmit the truncated content, what is not the wanted effect.

提交回复
热议问题