1
我有這個功能,我把一個父類爲了有一個邊緣權利的輸入父。我想修改一點家長的行爲,並取代這個「$(this).parent().addClass('cooling');
」與「 $(this).parent().animate({ marginRight: "200px" }, slow);
」,但我不知道如何去除模糊的動畫邊緣。如果有人能幫助我...刪除動畫模糊我的功能
function inputWidth(){
$('input[type=text]')
.focus(function() {
if ($(this).val().length > 21) {
$(this).data('default', $(this).data('default') || $(this).width());
$(this).stop().animate({width: 300}, 'slow');
$(this).parent().addClass('cooling');
//$(this).parent().animate({ marginRight: "200px" }, slow);
}
})
.blur(function() { /* lookup the original width */
$(this).stop().animate({width:
$(this).data('default')},'fast');
$(this).parent().removeClass('cooling');
});
};
nope,它不工作.... – BurebistaRuler 2012-02-08 13:49:48