A
A
Alex_js2020-05-02 16:47:41
css
Alex_js, 2020-05-02 16:47:41

How to hide menu when hovering over menu item?

Good afternoon.
I want to make dropdown menus on mouse hover.

Below is the HTML code

<div>
<span>Click to show menu</span>
<ul class="menu">
      <li>Раздел 1</li>
      <li>Раздел 1</li>
      <li>Раздел 1</li>
      <li>Раздел 1</li>
    </ul>
  </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evtera, 2020-05-02
@Alex_js

Here are the details with usage examples. At the same time pump
https://developer.mozilla.org/ru/docs/Web/API/Elem...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question