Hier ist mein Ziel, ein Menü für eine Homepage meines E-Bibliothek-Projekts zu erstellen, dieses Menü muss alle Dateien für die Benutzer enthalten, die bestimmte Funktionen auswählen möchten welches von mir im Programm eingeschlossen ist.Erstellen des Menüs für eine Website zum Beispiel eine Homepage
Dieses Menüsymbol muss 3 vertikale Linien enthalten.
Wenn der Benutzer darauf klickt, sollte auch das Untermenü angezeigt werden.
Bitte können Sie mir vorschlagen, was ich verpasse oder hier falsch mache?
HTML-Code:
<nav>
<ul> <li><a href="">Books</a></li>
<li><a href="">Members</a></li>
<li><a href="">Return</a></li>
</ul>
</nav>
CSS-Stile:
li { display: inline-block; display: inline; float: left; }
ul { background-color: #F2C777; } /*Force the list to expand to contain the links, add some padding around each link, and apply a link text color*/
li a { display: block; padding: 10px; color: #7C785B; } /*Cause the links to change color when hovered on*/
li a:hover { background-color: #EC8C65; }
ul { list-style-type: none; padding: 0; margin: 0; background-color: #F2C777; }
li { display: inline-block; }
li a { display: block; padding: 10px; color: #7C785B; }
li a:hover { background-color: #EC8C65; }
Ihre Chancen sein, ohne einen Code Hilfe zu bekommen ziemlich Null sind . Probieren Sie es aus und Hilfe wird kommen! – Gacci