【发布时间】:2015-12-15 10:21:29
【问题描述】:
我们想在文本框之后显示一些通知。 就像,如果过滤器被激活,那么我们想在文本之后显示“过滤器激活”。 文本是用户输入的,所以如果他们改变了文本框的文本,那么它会根据文本的长度自动调整。
例如:-
我试过了
但它总是在右边或总是在左边。
#clear {
right: 39px;
background: #f1f1f1;
color: rgb(187, 187, 187);
font-weight: bold;
cursor: pointer;
width: 104px;
height: 36px;
display: block;
position: absolute;
/* right: 2px; */
top: 2px;
}
.search-form {
width: 100%;
padding-right: 52px;
font-size: 19px;
font-family: 'Merriweather', sans-serif;
font-style: italic;
height:30px;
}
<input type="text" id="auto" class="search-form" >
<div id="clear">Filtering active</div>
不重复:-
Place holder is different from this. Place holder is talking about the text box, What text box can contain. But this is talking about the filtering.
【问题讨论】:
-
我不认为它可能与那个小代码...检查选择的插件它看起来像那样
-
小代码?那么我们如何才能做到这一点呢?
-
使用纯 css 这是不可能的。您可以在输入文本中设置过滤器或任何内容,但不能在文本旁边调整它
-
如果只有一个值,那么在值之后就没有任何意义