加入这个样式表就行了
<style>
A {
color:white;
}
A:active {
color:red;
}
</style>
<style>
A {
color:white;
}
A:active {
color:red;
}
</style>
解决方案 »
- javascript 如何给多个id相同的text 赋值
- JQUERY 中 表单验证时,formtips 这个元素从哪儿来的
- 在IE7中不能显示,在firefox中却可以。请大家帮忙看看!!
- 深夜还有谁在加班?为深夜加班者散分
- 声明的javascirpt自定义对象为什么有错
- 怎么在网页中显示变量的值?
- 在html页面上调用浏览器的 页面设置、打印、打印预览 功能
- 请教高人,我想取得某个日期的4天前的日期,函数有吗?
- 谁有右拉菜单的源代码?
- Jquery设置checkbox的问题
- 求教:javascript实现表单中2个文本框之间的数值转换,英寸和厘米之间的转换,请给出代码!
- 如何屏蔽菜单栏、工具栏与地址栏但保留标题栏
A{t:expression(this.onclick=function(){var links=document.getElementsByTagName('A');for(var i=0;i<links.length;i++)links[i].style.color='white';this.style.color='red';});color:white}
</style>
<body bgColor='lightblue'>
<a href='#'>1</a><br>
<a href='#'>2</a><br>
</body>
A{t:expression(this.onclick=function(){var links=document.getElementsByTagName('A');for(var i=0;i<links.length;i++)links[i].style.color='white';this.style.color='red';});
color:white}
</style>
<body bgColor='lightblue'>
<a href='#'>1</a><br>
<a href='#'>2</a><br>
</body>
A {
color:white;
}
A:active {
color:red;
}
A:visited {
color:red;
}
哪有那么烦啊,晕
</style>