Just trying to figure out how to get the drop-down menus to work (the theory behind them). A.
From what I saw, it just plays with CSS, using display: noneand blockalong with z-index.
display: none
block
z-index
Events are tied to mouseoverand mouseoutto switch the CSS class.
mouseover
mouseout
Is it basically this?
There is an alternative here where you can make the display of the visibility of menu items dependent on the hover style of the parent element, for example.
li ul {display: none;} li:hover > ul {display: block;}
this means that you can create menus simply using
<ul id="menu"> <li> some item <ul><li>sub item</li></ul> </li> <li> some other item </li> <ul>
, , .., , css.
CSS : hover anchor, , mouseover/mouseout.
: , , , : hover , .
horzontal <ul> <li>
<ul>
<li>
- <ul>
.css:
<li> "list-style: none", ..
<li> "display: inline;"
<a> <li> , , "padding: 10px 20px;" ( ), .
<a>
, , onmouse (out | over) / , , . , , , . , , - , .
Source: https://habr.com/ru/post/1703862/More articles:Recommendations for duplicating C # code - c #Are conflicting types always a problem in C? - cβStart Debuggingβ is forever saved in VisualStudio 2005 - c ++File names containing international characters other than ascii - asp.netpassing test.includes intellij test test parameters - javaDelphi 2007 Pro - the best way to connect to SQL Server - sql-serverPython persistent popen - pythonBasic Pixel / Cell Counting Algorithm - c ++Command line for deploying an ASP.NET MVC project - build-processMultiple C # vs Dataset connections - c #All Articles