Use the onfocus event to change the border color of the input input box, why will it fail when you move the mouse away, and how to change the color as long as the focus is still there?

onfocusinput

the effect I want to do is the same as the Baidu search box. When you click on the search box, the search history appears below it. Even if the mouse leaves, as long as you don"t click anywhere else on the page or switch the page, the search history box is still there.

Mar.23,2021
Menu