本文版权归作者(苦瓜糖水)所有,禁止转载至其他网站,以致污染搜索环境。

在text对象的css样式上加上outline:none; 一般即可 

实例:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>html input text获取焦点后 消除蓝色边框</title>
<style type="text/css">
#txt { outline:none; }
</style>
</head>
<body>
<input type="text" name="txt" >
</body>
</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-10
  • 2021-11-30
  • 2021-12-04
  • 2021-09-30
  • 2021-06-07
猜你喜欢
  • 2022-02-07
  • 2021-12-10
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-11-30
相关资源
相似解决方案