Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> 3 problemy z Internet Explorerem
starach
post 9.05.2008, 18:58:42
Post #1





Grupa: Zarejestrowani
Postów: 999
Pomógł: 30
Dołączył: 14.01.2007
Skąd: wiesz ?

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


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>
Go to the top of the page
+Quote Post
tom170
post 26.05.2008, 14:29:06
Post #2





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 6.05.2008

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


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]-->
Go to the top of the page
+Quote Post
.radex
post 26.05.2008, 15:54:33
Post #3





Grupa: Zarejestrowani
Postów: 1 657
Pomógł: 125
Dołączył: 29.04.2006

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


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]-->).


--------------------
blog | Tadam — minutnik do Pomodoro na Maka :)
Go to the top of the page
+Quote Post
nevt
post 26.05.2008, 16:32:29
Post #4





Grupa: Przyjaciele php.pl
Postów: 1 595
Pomógł: 282
Dołączył: 24.09.2007
Skąd: Reda, Pomorskie.

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


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.


--------------------

-
Oh no, my young coder. You will find that it is you who are mistaken, about a great many things... -
Go to the top of the page
+Quote Post
nevt
post 27.05.2008, 07:14:35
Post #5





Grupa: Przyjaciele php.pl
Postów: 1 595
Pomógł: 282
Dołączył: 24.09.2007
Skąd: Reda, Pomorskie.

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


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....


--------------------

-
Oh no, my young coder. You will find that it is you who are mistaken, about a great many things... -
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 - 17:10