如何始终显示 'x' 以清除 Microsoft Edge 中的搜索输入?

How can I always show the 'x' to clear a search input in Microsoft Edge?

是否可以仅通过使用 CSS(不创建自定义组件)在 Microsoft Edge 的搜索输入 HTML 元素中始终显示默认 'x'?

伪元素 ::-ms-clearopacity 属性 对 Microsoft Edge 中的 'x' 按钮没有任何影响。

如果不创建您自己的 x 按钮,这似乎是不可能的。来自 MDN - ::-ms-clear:

The clear button is only shown on focused, non-empty text controls. This includes inputs that appear text-like or fall back to type="text".