去除IE6浏览器下获得焦点的元素的虚线框的两个小办法
【1】onfocus = "this.blur()"//得到焦点时,失去焦点
e.g. <a href="#" onfocus = "this.blur()">test</a>
【2】使用HTML标签的特性 hidefocus
e.g. <a href="#" hidefocus>test</a>
【注意】由于使元素失去焦点后,该元素将无法通过Tab键选中,所以不到万不得已,不要这么操作。
好的代码像粥一样,都是用时间熬出来的
【1】onfocus = "this.blur()"//得到焦点时,失去焦点
e.g. <a href="#" onfocus = "this.blur()">test</a>
【2】使用HTML标签的特性 hidefocus
e.g. <a href="#" hidefocus>test</a>
【注意】由于使元素失去焦点后,该元素将无法通过Tab键选中,所以不到万不得已,不要这么操作。
好的代码像粥一样,都是用时间熬出来的