html - 需要从搜索栏中删除边框
问题描述
但是一旦我输入一些东西,就会出现一个蓝色边框,但我不想要它而且我不知道如何删除它
这是css文件
body{
background: whitesmoke;
}
.header{
display: flex;
/* width:50%; */
align-items:center;
justify-content: space-around;
border-bottom: 1px solid whitesmoke;
}
.header-middle {
display:flex;
flex:0.5;
align-items: center;
background-color: white;
padding: 5px;
margin-top: 10px;
border-radius: 10px;
}
.header-middle > .MuiSvgIcon-root {
color: grey;
background: transparent;
}
.header-middle > input {
border:none;
width:100%;
padding:10px;
outline-width: 0;
font-size: medium;
background-color: white;
}
这是 github 存储库:github 存储库
解决方案
供您输入使用
input {
border: none;
outline: none;
}
推荐阅读
- android - 如何“更改整个设备的屏幕方向设置”?
- java - 如何停止打印我的打印方法的一半
- ios - 如何获得最后一次看到的页面分析?
- angular - Angular程序菜单组件模板不起作用
- c# - 将字符串项从数组添加到对象列表
- visual-studio-code - 为什么颤振包会失败?从 github 克隆的相同目录但在一个 pc 包上失败
- windows-installer - 具有提升权限的 Installshield 自定义操作无法正常运行
- java - 如何从 Java 访问 Oracle 云存储
- c++ - 在 C++ 中获取元类类型
- excel - 基于复选框的电子邮件 - 如果函数