2-7作业

来源:2-7 编程练习

挪威_

2020-01-23 00:26:05

<!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>

     $(document).ready(function () {

$("li").hover(function () {

$(this).css({"color":"red",fontSize:"3em"})

},function () {

$(this).css({color:"inherit",fontSize: "inherit"});

})

    })

    </script>

</body>


</html>


写回答

1回答

好帮手慕码

2020-01-23

同学你好,代码实现效果没有问题,很棒哦!继续加油~

0

0 学习 · 36712 问题

查看课程

相似问题

2-2作业

回答 1

2-4作业

回答 1

5-2作业

回答 1

2-11作业

回答 1