Forums Développement Multimédia

Aller au contenu

Problème menu spry

CODE HTML CSS

2 réponses à ce sujet

#1 soublast

    Ceinture Blanche

  • Members
  • Pip
  • 2 messages

Posté 30 April 2012 - 03:54 AM

Bonjour à vous tous,

J'en appelle à votre immense savoir du html pour règler mon problème. J'ai construit une site web, http://www.soccerjonquiere.org/, et tout s'affiche merveilleusement bien sous FireFox mais lorsque je le visionne sous IE 9, mon menu Spry ne s'affiche pas bien. Mes sous-menu vont s'afficher dans le coin en-haut à gauche.

J'avais trouver une solution mais malheureusement ca ne fonctionne plus. Bref à l'aide

Merci

Voici le code au cas-où...


@charset "UTF-8";
/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
/* Copyright © 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;
    margin-left: 100pt;
}
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp....-zindexbug.html */
ul.MenuBarActive
{
    z-index: 1000;
}
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
{
    list-style-type: none;
    font-size: 100%;
    position: relative;
    cursor: text;
    width: 7.15em;
    float: left;
    padding-left: 0px;
    text-align: center;
}
/* 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: 111px;
    position: absolute;
    left: -1000em;
    top: 33px;
}
/* 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: 0px;
 
}
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
{
}
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
{
    width : 8.2em
    position: absolute;
    margin: 95% 0 0 -5%;
}
/* 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: 5px;
    top: 0;
    color: #F00;
    background-color: #FF6;
}
/*******************************************************************************
DESIGN INFORMATION: describes color scheme, borders, fonts
*******************************************************************************/

/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
{
    border: 1px solid #CCC;
}
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
{
    display: block;
    cursor: pointer;
    background-color: #F00;
    color: #FFF;
    text-decoration: none;
    font-family: "Century Gothic";
    font-size: 9pt;
    line-height: normal;
    font-weight: 400;
    text-align: center;
    border: 1pt solid #FFF;
    padding: 5pt;
    vertical-align: middle;
}
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
{
    background-color: #FF6;
    color: #F00;
    font-family: "Century Gothic";
    font-size: 9pt;
}
/* 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: #FF6;
    color: #F00;
}
/*******************************************************************************
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
{
    color: #FFF;
    font-family: "Century Gothic";
    font-size: 9pt;
}
/* 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%;
    color: #F00;
}
/* 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: url(SpryMenuBarDownHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    color: #F00;
    background-color: 0;
}
/* 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: url(SpryMenuBarRightHover.gif);
    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: auto;
    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
    {
    f\loat: left;
    }
}
 


#2 dcz.switcher

  • Community Manager
  • PipPipPipPipPipPipPipPip
  • 2532 messages

Posté 30 April 2012 - 16:34 PM

Salut,

Il semble que le problème vienne de la librairie Spy (made in Adobe)

http://forums.adobe....message/4264732


En parcourant rapidement cette discussion, il est question d'un soucis de mode de compatibilité avec IE

Tente d'ajouter ce meta dans le header
<meta http-equiv="X-UA-Compatible" content="IE=edge" >

http://www.techsuppo...9-a-560897.html

Modifié par dcz.switcher, 20 July 2012 - 11:04 AM.
lien mort

"Ce que l'on conçoit bien s'énonce clairement et les mots pour le dire arrivent aisément"

embryon de site

#3 soublast

    Ceinture Blanche

  • Members
  • Pip
  • 2 messages

Posté 01 May 2012 - 02:32 AM

Merci pour la réponse, j'ai finalement arranger quelque chose en mettant dans la class ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
top: auto. Bon c'est décaller un peu mais pour l'instant c'est le mieux que je soit capable de trouver. J'ai testé les liens et rien marchait. Bref si quelqu'un à une meilleur idée je suis toujours ouvert.



1 utilisateur(s) li(sen)t ce sujet

0 membre(s), 1 invité(s), 0 utilisateur(s) anonyme(s)

authorised training centre

Centre de Formation Mediabox - Adobe et Apple Authorised Training Center.

Déclaré auprès de la Direction du Travail et de la Formation Professionnelle

Mediabox : SARL au capital de 62.000€ - Numéro d'activité : 11 75 44555 75 - SIRET : 49371646800035

MEDIABOX, 23, rue de Bruxelles, 75009 PARIS

FFP