两个css用同样的名字如何使用
nbean 2003-05-16 11:01:29 例:
有如下两个css
<style id=123>
td.a1{width:200px}
td.a2{width:100px}
</style>
<style id=456>
td.a1{width:250px}
td.a2{width:50px}
</style>
想在表中使用如上的两个css,
<TABLE id="Table1" style="TABLE-LAYOUT: fixed" cellSpacing="0" cellPadding="1" width="200" border="1">
<TR>
<TD class='a1'>1tttttttttttttttttttttttttttt</TD>
<TD class='a2'>2tttttttttttttttttttttt</TD>
</TR>
</TABLE>
比如:一开始显示只使用style id=123的,可以通过按钮点击后使用style id=456的。如何写啊。
我在table中只想让td绑定名字a1和a2,然后通过上面的style的id变化使整个表都变化。