This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Была задача. | |
Сделать квадрат, который по клику меняет цвет (серый -> синий -> желтый -> зеленый). | |
Все по идее просто и понятно, а присылают вам такой (работающий!) код: | |
<style> | |
.sq { | |
width: 100px; | |
height: 100px; | |
margin: 15px; | |
background-color: gray; |