0

I have multiple divs that are hidden and on some pages some are visible. I use div class="active" to make them visible

But I need to do #div1.active, #div2.active, #div3.active and so on. Is there anyway to do like div.active {visibility: visible} so all divs that has the class active are visible?

4

1 回答 1

0

尝试这个

div.active {
    display: block;
}
于 2013-10-19T11:45:50.797 回答