Однако, когда я печатаю в contenteditable , он растягивает ячейку вместо «прокрутки» текста, как это делает ввод.
[img]https://i.sstatic.net /CbLUjhir.png[/img]
Мой HTML:
Код: Выделить всё
Document
Код: Выделить всё
* {
box-sizing: border-box;
}
table {
width: 100%;
}
td {
width: 33.333333%;
}
input {
width: 100%;
height: 32px;
border: 1px solid #dedede;
}
.contendeditable {
padding-left: 10px;
height: 32px;
border: 1px solid red;
width: 100%;
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
line-height: 32px;
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... table-cell
Мобильная версия