Anzeigen:
Results 1 to 2 of 2

Thread: Spry Menü wird im IE nicht korrekt angezeigt

  1. #1

    Spry Menü wird im IE nicht korrekt angezeigt

    Hallo!
    Ich bin noch ganz neu, hier im Forum aber auch was das Programmieren angeht.
    Meine erste Website habe ich mit Dreamweaver CS5 erstellt und dort ein Spry Menü verwendet.
    Im Firefox wird auch alles korrekt angezeigt, aber im IE verrutscht das Untermenü ganz nach links an den Rand.
    Am Anfang war dort nur ein weißer Balken zu sehen, den habe ich jedoch mit Hilfe eines alten Beitrags hier beheben können.

    Kann mir jemand helfen, wie ich das Menü auch im IE an korrekter Position anzeigen kann?

    Hier der Link zu der Seite: www.katharinafreers-grafikdesign.de

    und hier die html Datei:
    HTML Code:
    <!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>News</title>
    <link rel="stylesheet" type="text/css" href="css/lightbox.css"/>
    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript" src="js/lightbox.js"></script>
    <style type="text/css">
    body {
        background-image: url(bilder/Holzlang.jpg);
        background-repeat: repeat-x;
    }
    #wrap {
        width: 955px;
        height:800px;
        margin-top: 30px;
        margin-right: auto;
        margin-left: auto;
        text-align:left;
        background-image: url(bilder/Hintergrundglas.png);
        background-repeat:no-repeat;
    }
    #header {
        height: 160px;
    }
    #MenuBar1    {
        padding-top: 30px;
        margin-left: 174px;
        float:left;
    }
    
    .MenuBarHorizontal2    {
        float:left;    
        padding-top: 24px;
        margin-left:-35px;
    }
    #wrap #header #MenuBar2 li {
        display: inline;
        margin-left: 40px;
    }
    #wrap #header #MenuBar1 li .MenuBarSubmenuVisible li {
        top: 20px;
        margin-top: 10px;
        margin-left:35px;
    }
    body,td,th {
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        font-size: 13px;
        color: #FFF;
    }
    a {
        font-size: 13px;
        color: #FFF;
    }
    a:link {
        text-decoration: none;
    }
    a:visited {
        text-decoration: none;
    }
    a:hover {
        text-decoration: none;
        color: #333;
    }
    a:active {
        color: #333;
    }
    .picture {
        width:451px;
        height:367px;
        margin-top:-10px;
        margin-left:153px;    
    }
    .facebook {
        float:left;
        margin-top:23px;
        margin-left:65px;
    }
    .text {
        background-image: url(bilder/Glas1.png);
        background-repeat:no-repeat;
        height:200px;
        margin-top:-60px;
        margin-left:600px;
        padding-top:5px;
        padding-left:18px;
        text-indent: 90;
    }
    .platz    {
        width:125px;
        height:130px;
        float:left;
        background-image: url(bilder/platzhalter.png);
    }
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    
    <style type="text/css">
    h3 {
        font-size: 18px;
        line-height: 0px;
        text-indent: 0;
    }
    </style>
    </head>
    
    <body>
        <div id="wrap">
            
            <div id="header">
                
                <ul id="MenuBar1" class="MenuBarHorizontal">
                    <li><a class="MenuBarItemSubmenu">Portfolio</a>
                        <ul>
                            <li><a href="Studium.html">Studium</a></li>
                            <li><a href="FreieArbeiten.html">Freie Arbeiten</a></li>
                        </ul>
                    </li>
                    <li><a href="UeberMich.html">&Uuml;ber Mich</a></li>
                </ul>
    
        <div class="platz"><a href="index.html"><img src="bilder/platzhalter.png" alt="Startseite" width="125" height="130" border="none" /></a></div>
    
                <ul id="MenuBar2" class="MenuBarHorizontal2">
                    <li><a href="Kontakt.html">Kontakt</a></li>
                    <li><a href="Impressum.html">Impressum</a></li>
                    <li><a href="#">News</a></li>
                </ul>
                
                <div class="facebook"><a href="http://www.facebook.com" target="_blank"><img src="bilder/facebookButton.png" width="26" height="26" alt="Facebook Button" border="none" /></a></div>
            </div>
                    
                <div class="picture"><img src="bilder/NewsFitness.png" width="550" height="448" alt="Fitnessstudio" /></div>
                
                <div class="text">
                    <h3>News</h3>
                    Hier finden Sie eine Auswahl meiner<br /> aktuellen Arbeiten:<br /><br />
                        <a href="bilder/Fotografie/fitness1.jpg" rel="lightbox[gallery1]" title="Fotoshooting - GoSports">Fotoshooting f&uuml;r das Fitnessstudio <br />GoSports in Elmshorn</a>
                </div>
            
            <a href="bilder/Fotografie/fitness2.jpg" rel="lightbox[gallery1]" title="Fotoshooting - GoSports"></a>
            <a href="bilder/Fotografie/fitness3.jpg" rel="lightbox[gallery1]" title="Fotoshooting - GoSports"></a>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>    
    </html>
    und die CSS:
    Code:
    @charset "UTF-8";
    
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    
    /*******************************************************************************
    
     LAYOUT INFORMATION: describes box model, positioning, z-order
    
     *******************************************************************************/
    
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
    {
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: auto;
    }
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
    {
        z-index: 1000;
    }
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
    {
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 9em;
        float: left;
    }
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
    {
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 15em;
        height: 30em;
        position: absolute;
        left: -1000em;
        background-image: url(../bilder/tuerkisRibbon.png);
        background-repeat: no-repeat;
        background-position: left;
        margin-top:-205px;
    }
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
    {
        top: 0px;
        left: -50px;
        padding-top:220px;
        padding-left:5px;
    }
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
    {
        width: 18.2em;
    }
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
    {
        position: absolute;
        margin: -5% 0 0 95%;
    }
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
    {
        left: auto;
        top: 0;
    }
    
    /*******************************************************************************
    
     DESIGN INFORMATION: describes color scheme, borders, fonts
    
     *******************************************************************************/
    
    
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
    {
        display: block;
        cursor: pointer;
        background-color: transparent;
        padding: 0.5em 0.75em;
        color: #FFF;
        text-decoration: none;
    }
    
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
    {    
        text-decoration: none;
        background-image: none;
        background-repeat: no-repeat;
    }
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
    {
        background-color: transparent;
        color: #333;
    }
    
    /*******************************************************************************
    
     SUBMENU INDICATION: styles if there is a submenu under a given menu item
    
     *******************************************************************************/
    
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
    {
        background-image: none;
        background-repeat: no-repeat;
        background-position: 95% 50%;
        color: #FFF;
    }
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
    {
        background-image: url(SpryMenuBarRight.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    }
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
    {
        background-image: none;
        background-repeat: no-repeat;
        background-position: 95% 50%;
    }
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    {
        background-image: ;
        background-repeat: no-repeat;
        background-position: 95% 50%;
    }
    
    /*******************************************************************************
    
     BROWSER HACKS: the hacks below should not be changed unless you are an expert
    
     *******************************************************************************/
    
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
    {
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
        
    }
    
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    {
        ul.MenuBarHorizontal li.MenuBarItemIE
        {
            display: inline;
            f\loat: left;
        }
        
    }
    Lieben Gruß
    Wolkenfuss

  2. #2

    AW: Spry Menü wird im IE nicht korrekt angezeigt

    Anzeigen:
    Die Frage hat sich erledigt!
    Ich habe eine komplett neue Navigation erstellt ohne SpryMenü.
    Jetzt funktioniert es auch im IE.

Similar Threads

  1. Anfänger: spry menüleiste- untermenü wird nicht angezeigt
    By biya in forum Adobe Dreamweaver
    Replies: 4
    Last Post: 22.12.2011, 15:25
  2. Dreamweaver CS5 Seite wird in Safari nicht korrekt angezeigt
    By birdiemaus in forum Adobe Dreamweaver
    Replies: 2
    Last Post: 08.02.2011, 22:37
  3. Layout: Spry-Menu funktioniert mit IE 8 nicht korrekt
    By oliveramberg in forum Adobe Dreamweaver
    Replies: 1
    Last Post: 21.05.2009, 13:50
  4. Anfänger: Spry Menü wird ONLINE nicht (falsch) angezeigt...
    By DaDuke in forum Adobe Dreamweaver
    Replies: 4
    Last Post: 08.08.2007, 10:11
  5. Layout: PopUp Menü wird nicht korrekt angezeigt
    By HackTack30 in forum Adobe Dreamweaver
    Replies: 1
    Last Post: 24.05.2005, 15:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •