Answer the question
In order to leave comments, you need to log in
How to apply two styles to one table, hide one of them and show the other (example)?
<SCRIPT type="text/javascript">
var a=0;
if (a==0) {
document.getElementsByClass('table3').style.display = "none";
}
</SCRIPT>
<STYLE>
//table3 желтая подсветка, table4 синяя
.table4 {
-moz-box-shadow:0 0 10px #4195fc;
-webkit-box-shadow:0 0 10px #4195fc;
box-shadow:0 0 10px #4195fc;
}
.table3 {
-moz-box-shadow:0 0 10px #ffd700;
-webkit-box-shadow:0 0 10px #ffd700;
box-shadow:0 0 10px #ffd700;
}
</STYLE>
<table border=1 class="table3 table4">
<tr>
<td>Пример</td>
</tr>
</table>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question