HTML 使用 CSS 移除 input datalist 下拉箭头
HTML CSS 大约 154 字需求
input
配置了datalist
后,输入框尾部会带一个下拉箭头,需要去掉。
样式
[list]::-webkit-calendar-picker-indicator {
display: none !important;
}
注意
Chrome 91
版本后必须加!important
才能生效。
阅读 54 · 发布于 2023-09-15
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Spring 使用 filter 过滤器、ContentCachingWrapper 包装类获取请求参数和返回值阅读 1255
-
Spring AOP 原理阅读 1407
-
MySQL 全文检索 FULLTEXT 搜索不到内容阅读 3122
-
IDEA 代码折叠功能阅读 401
-
记一次小程序排查 setData 函数耗时很长思路阅读 3647
-
Go Mutex 悲观锁阅读 10
-
Linux 两个文件取并集、交集、差集阅读 4407
-
Linux -bash: locate: command not found阅读 999
-
Spring 创建 IOC 容器步骤阅读 944
-
IDEA 新主题 UI阅读 237