gpt4 book ai didi

html - 带回丢失的输入类型日期清除字段按钮(Chromium)

转载 作者:行者123 更新时间:2023-12-05 07:13:26 25 4
gpt4 key购买 nike

使用 <input type="date"> 时曾经有一个清除 (x) 按钮来重置值,但看起来 Chromium 在新的表单控件 UI 设计中删除了它,你现在必须单独删除每个值 (mm,dd,yyyy)

这是它在新 UI 中的样子:

This is how it looks in Chromium 81

这是它在旧版本中的样子:

This is how it looked till Chromium 81

有没有办法恢复清除按钮?

(如果您使用的是 Google Chrome 稳定版并希望看到新的 UI 运行,您可以在此处的标志下启用它:chrome://flags/#form-controls-refresh)

最佳答案

我同意卡尔文的观点。没有清除按钮的新 UI 是一种趋势。从他提供的文章来看,新的基于 Chromium 的 Edge 删除了清除按钮以提供更好的触摸输入体验:

Our research found that with the large surface area of the fingertip, small controls that are too close together can be difficult to target precisely.

我认为这是设计使然,在不同的浏览器中会略有不同,因此您无法在 Microsoft Edge Chromium 中更改它。

关于html - 带回丢失的输入类型日期清除字段按钮(Chromium),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60174121/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com