added purple
This commit is contained in:
parent
1ef4fda39b
commit
6d05ddb402
8
a.html
8
a.html
@ -17,10 +17,13 @@
|
|||||||
#white{
|
#white{
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
#purple{
|
||||||
|
background-color: purple;
|
||||||
|
}
|
||||||
button {
|
button {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
width: 100px;
|
width: 60px;
|
||||||
margin: 5px;
|
margin: 1px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@ -31,6 +34,7 @@
|
|||||||
<button id="red"onclick=setColor('red')> red</button>
|
<button id="red"onclick=setColor('red')> red</button>
|
||||||
<button id="blue"onclick=setColor('blue')>blue</button>
|
<button id="blue"onclick=setColor('blue')>blue</button>
|
||||||
<button id="white"onclick=setColor('white')>white</button>
|
<button id="white"onclick=setColor('white')>white</button>
|
||||||
|
<button id="purple"onclick=setColor('purple')>purple</button>
|
||||||
<button onclick=randomColor()>random</button>
|
<button onclick=randomColor()>random</button>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user