添加一个样式 outline 值设为 none 就可以在聚焦的时候没有边框了
HTML 使用 CSS 如何去掉文本聚焦框
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
- <meta charset="utf-8" />
- </head>
- <body>
- <input style="outline:none;" type="text" name="name" value="" placeholder="请输入信息" />
- </body>
- </html>
来源: http://www.bubuko.com/infodetail-2451866.html