JS之隔行变色
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>隔行变色</title>
</head>
<style>
* {
margin: 0px;
padding: 0px;
}
div li {
list-style: none;
line-height: 40px;
border-bottom: 1px dashed #f0f;
}
#box {
width: 500px;
height: 300px;
border: 1px solid #f0f;
margin: 20px auto;