ie里面:
<body onmousemove="if(event.srcElement.nodeType==1) x.innerHTML=event.srcElement.tagName">
<div id=x></div>
<input>
<img>
<p>a<a>aa</a></p>
</body>

解决方案 »

  1.   

    能问下button控件能不能去掉它获得焦点时的黑边框?
      

  2.   

    <BUTTON>
    Button With Rectangle</BUTTON>
    <BUTTON HIDEFOCUS="true">
    Button Without Rectangle</BUTTON>
      

  3.   

    <input type="button" value="OK" onfocus="this.blur();">
      

  4.   

    <input type="button" value="click me" style="border:solid 0px;background-color:#CCCCCC">
    边框线用图片模拟或者图片按钮
      

  5.   

    太强了!2颗钻石,第一次在CSDN见到这么高的级别!
      

  6.   

    其实我是要button有边框,但如果这个button获得了焦点它的边框就会加深,我就是要去掉当button获得焦点时不让边框颜色变深
      

  7.   

    老孟的代码为什么要判断nodeType,感觉不判断也可以啊,难道文本和属性也有mousemove方法??
    <body onmousemove=" x.innerHTML=event.srcElement.tagName">
    <div id=x></div>
    <input>
    <img>
    <p>a<a>aa</a></p>
    </body>
      

  8.   

    关于边框问题上面LEO不是已经有答案了吗
    <input type="button" value="OK" onclick=alert("hehe") onfocus="this.blur();">