自动增长宽度input

    xiaoxiao2022-07-03  124

    <input oninput="this.style.width=(this.value.length>2?(this.value.length-2)*10+30+'px':'30px')" type="number" style="min-width:30px; width: 30px; max-width: 100px" >

     

    最新回复(0)