Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> IE exceptions
flashdev
post
Post #1





Grupa: Zarejestrowani
Postów: 812
Pomógł: 117
Dołączył: 2.12.2008

Ostrzeżenie: (10%)
X----


  1. <div style="width:200px; background-color:#f00;">
  2. text
  3. <div style="width:100px; height:100px; background-color:#ff0; margin:20px auto 20px auto;">
  4. text
  5. </div>
  6. </div>


Opera, Chrome etc.
(IMG:http://img2.vpx.pl/up/20090618/mlopera.png)

IE
(IMG:http://img2.vpx.pl/up/20090618/mlie.png)

Jak to jakoś sensownie rozwiązać?


ps. Będzie tu kiedyś hosting grafiki zintegrowany z forum?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Crozin
post
Post #2





Grupa: Zarejestrowani
Postów: 6 476
Pomógł: 1306
Dołączył: 6.08.2006
Skąd: Kraków

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


Jeżeli kod z 3-ego postu to pełen kod dokumentu to IE przejdzie w quirks-mode. Sprawdź sobie:
Kod
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Przykładowy dokument</title>
    
    <style type="text/css"></style>
    <script type="text/javascript"></script>
</head>
<body>
<div style="width:200px; background-color:#f00; text-align:center;">
text
<ul style="width:100px; height:100px; background-color:#ff0; margin:20px auto 20px auto;">
<li>opt 1</li>
<li>opt 2</li>
<li>opt 3</li>
</ul>
</div>    
</body>
</html>
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 17.10.2025 - 22:14