Chciałbym uzyskać identyczne wyświetlanie następującej strony pod IE jak pod Mozillą. Pod IE jak na razie bardzo się rozjeżdża, jeżeli chcecie zobaczyć jak powinna wyglądać poprawnie otwórzcie w mozilli.
index.html
<?xml version="1.1" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> <meta http-equiv="Content-Language" content="de" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Die HompePage des Deutsch-Polnischen Gymnasiums in Löcknitz. Wir laden Alle herzlich ein !!!" /> <meta name="keywords" content="schule, dpg, loecknitz, locknitz, scal" /> <link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript"> <!-- Hide it
// Returns today's date in a string with full day and month names
// by Roger C. Scudder Jr. on 10-2-98
// corrected for Netscape by Grzegorz Golebiewski
DayName = new Array(7)
DayName[0] = "Sonntag "
DayName[1] = "Montag "
DayName[2] = "Dienstag "
DayName[3] = "Mittwoch "
DayName[4] = "Donnerstag "
DayName[5] = "Freitag "
DayName[6] = "Samstag "
MonthName = new Array(12)
MonthName[0] = "Januar "
MonthName[1] = "Februar "
MonthName[2] = "März "
MonthName[3] = "April "
MonthName[4] = "Mai "
MonthName[5] = "Juni "
MonthName[6] = "Juli "
MonthName[7] = "August "
MonthName[8] = "September "
MonthName[9] = "Oktober "
MonthName[10] = "November "
MonthName[11] = "Dezember "
function getDateStr(){
var Today = new Date()
var WeekDay = Today.getDay()
var Month = Today.getMonth()
var Day = Today.getDate()
var Year = Today.getYear()
if(Year <= 2000)
Year += 1900
return DayName[WeekDay] + "," + " " + Day + " " + MonthName[Month] + ", " + Year
}
//-->
<script type="text/javascript"> <!-- Hide it
var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
var thistime = hours+":"+minutes
function writeclock() {
i_clock++
if (document.all || document.getElementById || document.layers) {
clockid[i_clock]="clock"+i_clock
document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
}
}
function clockon() {
thistime= new Date()
hours=thistime.getHours()
minutes=thistime.getMinutes()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
thistime = hours+":"+minutes
if (document.all) {
for (i=0;i<=clockid.length-1;i++) {
var thisclock=eval(clockid[i])
thisclock.innerHTML=thistime
}
}
if (document.getElementById) {
for (i=0;i<=clockid.length-1;i++) {
document.getElementById(clockid[i]).innerHTML=thistime
}
}
var timer=setTimeout("clockon()",1000)
}
window.onload=clockon();
//-->
<!-- head -->
<script type="text/javascript">document.write(" " + getDateStr())
</script>.
<span style="color: #FFFFFF; font-face: Verdana; font-size: 10px;"> Uhrzeit
<script type="text/javascript">writeclock()
</script></span>
<!-- /head -->
<!-- main -->
<!-- mainmenu -->
<a class="menu" href="index.htm">menu
</a><a class="menu" href="index.htm">menu
</a><a class="menu" href="index.htm">menu
</a> <!-- /mainmenu -->
<div class="cell" style="margin-right: 5%; width: 85%;"> <h2>INHALT, TODO, XXX
</h2> INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
INHALT, TODO, XXX
<div class="cell" style="width: 10%;"> <a class="smenu" href="index.htm">submenu
</a><a class="smenu" href="index.htm">submenu
</a><a class="smenu" href="index.htm">submenu
</a>
<br style="clear: both;" /> <!-- submenu -->
<a class="menu" href="index.htm">menu
</a><a class="menu" href="index.htm">menu
</a><a class="menu" href="index.htm">menu
</a> <!-- /submenu -->
<!-- /main -->
<!--foot -->
<address> designed by
<a href="mailto:XXX?subject=DPG - Loecknitz - - - Problem">XXX
</a>© for DPG L
öcknitz
</address><address>php enginge by
<a href="mailto:XXX?subject=DPG - Loecknitz - - - Problem">XXX
</a> for DPG L
öcknitz
</address>
<!-- /foot -->
style.css
Kod
body {
background-color: #E6F0FF;
font-family: Tahoma, Arial CE, Helvetica;
font-size: 8pt;
min-width: 700px;
text-align: center;
}
h2, h3, h4 {
background-color: #8CAAE6;
}
a{
color: inherit;
}
a:hover {
color: #E6F0FF;
}
a:visited {
color: #C3D2F5;
}
a:active {
color: #33CCFF;
}
a.menu {
background-color: #8CAAE6;
color: inherit;
display: inline;
font-size: 10pt;
font-weight: bold;
padding: 0px 10px;
text-align: center;
text-decoration: none;
}
a.menu:hover {
background-color: #C3D2F5;
}
a.smenu {
background-color: #8CAAE6;
color: inherit;
display: block;
font-size: 10pt;
font-weight: bold;
text-align: center;
text-decoration: none;
width: 80px;
}
a.smenu:hover {
background-color: #C3D2F5;
}
div.head {
background-color: #C3D2F5;
display: block;
height: 52px;
margin: 0px auto;
text-align: right;
width: 90%;
}
div.main {
display: block;
margin: 0px auto;
text-align: center;
width: 70%;
}
div.foot {
background-color: #C3D2F5;
color: #243F84;
display: block;
margin: 0px auto;
text-align: center;
width: 90%;
}
div.cell {
float: left;
}
.center {
text-align: center;
}
.justify {
text-align: justify;
}
.sub {
vertical-align: sub;
}
.sup {
vertical-align: super;
}
Ciekawi mnie, czy problemy z wyświetlaniem to kwestia jakiegoś szczegółu, czy też trzeba wszystko od nowa napisać? Efekt jaki chciałbym uzyskać to wyświetlanie tej strony zarówno pod IE jak i pod Mozillą w taki sam sposób w jaki jest teraz wyświetnlana pod mozillą zachowując kompatybilność z XHTML 1.1 oraz CSS 2.
Proszę o pomoc, z góry dzięki.