css - 删除输入字段的边框,但保留底部
问题描述
我有很多输入字段,但我只想显示底部边框。我已经尝试过使用
border-left: none;
border-width: 0;
但这没有用。
解决方案
只需使用 CSS 删除所有输入字段上除底部边框外的所有边框。请参阅下面的代码片段。
input {
margin: 20px;
border-left: none;
border-right: none;
border-top: none;
border-bottom:0.5px solid black;
}
<input type="text"> <br />
<input type="text"> <br />
<input type="text">
推荐阅读
- python - 使用 selenium python 进行基于条件的抓取
- java - 将 GraphQL 响应映射到 Java/Spring 中的类
- unreal-engine4 - 为什么在 ACharacter 类派生 actor 中使用 AddMovementInput 时不需要处理 DeltaSeconds?
- electron - 无法从渲染过程电子访问用户数据路径
- c - 为什么编译器在包含标准库中的头文件时不需要传递相应的源文件?
- swagger - swagger editor 2.0 下载excel文件
- flutter - 我想将地图值传递给要运行的函数,而不是得到“位置参数太多:预期为 0,但找到了 1”
- excel - 计算电池消耗的复杂excel公式
- python - zipfile.BadZipFile:文件不是 zip 文件,无法将数据存储到 excel 中
- python - 如何将具有多张工作表的excel合并为一个excel?