Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: 3 problemy z Internet Explorerem
Forum PHP.pl > Forum > Po stronie przeglądarki > CSS
starach
Witam.
Zrzuty ekranu:
- Mozilla Firefox
- Internet Explorer
Legenda IE SS:
1) Co jest grane dlaczego dwa inputy znikają ?
2) Pewnie to specyfika IE ale chciałbym jakoś uzyskać pełną ramkę,
- a jeśli to nie jest możliwe jak ustawić żeby w IE nie wyświetlała się też ramka dolna a w pozostałych żeby wyświetlała się cała ramka.
3) Chciałbym aby obie kolumny miała taką samą wysokość zależna rzecz jasna od zawartości lewej kolumny.
CSS:
  1. div.registration { width:100%; margin:10px 0 10px 0; padding:0; }
  2. div.registration-left { float:left; width:47%; margin:0 1% 0 2%; padding:0; }
  3. div.registration-right { float:left; width:47%; margin:0 2% 0 1%; padding:0; }
  4.  
  5. div.registration fieldset { width:96%; padding:7px 2% 7px 2%; margin:0 0 5px 0; }
  6. div.registration legend { font-size:12px; font-weight:bold; }
  7. div.registration fieldset label { float:left; margin:0 0 5px 0; font-size:11px; text-align:left; overflow:hidden; text-align:justify; }
  8. div.registration fieldset.row label { width:100%; }
  9. div.registration fieldset.col label { width:50%; }
  10. div.registration fieldset label span { float:left; line-height:17px; }
  11. div.registration fieldset label input { float:left; width:95%; height:15px; font-size:12px; line-height:9px; background:none; }
  12. div.registration fieldset label input.username { width:98%; }
  13. div.registration fieldset label.chbx { cursor:pointer; }
  14. div.registration fieldset label.chbx input { float:left; width:14px; margin:0 3px 0 3px; padding:0; }
  15. div.registration fieldset label.select { float:left; width:100%; }
  16. div.registration fieldset label.select select { float:left; width:100%; background:none; }
  17. div.registration fieldset.regulations_content div { width:100%; height:356px; margin:0 0 10px 0; overflow:scroll; background:none; border:1px solid #000; }
  18. div.registration fieldset.regulations_content label { font-weight:bold; }
  19.  
  20. div.registration input.btn_submit { float:none; width:90%; height:21px; margin:0 auto; margin-top:10px; font-size:12px; line-height:12px; background:none; }
HTML:
  1. <div class="registration">
  2. <form method="post" action="#">
  3. <div class="registration-left">
  4. <fieldset class="row">
  5. <legend>User name:</legend>
  6. <label>Enter user login</label>
  7. <label><input class="username" type="text" name="username" value="" /></label>
  8. <fieldset class="col">
  9. <legend>Password:</legend>
  10. <label>Enter password</label>
  11. <label>Retype password</label>
  12. <label><input type="password" name="password1" /></label>
  13. <label><input type="password" name="password2" /></label>
  14. <fieldset class="col">
  15. <legend>Email address:</legend>
  16. <label>Enter email address</label>
  17. <label>Confirm email address</label>
  18. <label><input type="text" name="email" value="" /></label>
  19. <label><input type="text" name="emai2" value="" /></label>
  20. <fieldset class="row">
  21. <legend>Receive e-mails from:</legend>
  22. <label>Admins and users may want to contact you via e-mail sometime.</label>
  23. <label class="chbx"><input type="checkbox" name="emails_admin" checked> Receive e-mails from admins</label>
  24. <label class="chbx"><input type="checkbox" name="emails_users" checked> Receive e-mails from other users</label>
  25. <fieldset class="row">
  26. <legend>Timezone:</legend>
  27. <label class="select">Below you can adjust timezone settings</label>
  28. <label class="select"><select></select></label>
  29. </div>
  30. <div class="registration-right">
  31. <fieldset class="regulations_content">
  32. <legend>Regulations</legend>
  33. <label><div></div></label>
  34. <label class="chbx"><input type="checkbox" name="regulation"> I've read and i agree with terms and rules</label>
  35. </div>
  36. <input class="btn_submit" type="submit" value="Register">
  37. </form>
  38. </div>
tom170
W IE się coś inaczej liczy i jesli wyjdziesz poza width elementem a masz na nim overflow:hidden to ci go ukryje
zmniejsz szerokość tych 2 inputów i zobacz czy sie pojawią smile.gif

są jakies metody do nadpisywania *.css tylko dla IE7 dajac mu poprawne dane zrob sobie dodatkowy plik i poszukaj na googlach

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="iehacks-7.css" />

<![endif]-->
.radex
IE jeśli nie masz Strict (czy jakoś tak - nie pamiętam jak to było) używa innego box model, dlatego źle traktuje padding, margin, width, height. Proponowałbym conditional comments (tak jak kolega powyżej zaproponował - <!--[if IE]> ... <![endif]-->).
nevt
zajżyj TUTAJ a doznasz oświecenia, że jest IE6 ... długo, długo nic ... potem IE7, długo, długo nic a dopiero na końcu normalne przeglądarki które wyświetlają XHTML + CSS zgrubsza zgodnie ze standardami.
nevt
Cytat
Ale jaki to ma związek z tematem?

kolego radex_p - a zajrzałeś w ogóle pod link który podałem? tam są właśnie podane błędy oraz różnice w interpretacji CSS dla większości przeglądarek, wraz ze sposobami naprawy lub obejścia problemów....
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.