格式自由发挥。
- 点击开始按钮,随机闪烁名字;
- 开始后,绿底“开始”按钮变为红底“结束”按钮;
- 点击结束按钮,选取到随机名字,按钮变回绿底“开始”按钮。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>1</title>
<style type="text/css">
.n {
width: 90%;
}
.n1 {
border: 1;
width: 60%;
height: 300px;
background-color: lavender;
text-align: center;
line-height: 100px