ant*_*ant 20 html javascript css
如何从提交按钮中删除焦点?我不知道为什么它在第一个盘子里,它看起来真的很难看这里是一个截图:
alt text http://i44.tinypic.com/xg0i93.png
这就是它应该是什么样子,它在我点击它旁边并将其悬停后重新获得它的外观.替代文字http://i43.tinypic.com/11ug2o1.png
ant*_*ant 34
这有效:
var selectedInput = null;
$(document).ready(function() {
$('input, textarea, select').focus(function() {
this.blur();
});
});
Run Code Online (Sandbox Code Playgroud)
在你的按钮的CSS中尝试这个,或者<a>
如果那是你在标记中使用的那个(参考):
-moz-outline:0 none;
outline:0 none;
Run Code Online (Sandbox Code Playgroud)
请记住,它是一个有价值的辅助功能/键盘功能,因此理想情况下,您可以提供一些在视觉上更令您满意的备用焦点提示.