【发布时间】:2015-08-19 20:51:49
【问题描述】:
我使用 texttext 进行自动补全。该输入文本不再响应更改窗口大小。第一次画面就不错:
但是当我更改浏览器窗口时,所有字段都会缩小,除了标记(具有 texttext 自定义样式)之外,它的正确元素会转到该字段:
如果我点击刷新,它将找到它的正确位置。 这是该字段的相关 css:
.text-core {
position: relative;
}
.text-core .text-wrap {
background: #fff;
position: absolute;
width: 100%;
}
.text-core .text-wrap textarea, .text-core .text-wrap input {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
border: 1px solid #9daccc;
outline: none;
z-index: 1;
background: none;
overflow: hidden;
margin: 0;
padding: 3px 5px 4px 5px;
white-space: nowrap;
font: 14px; height : 34px;
border-radius: 4px;
height: 34px;
min-width: 0;
display: inline;
}
请有人像其他人一样帮助做出响应。谢谢!
【问题讨论】:
标签: html css jquery-textext