2020
10-16
10-16
利用js实现简易红绿灯
HTML代码:在一个div容器内,设置3个span<body><divid="i1"><spanclass="lightred_light"></span><spanclass="lightyellow_light"></span><spanclass="lightgreen_light"></span></div>CSS代码:<style>.red_light{width:200px;height:200px;border-radius:50%;margin-left:10px;display:inline-block;background-color:red;}.yellow_light{width:20...
继续阅读 >