Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden. Du solltest ein Upgrade durchführen oder einen alternativen Browser verwenden.
Hallo,
ich habe mir eine kleine Hompage gebastelt,da ich die Möglichkeit mit White-space pre sehr praktishc fand habe ich das auch umgesetzt und es hat auch super geklappt,als ich es auf dem Firefox ausprobiert habe.
Jedoch habe ich die Seite mit dem Internetexplorer (6 und 8) geöffnet und da erscheint alles in einer zeile =(
Kann ich diesen Bug irgendwie beheben?
Bei Safari,Chrome und Firefoy funktioniert alles bestens,bei dem IE leider garnicht selbst bei dem neuen 8 nicht...
Benutzt du vielleicht die beiden Werte pre-line und pre-wrap? Denn alle anderen sollten auch im IE funktionieren, die beiden genannten laufen allerdings wohl auch nur in Opera.
Habe das als Klasse definiert und bei allen rowsern bis auf den IE geht das.
Beim IE ist wie gesagt alles in einer zeile weil ich was man ja bei dem white-spacere weglassen kann keien breaks gemacht habe.
Guten Abend also der link wird im IE richtig angezeigt ich poste zuerst mal das CSS und dann die Page,werd sie bei bedarf auch schon online stellen.
CSS:
body {
background-color: #00FF00;
font-family: Arial, font-size:12pt; color:#0000FF;
Hmm,nein verwende ich nicht,was heißt dass,muss ich immer vor dem befehl <html>
das hier schreiben ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Ah,danke ist mir garnicht aufgefallen,danke für den Hinweis =)
MFG Don-DCH
Ergänzung ()
EDIT: wo sehe ich welche version ich habe,habe diese Zeile mal an den anfang geschrieben funktioniert aber nicht so
Kannst du mir vielelciht genau sagen wie das funktioniert ?
Auf dieser Seite kannst du Deine Seite auf Fehler überprüfen lassen und falls es welche gibt, wird Dir der genaue Befehl angezeigt! Gehe danach vor, wenn du 0 Fehler hast, kannst du davon ausgehen, das Deine Seite von jedem Browser korrekt angezeigt wird, mit außnahme vom IE6, der ist zu alt und kann kein CSS2.
Hm,hab nur ein paar kleine Fehler gefunden,die aber nichts mit dieser Seite zu tuen haben,als fehler meinte die Siete ich hätte keinen DOCTYPE,wie mache ich sowas :S ?
MFG Don-DCH
Ergänzung ()
Diese Fehler kommen
#
No Character Encoding Found! Falling back to UTF-8.
None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "UTF-8" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents.
Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.
#
Warning Unable to Determine Parse Mode!
The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because:
* the MIME Media Type (text/html) can be used for XML or SGML document types
* No known Document Type could be detected
* No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document.
* No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document.
As a default, the validator is falling back to SGML mode.
#
Warning No DOCTYPE found! Checking with default HTML 4.01 Transitional Document Type.
No DOCTYPE Declaration could be found or recognized in this document. This generally means that the document is not declaring its Document Type at the top. It can also mean that the DOCTYPE declaration contains a spelling error, or that it is not using the correct syntax.
The document was checked using a default "fallback" Document Type Definition that closely resembles “HTML 4.01 Transitional”.
Learn how to add a doctype to your document from our FAQ.
#
Info No Character encoding declared at document level
No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.
See this tutorial on character encoding for techniques and explanations.
Als erstes erstmal das ganz oben als ersten von allen:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
Guten Abend,
vielen vielen dank für die nächtliche Hilfe
Habe es an den Anfang der Seite gesetzt und es hat wunderbar funktioniert,vielen dank,
denke dass ich das bei jeder HTML datei einfügen muss den doctype?