Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [CSS][HTML]Błedne miniatury
kpt_lucek
post 9.12.2011, 22:20:41
Post #1





Grupa: Zarejestrowani
Postów: 428
Pomógł: 77
Dołączył: 10.07.2011
Skąd: Warszawa

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


Witam!

Mam pewien problem, otóż google chrome błednie wyświetla miniatury na stronie tworzonej przeze mnie, (zaznaczam iż miniatury występują w takich rozmiarach - skrypt php je tworzy) i... IE (o dziwo), oraz FireFox wyświetlają je tak jak powinny być wyświetlane (fotka 2), lecz chrome jest jakiś oporny (fotka 1).

Czy ktoś borykał się z podobnym problemem?

Mam nadzieję że pomożecie mi rozwikłać ten problem.

1.
2.


Dzięki i pozdrawiam

Ten post edytował kpt_lucek 9.12.2011, 22:20:55


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


Cytat
There is a Bundle for that
Lukas Kahwe Smith - October 31th, 2014
Go to the top of the page
+Quote Post
wookieb
post 9.12.2011, 22:23:15
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




I twierdzisz, że jesteśmy w stanie coś powiedzieć bez kodu?
Brawo za brak umiejętności rozsądnego myślenia.


--------------------
Go to the top of the page
+Quote Post
croc
post 9.12.2011, 22:24:07
Post #3





Grupa: Zarejestrowani
Postów: 706
Pomógł: 108
Dołączył: 12.03.2010

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


Łatwiej będzie nam pomóc, jeśli pokażesz kod.
Go to the top of the page
+Quote Post
kpt_lucek
post 9.12.2011, 22:28:00
Post #4





Grupa: Zarejestrowani
Postów: 428
Pomógł: 77
Dołączył: 10.07.2011
Skąd: Warszawa

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


  1. <div class="item_stock_img">
  2. <div id="test_id">
  3. <a href="/projekt_SW/upload/images/full/<?echo $sql[first_img];?>.jpg" class="laduj"> <img class="img_cur gr1" src="/projekt_SW/upload/images/sell/200/<?echo $sql[first_img];?>.jpg" alt="-"/></a>
  4. </div>
  5. </div>

  1. $thums = explode(", ", $sql[thu]);
  2. $qa = 0;
  3. while($thums[$qa])
  4. {
  5. echo "<img class=\"th\" src=\"/projekt_SW/upload/images/sell/64/".$thums[$qa].".jpg\" alt=\"-\"/>\n";
  6. $qa++;
  7. }


  1. .th{
  2. width: 64px;
  3. height: 100%;
  4. display: inline;
  5. }
  6.  
  7. .item_stock_img{
  8. float: left;
  9. -webkit-border-radius: 10px;
  10. -moz-border-radius: 10px;
  11. border-radius: 10px;
  12. border: 10px;
  13. width: 212px;
  14. }
  15.  
  16. .item_stock_img img{
  17. padding-top: 5px;
  18. padding-left: 5px;
  19. }
  20.  
  21. .img_cur{
  22. width: 200px;
  23. height: 100%;
  24. }
  25.  


To wszystko jeżeli chodzi o ten fragment kodu.

Ten post edytował kpt_lucek 9.12.2011, 22:29:40


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


Cytat
There is a Bundle for that
Lukas Kahwe Smith - October 31th, 2014
Go to the top of the page
+Quote Post
croc
post 9.12.2011, 22:29:32
Post #5





Grupa: Zarejestrowani
Postów: 706
Pomógł: 108
Dołączył: 12.03.2010

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


Usuń height: 100% z .img_cur.
Go to the top of the page
+Quote Post
kpt_lucek
post 9.12.2011, 22:31:34
Post #6





Grupa: Zarejestrowani
Postów: 428
Pomógł: 77
Dołączył: 10.07.2011
Skąd: Warszawa

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


Usunąłem także z .th .


Wielkie dzięki, powiem szczerze nie wiem czemu psuło mi to wygląd strony...


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


Cytat
There is a Bundle for that
Lukas Kahwe Smith - October 31th, 2014
Go to the top of the page
+Quote Post
croc
post 9.12.2011, 22:34:35
Post #7





Grupa: Zarejestrowani
Postów: 706
Pomógł: 108
Dołączył: 12.03.2010

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


Chrome widocznie interpretuje procentowy height wewnątrz tabeli jako procent z wysokości komórki. Moim zdaniem to jest właśnie prawidłowe zachowanie.
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: 19.07.2025 - 17:26