M
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<ul id="main">
<li id="current"><a href="#" id="home"><span>home</span></a></li>
<li><a href="#" id="sport"><span>sport</span></a>
<ul id="sportsub">
<li><a href="#" id="laufen"><span>laufen</span></a></li>
<li><a href="#" id="studiotraining"><span>studiotraining</span></a></li>
<li><a href="#" id="funsport"><span>funsport</span></a></li>
<li><a href="#" id="laufstrecken"><span>laufstrecken</span></a></li>
<li><a href="#" id="studiofinder"><span>studiofinder</span></a></li>
</ul>
</li><!-- hier endet der Menüpunkt "sport" -->
<li><a href="#" id="food"><span>food</span></a></li>
<li><a href="#" id="health"><span>health</span></a></li>
<li><a href="#" id="sex"><span>sex</span></a></li>
<li><a href="#" id="travel"><span>sex</span></a></li>
</ul>
ul#main li ul {
display:none;
}
ul#main li:hover ul {
display:block;
position:absolute;
left:150px;
top:100px;
}
ul#main {
position:relative;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>CSS-Navigation</title>
<style type="text/css">
div#wrapper {
width:900px;
margin:0 auto;
}
div#header {
background-image:url(../bilder%20f%C3%BCr%20HA/food.gif);
height:100px;
}
ul#main {
position:relative;
}
ul#main, ul#main ul {
margin:0;
padding:0;
}
ul#main li {
display:inline;
list-style:none;
}
ul#main a {
float:left;
width: 150px;
height:100px;
margin:3px 0 0 0;
}
ul#main a span, div#header span{
display:none;
}
ul#main li a#home:link, ul#main li a#link_1:visited {
background-image:url(home.jpg);
}
ul#main li a#home:hover, ul#main li#current a#home {
background-image:url(home_aktiv.gif);
}
ul#main li a#sport:link, ul#main li a#sport:visited {
background-image:url(sport.gif);
}
ul#main li a#sport:hover, ul#main li#current a#sport {
background-image:url(sport_aktiv.gif);
}
ul#main li a#food:link, ul#main li a#food:visited {
background-image:url(food.gif);
}
ul#main li a#food:hover, ul#main li#current a#food {
background-image:url(food_aktiv.gif);
}
ul#main li a#health:link, ul#main li a#health:visited {
background-image:url(health.gif);
}
ul#main li a#health:hover, ul#main li#current a#health {
background-image:url(health_aktiv.gif);
}
ul#main li a#sex:link, ul#main li a#sex:visited {
background-image:url(sex.gif);
}
ul#main li a#sex:hover, ul#main li#current a#sex {
background-image:url(sex_aktiv.gif);
}
ul#main li a#travel:link, ul#main li a#travel:visited {
background-image:url(travel.gif);
}
ul#main li a#travel:hover, ul#main li#current a#travel {
background-image:url(travel_aktiv.gif);
}
ul#main li ul {
display:none;
}
ul#main li:hover ul {
display:block;
position:absolute;
left:150px;
top:100px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header"><span>bild</span></div>
<ul id="main">
<li id="current"><a href="#" id="home"><span>home</span></a></li>
<li><a href="#" id="sport"><span>sport</span></a>
<ul id="sportsub">
<li><a href="#" id="laufen"><span>laufen</span></a></li>
<li><a href="#" id="studiotraining"><span>studiotraining</span></a></li>
<li><a href="#" id="funsport"><span>funsport</span></a></li>
<li><a href="#" id="laufstrecken"><span>laufstrecken</span></a></li>
<li><a href="#" id="studiofinder"><span>studiofinder</span></a></li>
</ul>
</li>
<li><a href="#" id="food"><span>food</span></a></li>
<li><a href="#" id="health"><span>health</span></a></li>
<li><a href="#" id="sex"><span>sex</span></a></li>
<li><a href="#" id="travel"><span>sex</span></a></li>
</ul>
</div>
</body>
</html>