//當輸入框focus與blur時,更改其CSS
//建立輸入框事件
$(".row input").focus(function () {
$(this).css("color", "#000").css("background-color", "white");
});
$(".row input").blur(function () {
$(this).css("color", "#CCC").css("background", "transparent");
});
相关文章