先附上效果图
当我们把鼠标移入电影条目的时候(效果图如下)
实现代码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>34_jquery实现电影排行榜上.html</title>
<script src="query.js"></script>
<script>
$(function () {
$("ul>li").hover(function () {
$(this).addClass("current")
},function () {
$(this).removeClass("current")
})
})
</script>
<style>
*{margin: 0;
padding: 0;
}
.box{
width: 300px;
height: 450px;
marg