Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<script type="text/javascript">
$('#dropdown_ul').mouseover(function() {
$('#dropdown_li').fadeIn('slow');
});
</script>
<ul id="dropdown_ul">
<a href="#">abc</a>
<li id="dropdown_li"><a href="#">abc</a></li>
<li id="dropdown_li"><a href="#">abc</a></li>
</ul>
ul {
margin:0;
padding:0;
z-index:1000;
height:40px;
}
#dropdown_li {
width:100px;
margin-top:20px;
overflow:hidden;
z-index:1000;
display:none;
}
<ul id="dropdown_ul">
<a href="#">abc</a>
<li id="dropdown_li"><a href="#">abc</a></li>
<li id="dropdown_li"><a href="#">abc</a></li>
</ul>
Und geht es das ich statt "#dropdown_li" einfach "li" verwende?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Meine Seite</title>
<style type="text/css">
ul {
margin:0;
padding:0;
z-index:1000;
height:40px;
}
#dropdown_ul li {
width:100px;
margin-top:20px;
overflow:hidden;
z-index:1000;
display:none;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#dropdown_ul').mouseover(function() {
$(this).children('li').fadeIn('slow');
});
});
</script>
</head>
<body>
<ul id="dropdown_ul">
<a href="#">abc</a>
<li><a href="#">abc</a></li>
<li><a href="#">abc</a></li>
</ul>
</body>
</html>