【发布时间】:2013-10-29 11:08:18
【问题描述】:
所以,我一直在尝试让文本框闪烁 3 次,并带有发光效果。 但我只能让它闪烁一次。
有人可以看看这个,也许可以在这里帮助我吗?
HTML
<input id="asktextsearch" name="search" type="text" placeholder="bla bla" />
CSS
#asktextsearch{
height: 20px;
width: 440px;
font-size: 12px;
color: Grey;
border: thin solid #CACACA;
//margin-top: 60px;
/* [disabled]border-radius: 10px 10px 10px 10px; */
outline:none;
transition: all 0.25s ease-in-out;
-webkit-transition: all 0.25s ease-in-out;
-moz-transition: all 0.25s ease-in-out;
}
#asktextsearch:focus {
box-shadow: 0 0 5px rgba(209, 27, 28, 1);
-webkit-box-shadow: 0 0 5px rgba(209, 27, 28, 1);
-moz-box-shadow: 0 0 5px rgba(209, 27, 28, 1);
}
JQuery
for(i=0;i<3;i++){
alert(i);
$('#asktextsearch').focus();
//$('#asktextsearch').addClass(':focus');
};
【问题讨论】:
标签: jquery html css textbox focus