<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
#div1{
width: 300px;
height: 200px;
background-color: #84a42b;
}
#div2{
height: 100px;
width: 100px;
background-color: rebeccapurple;
}
</style>
</head>
<body>


<div >
<div ></div>
</div>

<script>
function func1(e) {
alert('div2');
e.stopPropagation();

}
</script>

</body>
</html>

 

相关文章:

  • 2021-11-27
  • 2021-11-27
  • 2021-04-21
  • 2022-12-23
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
猜你喜欢
  • 2021-11-27
  • 2021-11-27
  • 2021-05-05
  • 2021-11-27
  • 2021-11-27
  • 2021-11-27
相关资源
相似解决方案