<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>JS事件代理练习</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
}
ul{
margin-top: 5%;
}
ul li {
padding: 20px 30px;
border: 1px solid rgb(253, 161, 176);
width: 100px;
height: 40px;
text-align: center;
line-height: 40px;
background: rgb(248, 214, 220);
color: rgb(9, 151, 151);
cursor: pointer;
}
</style>
</head>
<body>
<ul id="father">
<li id="Li1">Monda
用JS原生简单实现实现代理事件?
最新推荐文章于 2021-11-08 23:03:52 发布