日期:2014-05-16  浏览次数:20339 次

超连接的没有 style.cssText这个熟悉,请问怎么变通一下呢
document.getElementById( "button ").style.cssText= "color   :   #FF2E10 "
上面的代码是没问题的,但是如果是超连接,就会有问题了。超连接没有style.cssText属性,请问怎么变通一下呢

------解决方案--------------------
<a id= "button " href= "http:// "> rrrrrr </a>
<script>
document.getElementById( "button ").style.color= "#FF2E10 ";
</script>