prima Modul. Dennoch bräuchte ich einen kleinen Tipp.
Das Menü klappt wunderbar, allerdings sieht es im Firfox völlig anders aus als im IE7
(link http://www.medienscreening.de/mrAnalyst ... p?idcat=95)
Ich komme einfach nicht daj´hinter, was ich an der CSS Datei ändern muss, damit der IE es richtig anzeigt.
HILFFEEE -
Danke im Voraus...
Hier meine SpryMenuBarHorizontal.css
Code: Alles auswählen
@charset "UTF-8";
/*******************************************************************************
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;
list-style-type: none;
font-size: 100%;
cursor: default;
width: 1200px;
padding-top: 0;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
}
/* Menu items are a light gray block with padding and no text decoration */
/* wirkt zunächst auf Links-Stil des gesamtes Menüs */
ul.MenuBarHorizontal a
{
cursor: pointer;
color: #ffffff;
text-decoration: none;
background-image: url(bg_menuebutton.jpg);
background-repeat: repeat-x;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.8em;
font-style: normal;
font-weight: bold;
display: block;
}
/* Menu item containers, position children relative to this container and are a fixed width */
/* Menüpunkte Ebene 0 */
ul.MenuBarHorizontal li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
line-height:40px;
position: relative;
text-align: center;
cursor: pointer;
width: 12em;
float: left;
vertical-align: middle;
}
/* 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 - Container für die Untermenüpunkte eines übergeordneten Menüpunktes */
ul.MenuBarHorizontal ul
{
margin: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 20em;
position: absolute;
background-color: #1961b3;
filter:alpha(opacity=75);
zoom: 1;
opacity:0.75;
-moz-opacity:0.75;
padding:0;
top: 43px; /* sorgt für einen schmalen Rand zum übergeordneten Menüpunkt */
left: -1000em;
}
ul.MenuBarHorizontal ul li
{
line-height:30px;
text-align: left;
width: 20em;
text-indent: 20px;
display: block;
font-style: normal;
font-weight: normal;
}
ul.MenuBarHorizontal ul li a
{
background-image: none;
font-style: normal;
font-weight: normal;
}
ul.MenuBarHorizontal ul li a:Hover
{
background-image: none;
background-color: #88B9EE;
font-style: normal;
font-weight: bold;
}
/* 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;
background-image: url(bg_menuebutton.jpg);
background-repeat: repeat-x;
/*background: #000;*/
}
}
/*************************************************************************************/
/* Diese Klassen benötigt das JavaScript SpryMenuBar.js zur Generierung der Effekte */
/*************************************************************************************/
/* 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;
}
/* 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
{
left: auto;
}
/* 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;
}
/* 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: #33C;
color: #FFF;
}
/* 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%) */
/* Hover auf Hauptmenüpunkt, für den es Submenüpunkt egibt */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
{
background-image: url(bg_menuebutton.jpg);
background-repeat: repeat-x;
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%) */
/* Hover über ein Submenüpunkt */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
{
background-image: url(bg_menuebutton_submenu.jpg);
display: block;
cursor: pointer;
padding: 0.5em 0.75em;
color: #ffffff;
text-decoration: none;
background-image: url(bg_menuebutton_submenu.jpg);
background-repeat: repeat-x;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.7em;
font-style: normal;
font-weight: bold;
filter:alpha(opacity=75);
opacity:0.75;"
/*background-repeat: repeat-x;*/
background-position: 95% 50%;
}
Der IE mag die Notation left:auto; nicht, bzw. übersetzt diese anders als der Firefox.
Habe stattdessen einen Pixelwert statt "auto" genommen