当前位置:网站首页>When you click input, the border is not displayed!
When you click input, the border is not displayed!
2022-07-26 09:18:00 【Xiaomeng new admission】
Click on input when , Don't show borders !
① input{ outline: none; }
Mouse click input when , Highlighted black border , How to remove the problem ?
input{ outline: none; }
You can give borders (border) Set a color , Then outline the border (outline) Get rid of it , When you click, there will be no black border ,outline Set the style of the outline , Style is none when , The outline will not appear , Hopefully that helped !
②:focus Pseudo class selector
Questions like this are generally used in :focus Pseudo class selector , Use to select the form element to get focus , The focus is also the cursor .
In general input Class form elements :focus Pseudo class selector . Nonsense is not much code , stay input:focus in , Click Remove input The displayed border , as follows :( Pictures can be ignored )
.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Baidu input box </title>
<style> input {
width: 520px; height: 40px; border: none; box-shadow: 0px 1px 2px #888888 inset; background: url(./images/camera_01.png) no-repeat 480px center; } input:focus {
width: 520px; height: 40px; border: none; outline: none; box-shadow: 0px 0px 3px #005efe inset; background: url(./images/camera_02.png) no-repeat 480px center; } </style>
</head>
<body>
<input type="text" name="" id="">
</body>
</html>
边栏推荐
猜你喜欢

CF1481C Fence Painting

优秀的 Verilog/FPGA开源项目介绍(三十零)- 暴力破解MD5

2022 chemical automation control instrument operation certificate test question simulation test platform operation

Selection and practice of distributed tracking system

Li Mu D2L (VI) -- model selection

公告 | FISCO BCOS v3.0-rc4发布,新增Max版,可支撑海量交易上链
![[leetcode database 1050] actors and directors who have cooperated at least three times (simple question)](/img/ab/bad6b86039384af7b829bef5316923.png)
[leetcode database 1050] actors and directors who have cooperated at least three times (simple question)

Nuxt - Project packaging deployment and online to server process (SSR server rendering)

C# Serialport的发送和接收

(2006, MySQL server has gone away) problem handling
随机推荐
Vertical search
字节缓冲流&字符流详解
Babbitt | metauniverse daily must read: does the future of metauniverse belong to large technology companies or to the decentralized Web3 world
redis原理和使用-基本特性
[arkit, realitykit] turn pictures into 3D models
QtCreator报错:You need to set an executable in the custom run configuration.
unity TopDown角色移动控制
优秀的 Verilog/FPGA开源项目介绍(三十零)- 暴力破解MD5
(2006, MySQL server has gone away) problem handling
Flask project learning (I) -- sayhello
【Mysql】认识Mysql重要架构(一)
ext3文件系统的一个目录下,无法创建子文件夹,但可以创建文件
Object 的Wait Notify NotifyAll 源码解析
性格测试系统v1.0
Two tips for pycharm to open multiple projects
Conditions for JVM to trigger minor GC
[MySQL] how to execute an SQL statement (2)
NTT(快速数论变换)多项式求逆 一千五百字解析
Announcement | FISCO bcos v3.0-rc4 is released, and the new Max version can support massive transactions on the chain
PHP和MySQL获取week值不一致的处理