Похожие чаты

Guys I have this css: #backi { background:

black;
}

#jili {
background: green;
}

.tweet .blackhover {
background: red;
}

And this js:

backi=
<button onClick="document.getElementById('backi').style.visibility='visible';">Black Background</button>
<div id="backi"></div>

jili=
<button onClick="document.getElementById('jili').style.visibility='visible';">Green Background</button>
<div id="jili"></div>

So basically it's backi with Black background at first and then you can click on Jili and background changes to Green. I'm a little newbie here and don't know how to make it work on .tweet .blachover which changes the background color to Red. It's already on my template and I can't change it. So can anyone please help me with the button itself? What should I write to make it work

1 ответов

13 просмотров

¿Are you trying to change the colors of the div's using the CSS rules?

Похожие вопросы

Обсуждают сегодня

Карта сайта