1、样式 #keyboard li.active { background-color: #e3e3e3; }
2. js控制
$('#keyboard li').on("touchstart", function () {
$(this).addClass("active");
})
$('#keyboard li').on("touchend", function () {
$(this).removeClass("active");
})
1、样式 #keyboard li.active { background-color: #e3e3e3; }
2. js控制
$('#keyboard li').on("touchstart", function () {
$(this).addClass("active");
})
$('#keyboard li').on("touchend", function () {
$(this).removeClass("active");
})