也许这是一个奇怪的问题,但有可能装饰输入字段的右下角有这两条窄线,这是textarea字段中的默认值吗?所以它只是关于装饰,不需要相同的功能.
笔:https://codepen.io/anon/pen/wxqpXK
input {
border-top: none;
border-left: none;
border-right: none;
}Run Code Online (Sandbox Code Playgroud)
<input type="text" placeholder="Input text">
<textarea name="" id="" cols="30" rows="10"></textarea>Run Code Online (Sandbox Code Playgroud)
小智 5
.resizable-input {
/* make resizable */
overflow-x: hidden;
resize: horizontal;
display: inline-block;
/* no extra spaces */
padding: 0;
margin: 0;
white-space: nowrap;
/* default widths */
width: 10em;
min-width: 2em;
max-width: 30em;
}
/* let <input> assume the size of the wrapper */
.resizable-input > input {
width: 100%;
box-sizing: border-box;
margin: 0;
}
/* add a visible handle */
.resizable-input > span {
display: inline-block;
vertical-align: bottom;
margin-left: -16px;
width: 16px;
height: 16px;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAJUlEQVR4AcXJRwEAIBAAIPuXxgiOW3xZYzi1Q3Nqh+bUDk1yD9sQaUG/4ehuEAAAAABJRU5ErkJggg==");
cursor: ew-resize;
}Run Code Online (Sandbox Code Playgroud)
<span class="resizable-input"><input type="text" /><span>Run Code Online (Sandbox Code Playgroud)
也许这可以帮助!! :)
| 归档时间: |
|
| 查看次数: |
103 次 |
| 最近记录: |