В одну строку и без зависимостей это делается так: <input type="text" onkeydown="this.style.width = ((this.value.length + 1) * 8) + 'px';">.
確定! 回上一頁