ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
251
251
EMPFEHLEN
-
Hy habe folgendes problem, meine unternavi bleibt nicht sichtbar. kann mir jemand helfen, wie ich das mache, sitze schon ewig davor. wenn ich z.b. auf menschen klicke, dann bleibt navi und unter navi sichtbar, auch wenn ich den maus cursor unten links in die ecke stelle, aber wenn ich dann weiter klicke, z.b auf team, verschwindet meine navi sofort, wenn ich den maus zeiger nur ein wenig verschiebe. ich möchte aber, dass die navi immer aus geklappt bleibt, solange ich keinen neuen menüpunkt auswähle.
seht ihr den fehler im css******
gruß alex
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
//html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>navi ein faden</title> <link rel="stylesheet" type="text/css" href="style.css"/> </head> <body> <div class="menu"> <ul id="nav"> <li><a class="nav_2" href="#" tabindex="1">agentur</a> <ul> <li><a href="#" tabindex="2">konzept</a></li> <li><a href="#" tabindex="2">philosophie</a></li> <li><a href="#" tabindex="2">anspruch</a></li> </ul> </li> <li><a class="nav_2" href="#" tabindex="1">menschen</a> <ul> <li><a href="#" tabindex="2">geschichte</a></li> <li><a class="nav_2" href="#" tabindex="2">team</a> <ul> <li><a href="#" tabindex="3">test1</a></li> <li><a href="#" tabindex="3">test2</a></li> <li><a href="#" tabindex="3">test3</a></li> </ul> </li> </ul> </li> <li><a class="nav_2" href="#" tabindex="1">leistungen</a> <ul> <li><a href="#">angebot</a></li> <li><a href="#">portfolio</a></li> </ul> </li> <li><a class="nav_2" href="#" tabindex="1">projekte</a> <ul> <li><a href="#" tabindex="2">erfahrungen</a></li> <li><a class="nav_2" href="#" tabindex="2">look & taste</a> <ul> <li><a href="#" tabindex="3">test1</a></li> <li><a href="#" tabindex="3">test2</a></li> <li><a href="#" tabindex="3">test3</a></li> </ul> </li> </ul> </li> </ul> </div> </body> </html> /* CSS Document */ @charset "utf-8"; html {-webkit-animation: safariSelectorFix infinite 1s;} @-webkit-keyframes safariSelectorFix { 0% {zoom:1;} 100% {zoom:1;} } .menu {width:700px; margin:0; padding:30px 20px 0 20px;;} #nav {position:relative; font-size:12px; height:38px; z-index:100;} #nav, #nav ul {padding:0; margin:0; list-style:none; width:700px; text-align:left;} #nav ul {position:absolute; top:0; left:-9999px; height:0; -webkit-transition: height 0.6s; -moz-transition: height 0.6s; -o-transition: height 0.6s; transition: height 0.6s;} #nav li {display:inline; height:38px;} #nav li a {display:inline-block; height:38px; line-height:38px; padding:0 20px 0 10px; font-size:11px; color:#dedede; /*text-shadow: 1px -1px 1px #000;*/ text-decoration:none; font-weight:bold; outline:0; text-transform:lowercase; -webkit-transition: 0.6s; -moz-transition: 0.6s; -o-transition: 0.6s; transition: 0.6s;} #nav ul li a {font-size:0;} #nav li a.nav_2 {color:#dedede;} #nav li ul li a.nav_2 {font-size:11px; color:#dedede;} #nav li:hover > a {color:#f00;} #nav li:hover > a.nav_2 {color:#f00;} #nav li > a:active {color:#000;} #nav li > a.nav_2:active {color:#000;} #nav li > a:focus {color:#000; } #nav li > a.nav_2:focus {color:#000; } #nav li a:active + ul {top:20px; left:0;} #nav li a:active + ul > li > a {font-size:11px;height:38px;} #nav li a:focus + ul {top:20px; left:0;} #nav li a:focus + ul > li > a {font-size:11px;height:38px;} #nav li > ul:hover {top:20px; left:0;} #nav li > ul:hover > li > a {font-size:11px;height:38px;}
-
Da wirst du auf ein JS-gestütztes Klappmenü umsatteln müssen, wie z.B. http://www.stunicholls.com/menu/click_brick.html, denn das Original http://www.cssplay.co.uk/menus/csspl...-dropline.html zeigt das gleiche Verhalten.
Übrigens solltest du das Copyright des Autors (Stu Nicholls) beachten, und es beim Veröffentlichen nicht aus dem Stylesheet entfernen!
Zitat von http://www.cssplay.co.uk/menus/cssplay-click-dropline.html
Geändert von spicelab (17.08.11 um 07:11 Uhr)
Ähnliche Themen
-
Form1 soll Form2 Öffnen und sich selbst dann Schließen aber Form2 soll offen bleiben!
Von beyoNd im Forum .NET Windows FormsAntworten: 13Letzter Beitrag: 05.10.11, 12:50 -
Folie soll stehen bleiben
Von exhubiranta im Forum Flash PlattformAntworten: 0Letzter Beitrag: 14.09.06, 20:46 -
Toogle soll geöffnet bleiben
Von MirakFH im Forum Javascript & AjaxAntworten: 2Letzter Beitrag: 14.01.06, 16:54 -
bei rollOver sollen beide Bilder übereinander sichtbar bleiben
Von Mag_u im Forum Flash PlattformAntworten: 2Letzter Beitrag: 05.11.05, 16:47 -
Eingabe soll stehen bleiben
Von Snodri im Forum PHPAntworten: 4Letzter Beitrag: 19.07.05, 12:01





Zitieren

Login





