Ocena wątku:
- 0 głosów - średnia: 0
- 1
- 2
- 3
- 4
- 5
Problem z wyświetlaniem w IE
|
Liczba postów: 47
Liczba wątków: 23
Dołączył: 05-09-2009
Reputacja:
0
Jestem początkującym webmasterem i mam pewien problem z poprawnym wyświetlaniem strony w IE. W FF wyświetla mi się normalnie:
http://heavy1123.files.wordpress.com/2009/07/screenhunter_01-sep-04-18-58.jpg
a gdy otworzę ją w IE ucina nagłówek, powiększa litery i "wybiera" inną czcionkę:
http://heavy1123.files.wordpress.com/2009/07/screenhunter_02-sep-04-18-58.jpg
Czy ktoś może mi powiedzieć, jak zrobić, by strona wyświetlała się w IE poprawnie ?
Liczba postów: 1,054
Liczba wątków: 0
Dołączył: 28-05-2009
Reputacja:
22
Dla tego, że nie stosujesz standardowej np. Arial, Tahoma, Verdana.
A dlaczego ucina Ci nagłówek? Bo w Mozilli i Operze używając padding skracasz wysokość. A w IE musi ona być zostawiona... Ehhh, dlatego unika się paddingu lub robi osobny styl dla IE. To wszystko. ;]
Liczba postów: 47
Liczba wątków: 23
Dołączył: 05-09-2009
Reputacja:
0
Jestem bardzo początkującym webmasterem i czy ktoś może mi powiedzieć jak zrobić styl dla IE (czym on się różni od podstawowego) ?
Liczba postów: 99
Liczba wątków: 22
Dołączył: 03-09-2009
Reputacja:
2
Najlepiej w Headerze daj:
Kod: <!--[if IE ]>
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->
zrób osobny styl ie.css i tam nadaj inne atrybuty tego samego diva, pamietaj aby nazwa diva była dokładnie taka sama
Liczba postów: 16
Liczba wątków: 1
Dołączył: 02-08-2009
Reputacja:
0
http://www.webmastertalk.pl/php-skrypt-styli-t-2119.html
Liczba postów: 47
Liczba wątków: 23
Dołączył: 05-09-2009
Reputacja:
0
Nie za bardzo znam się na przerabianiu stylów. Czy ktoś może mi powiedzieć/pokazać jak powinien wyglądać poprawiony styl.
Tutaj oryginalny styl.css:
Kod: /*
project: small corporation
author: luka cvrk (www.solucija.com)
*/
*{ margin: 0; padding: 0; }*
body {
font: .75em "Trebuchet MS", Tahoma, Verdana, Arial, Helvetica, sans-serif;
line-height: 1.6em;
background: #fff;
color: #444;
}
a { color: #E60000; background: inherit; text-decoration: none; }
a:hover { color: #AA0001; background: inherit; text-decoration: underline; }
p { margin: 0 0 15px 0; }
h1 { margin: 20px 0 0; }
h1 a { background: inherit; }
img { border: 0; }
h2 { font: normal 1.6em "Trebuchet MS", Arial, Sans-Serif; margin: 0 0 12px; }
h3 a { font-size: 1em; }
#main h3 a { font-size: .84em; color: #808080; font-weight: normal; text-transform: uppercase; }
#content { width: 940px; margin: 0 auto; padding: 20px 0 0 0; border-top: 5px solid #eee; }
#top{ float: right; text-align: right; }
#top a { color: #808080; margin: 0 0 0 13px; background: #fff url(images/toparrow.png) no-repeat center left; padding: 0 0 0 12px; }
input.searchfield { width: 175px; padding: 6px; border: 2px solid #ccc; font-size: .9em; }
input.searchbutton { background: #E60000; border: 0; padding: 6px; color: #fff; font-weight: bold; font-size: .9em; }
#logo { float: left; color: #808080; line-height: 25px; }
#menu { height: 35px; padding: 7px 0 0 0; clear: both; margin: 0 0 18px; background: #fff url(images/menubg.gif) repeat-x; }
#menu li { font-size: 1.1em; display: inline; text-transform: uppercase; }
#menu li a { margin: 0 25px 0 10px; color: #808080; }
#menu li a:hover { color: #444; }
#left { background: #eee; clear: left; float: left; width: 260px; padding: 10px 15px; margin: 0 0 20px; }
#left img { margin: 0 0 8px; }
#left li { list-style: none; }
#left li a { color: #787A8F; font-weight: bold; background: url(images/arrow.gif) no-repeat center left; padding: 0 0 0 12px; }
#main { float: left; width: 655px; margin: 0 0 20px; }
#main img { float: left; border: 3px solid #eee; padding: 1px; margin: 0 15px 5px 0; }
#line { clear: both; padding: 3px; margin: 0 0 15px; background: #fff url(images/smalldot.gif) repeat-x; }
#ad { float: right; text-align: center; padding: 33px 0 0; width: 250px; border: 3px solid #eee; color: #ccc; height: 50px; margin: 0 0 15px; }
#shortnews { float: right; width: 250px; }
.news { border-bottom: 1px solid #eee; padding: 0 0 2px; margin: 0 0 10px;}
#right { margin: 0 15px 20px 0; padding: 0 0 0 15px; float: right; width: 620px; text-align: justify; }
.border { clear: both; border-left: 4px solid #ccc; padding: 0 0 0 15px; }
#rl { float: left; width: 290px; margin: 0 20px 30px 0; }
#rr { float: right; width: 290px; }
#rl li, #rr li { list-style: none; border-bottom: 1px solid #eee; padding: 4px; margin: 0; }
#rl li a, #rr li a { background: #fff url(images/arrow.gif) no-repeat center left; padding: 0 0 0 12px; color: #808080; }
#footer { clear: both; padding: 10px; margin: 0 0 15px; font-size: .9em; color: #808080; background: #eee; }
.links a { font-weight: bold; color: #787A8F; background: #fff; margin: 0 10px 0 0; background: url(images/dot.png) no-repeat center left; padding: 0 0 0 10px; }
.sponsor { color: red; background: #eee; }
#footer li { list-style: none; }
#fl { width: 600px; }
#fr { float: right; }
Liczba postów: 1,054
Liczba wątków: 0
Dołączył: 28-05-2009
Reputacja:
22
#menu { height: 42px; padding: 7px 0 0 0; clear: both; margin: 0 0 18px; background: #fff url(images/menubg.gif) repeat-x; }
Np. napisałem Ci co masz poprawić, że jak masz paddin-top np. równy 7 i height masz 35 (a obrazek ma 42 px wysokości) to zmieniasz na 42. :| Cała filozofia.
|
Podobne wątki… |
Wątek: |
Autor |
Odpowiedzi: |
Wyświetleń: |
Ostatni post |
|
smarty,array, problem z wyświetlaniem lub konstrukcją tablicy... |
LoBo |
0 |
1,279 |
03-09-2012, 03:20
Ostatni post: LoBo
|
|
[html] problem z wyświetlaniem obrazków |
kamyk3xl |
10 |
19,860 |
11-06-2011, 14:57
Ostatni post: mateo
|
|
[css] problem z wyświetlaniem obrazka |
lukka |
5 |
4,212 |
20-12-2010, 14:58
Ostatni post: disaster
|
|
Problem z wyswietlaniem w przegladarkach |
Guzioo |
5 |
3,682 |
11-09-2010, 21:04
Ostatni post: Guzioo
|
|
problem z wyswietlaniem znakow polskich na stronie |
DjBuziak |
5 |
3,767 |
13-07-2010, 16:21
Ostatni post: Kamil
|
Użytkownicy przeglądający ten wątek: 1 gości
|
|
Sponsorzy i przyjaciele
|
|
|