Hallo,
ich bin neu hier und mit hmtl5 bin ich es auch.
Ich habe ein Problem mit dem Internet Explorer 11. Bei einer Testdatei zeigt er mir alles so an, wie ich will:
HTML
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8">
<style>
body { background-color:#1F5BA3;font-family:Arial;color:#fff; }
#logo { position:absolute; top:20px; left:20px; width:184px; height:94px;}
#menue {position:absolute;top:130px;left:20px;width:220px;border:0px solid #84B4ED;font-face:Verdana;overflow:visible;}
#menue ul { margin:0;padding:0; list-style: none; }
#menue li.haupt {position:relative; float:left; margin-bottom:-1px; width:184px; background:#173D7B; }
#menue li.haupt_hi {position:relative; float:left; margin-bottom:-1px; width:184px; background:#173D7B; }
#menue li.haupt_hi_s {position:relative; float:left; width:184px; background:#173D7B; }
#menue li.haupt_subm {position:relative; float:left; margin-bottom:-1px; width:184px; background:#173D7B;background-image:url(pf.gif); }
#menue li.haupt_hisubm {position:relative; float:left; margin-bottom:-1px; width:184px; background:#102C59;background-image:url(pf_u.gif); }
#menue li.sub1 {position:relative; float:left; margin-bottom:-1px; width:184px; background:#102C59; }
#menue li.sub1hi {position:relative; float:left; margin-bottom:-1px; width:184px; background:#102C59; }
#menue li.sub2 {position:relative; float:left; margin-bottom:-1px; width:184px; background:#39465B; }
#menue li ul { margin-top:-1px;}
#menue li a {display:block; color:#fff; text-decoration:none; border:1px solid #84B4ED; }
#menue li.haupt a, li.haupt_hi a, li.haupt_subm a, li.haupt_hisubm a {padding:3px 5px;font-weight:bold;font-size:10pt;}
#menue li.haupt_hi a {color:#84B4ED;}
#menue li.sub1 a {padding:3px 5px 3px 15px;font-weight:bold;font-size:9pt;}
#menue li.sub1hi a {padding:3px 5px 3px 15px;font-weight:bold;font-size:9pt;color:#84B4ED;}
#menue li.sub2 a {padding:3px 5px 3px 20px;font-size:8pt;}
#menue li a:hover {background-color:#84B4ED;color:#fff; }
#menue .startli {color:#B9D5F8;}
img { border:0px;}
</style>
<script type="text/javascript" src="js/scripts.js"></script>
<title>Titel</title>
</head>
<body>
<header id="logo"><a href="index.php"><img src="images/logo.gif" width="184" height="95" alt="logo" /></a></header>
<nav id="menue">
<ul>
<li class="haupt_hi"><a href="index.php">Home</a></li>
<li class="haupt_subm"><a href="link.php">link</a></li>
<li class="haupt_subm"><a href="link.php">link</a></li>
<li class="haupt_subm"><a href="link.php">link</a></li>
</nav>
</body>
</html>
Alles anzeigen
In meinem Ernstfall macht er aber etwas anderes, falsches. Ich werde noch wahnsinnig!!!
Schaut her:
HTML
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8">
<style>
body { background-color:#1F5BA3;font-family:Arial;color:#fff; }
/* Home */
#logo { position:absolute; top:20px; left:20px; width:184px; height:94px;}
#menue {position:absolute;top:130px;left:20px;width:220px;border:0px solid #84B4ED;font-face:Verdana;overflow:visible;}
#menue ul { margin:0;padding:0; list-style: none; }
#menue li.haupt_hi {position:relative; float:left; margin-bottom:-1px; width:184px; background:#173D7B; }
#menue li.haupt_subm {position:relative; float:left; margin-bottom:-1px; width:184px; background:#173D7B;background-image:url(pf.gif); }
#menue li ul { margin-top:-1px;}
#menue li a {display:block; color:#fff; text-decoration:none; border:1px solid #84B4ED; }
#menue li.haupt a, li.haupt_hi a, li.haupt_subm a, li.haupt_hisubm a {padding:3px 5px;font-weight:bold;font-size:10pt;}
#menue li.haupt_hi a {color:#84B4ED;}
#menue li a:hover {background-color:#84B4ED;color:#fff; }
#menue .startli {color:#B9D5F8;}
img { border:0px;}
</style>
<title>Titel</title>
</head>
<body>
<div id="logo"><a href="index.php"><img src="logo.gif" width="184" height="95" alt="Logo" /></a></div>
<nav id="menue">
<ul>
<li class="haupt_hi"><a href="index.php">Home</a></li>
<li class="haupt_subm"><a href="link1.php">Link 1</a></li>
<li class="haupt_subm"><a href="link2.php">Link 2</a></li>
<li class="haupt_subm"><a href="link3.php">Link 3</a></li>
<li class="haupt_subm"><a href="link4.php">Link 4</a></li>
<li class="haupt_subm"><a href="link5.php">Link 5</a></li>
<li class="haupt_subm"><a href="link6.php">Link 6</a></li>
</ul>
</nav>
</body>
</html>
Alles anzeigen
Ich finde den Fehler nicht! Und ich bin leider noch sehr neu in Sachen html5...