老师,请检查代码
来源:2-7 编程练习
慕函数4436287
2019-04-15 11:00:36
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>习题</title>
<style>
</style>
</head>
<body>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<script>
//此处写代码
$("li").hover(function(){
$(this).css({"color":"red","font-size":"2em"})
},function(){
$(this).css({"color":"black","font-size":"1em"})
})
</script>
</body>
</html>
1回答
好帮手慕星星
2019-04-15
同学你好,代码实现效果没有问题,很棒哦!
继续加油~
相似问题