Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML/CSSJ z-position: 1, IE inaczej interpretuje niż FF pomocy
neslo
post 18.07.2007, 17:52:38
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 1.06.2007

Ostrzeżenie: (0%)
-----


Na stronie http://skierniewice.net.pl/_olo/index.php jest menu. Chce żeby było widoczne nad wszystkim po rozwinięciu. IE pokazuje obie warstwy i jest bałagan, FF pokazuje ok. Podam css news-a i css menu. Ciekawe jest że jak ustawię na news--z-index: -2 a w menu z-index: -1 to FF nie pokazuje news-a a IE działa wyśmienicie. Wariactwo. jak zoptymalizoważ i pod IE i pod FF?
Kod
#news .news {
background: transparent;
position: relative;
margin: 0 auto 25px auto;
width: 400px;
z-index: auto
}

Kod
.ddmx {
    font: 11px tahoma;
}
.ddmx .item1,
.ddmx .item1:hover,
.ddmx .item1-active,
.ddmx .item1-active:hover {
    padding: 3px 10px 3px 10px;
    border-bottom: 1px solid #cccccc;
    background: #000000;
    font: 12px arial;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    position: relative;
}
.ddmx .item2,
.ddmx .item2:hover,
.ddmx .item2-active,
.ddmx .item2-active:hover {
    padding: 3px 8px 4px 8px;
    font: 11px tahoma;
    color: #000000;
    font-weight: bold;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    position: relative;
    z-index: 500;
}
.ddmx .item2 {
    background: #e5e1da;
}
.ddmx .item2:hover,
.ddmx .item2-active,
.ddmx .item2-active:hover {
    background: #ffffff;
}
.ddmx .arrow,
.ddmx .arrow:hover {
    padding: 3px 16px 4px 8px;
}
.ddmx .item2 img,
.ddmx .item2-active img{
    position: absolute;
    top: 4px;
    right: 1px;
    border: 0;
}
.ddmx .section {
    border: 1px solid #b8b4ae;
    position: absolute;
    visibility: hidden;
    z-index: -1;
}

.ddmx .bottom,
.ddmx .bottom:hover {
    border-bottom: 1px solid #000000;
}

* html .ddmx td { position: relative; } /* ie 5.0 fix */

I jeszcze jedno jak odrzucę do kodu html linijke
Kod
ddmx.fixIeSelectBoxBug = true;

IE nic nie pokazuje i FF też
a to skrypt umieszczony na stronce
  1. <script type="text/javascript">
  2. var ddmx = new DropDownMenuX('menu1');
  3. ddmx.type = "vertical";
  4. ddmx.delay.show = 0;
  5. ddmx.delay.hide = 400;
  6. ddmx.position.levelX.left = 2;
  7. ddmx.init();
  8. </script>


a na innych podstronach np edukacja menu jest ok tylko pod IE nie podswietlaja sie do konca rubryki. Uwaga dziala tylko edukacja
Go to the top of the page
+Quote Post
deirathe
post 18.07.2007, 22:27:00
Post #2





Grupa: Zarejestrowani
Postów: 426
Pomógł: 32
Dołączył: 24.05.2007

Ostrzeżenie: (0%)
-----


Posprawdzaj w kodzie, czy tam gdzie masz z-index wszędzie jest position, i ponumeruj dla newsa
  1. z-index:0
a dla menu
  1. z-index:10;
i wzwyż i zobacz czy zadziała

Ten post edytował deirathe 18.07.2007, 22:27:24


--------------------
Kawałek mojego blogu
Everything should be as simple as possible but not simpler.
A Einstein
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 18.07.2025 - 00:29