实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js">
5
</script>
6
<script>
7
$(document).ready(function(){
8
  $("p").on("mouseover mouseout",function(){
9
    $("p").toggleClass("intro");
10
  });
11
});
12
</script>
13
<style type="text/css">
14
.intro
15
{
16
font-size:150%;
17
color:red;
18
}
19
</style>
20
</head>
21
<body>
22
23
<p>Move the mouse pointer over this paragraph.</p>
24
25
</body>
26
</html>