使用jquery实现红绿灯闪烁效果
效果图如下
代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="jquery.js"></script>
<style type="text/css">
.blue{
height: 200px;
width: 200px;
background-color: blue;
}
.red{
height: 200px;
width: 200px;
background-color: red;
}
</style>
</head>
<body>
<div align="center" style="margin-top: 200px">
<div class="blue" ></div><br />
<input type="button" id="close" value="关闭" />
<input type="button" id="ope