.tablePlayButton {
display: block;
width: 16px;
background: transparent;
margin-top:2px;
margin-right: -10px;
margin-left: 2px;
height:17px;
}
tr:hover .tablePlayButton {
background: url(ton.png) top left no-repeat;
}
tr:hover .tablePlayButton:active {
background-position: bottom left;
}
tr:hover .tablePlayButton.playing,
.tablePlayButton.playing {
background: url(ton2.png) top right no-repeat;
}
tr:hover .tablePlayButton.playing:active,
.tablePlayButton.playing:active {
background-position: bottom right;
}
我得出這樣的跨度:<span class="tablePlayButton"></span>
爲什麼當我點擊它時,我的跨度不會執行JQuery事件點擊?
它有一個小按鈕。當我點擊它時,什麼也沒有發生:
$(".tablePlayButton").click(function(){
alert('hi');
});
它的工作在我的電腦... – hallie 2010-03-24 01:17:45