相关疑难解决方法(0)

自动缩放输入[type = text]到值的宽度?

有没有办法将a的宽度缩放<input type="text">到实际值的宽度?

input {
  display: block;
  margin: 20px;
  width: auto;
}
Run Code Online (Sandbox Code Playgroud)
<input type="text" value="I've had enough of these damn snakes, on this damn plane!" />

<input type="text" value="me too" />
Run Code Online (Sandbox Code Playgroud)

html css jquery

77
推荐指数
9
解决办法
14万
查看次数

标签 统计

css ×1

html ×1

jquery ×1