消除blur属性的边框

时间:2022-03-21 08:16:05

直接设置样式为:  outline:none

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body> <button onblur="asd()" style="outline: none;">ckick</button>
<script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
function asd() {
alert("没有边框");
}
</script>
</body>
</html>