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");
})