|
|
|
![]() |
|
Strumenti |
![]() |
#1 | |
Senior Member
Iscritto dal: Jun 2005
Città: CH
Messaggi: 1058
|
CSS
Quote:
![]() |
|
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Jun 2005
Messaggi: 502
|
http://jigsaw.w3.org/css-validator/v...usermedium=all
Codice:
Errors URI : file://localhost/TextArea * Line: 57 Context : span.TOP span.RIGA4, span.BOTTOM span.RIGA4 Parse Error - [empty string] Warnings URI : file://localhost/TextArea * Line : 3 (Level : 1) You have no color with your background-color : body * Line : 7 font-family: You are encouraged to offer a generic family as a last alternative * Line : 7 (Level : 2) font-family: You are encouraged to offer a generic family as a last alternative : div * Line : 11 (Level : 1) Same colors for color and background-color in two contexts body and a * Line : 11 (Level : 1) You have no background-color with your color : a * Line : 11 (Level : 1) Same colors for color and background-color in two contexts span.BOTTOM and a * Line : 11 (Level : 1) Same colors for color and background-color in two contexts span.BOTTOM and a * Line : 33 (Level : 1) You have no color with your background-color : span.BOTTOM * Line : 33 (Level : 1) You have no color with your background-color : span.BOTTOM * Line : 39 (Level : 1) You have no color with your background-color : span.BOTTOM span * Line : 39 (Level : 1) You have no color with your background-color : span.BOTTOM span Valid CSS information * body { o background-color : #ffffff; } * div { o font : normal 10px Verdana; } * a { o color : #ffffff; } * div.BORDI { o width : 120px; } * div.CONTENUTO { o background-color : #ff6600; o color : #ffffff; o width : 120px; o padding : 5px; } * span.TOP, span.BOTTOM { o display : block; o background-color : #ffffff; } * span.TOP span, span.BOTTOM span { o display : block; o overflow : hidden; o background-color : #ff6600; o height : 1px; } * span.RIGA1 { o margin : 0 5px; } * span.RIGA2 { o margin : 0 3px; } * span.RIGA3 { o margin : 0 2px; } |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Jun 2005
Città: CH
Messaggi: 1058
|
ma quindi, explorer nn segue le regole standart???
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Iscritto dal: Nov 2003
Messaggi: 980
|
Non c'è nessun errore nel codice css, è solo che uno lo interpreta così e l'altro cosà. Puoi usare il commento condizionale (o come cavolo si chiama) che specifica un valore diverso di width per il box CONTENUTO con IE:
Codice:
<html> <head> <style type="text/css"> /* STILIZZAZIONI DI BASE DELLA PAGINA */ body { background-color: #FFFFFF; } div{ font: normal 10px Verdana; } a { color: #FFFFFF; } /* CONTENITORI DEI BORDI E DEL CONTENUTO DEL BOX */ div.BORDI { width: 120px; } div.CONTENUTO { background-color: #FF6600; color: #FFFFFF; width: 110px; padding: 5px; } /* CREAZIONE DEGLI ANGOLI SMUSSATI */ span.TOP, span.BOTTOM { display: block; background-color: #FFFFFF; } span.TOP span, span.BOTTOM span { display: block; overflow: hidden; background-color: #FF6600; height: 1px; } span.RIGA1 { margin: 0 5px; } span.RIGA2 { margin: 0 3px; } span.RIGA3 { } span.TOP span.RIGA4, span.BOTTOM span.RIGA4 { margin: 0 1px; height: 2px; } </style> <!--[if gt IE 5.5]> <style type="text/css"> div.CONTENUTO { width: 120px; } </style> <![endif]--> </head> <body> <div class="BORDI"> <span class="TOP"> <span class="RIGA1"></span> <span class="RIGA2"></span> <span class="RIGA3"></span> <span class="RIGA4"></span> </span> </div> <div class="CONTENUTO"> <b>MRW Corsi</b><br><br> Corsi professionali per Webmaster, Programmatori, Grafici e tecnici del comparto IT!!!<br><br> <a href="http://www.mrwcorsi.it">www.mrwcorsi.it</a> </div> <div class="BORDI"> <span class="BOTTOM"> <span class="RIGA4"></span> <span class="RIGA3"></span> <span class="RIGA2"></span> <span class="RIGA1"></span> </span> </div> </body> </html> Ultima modifica di kk3z : 07-12-2006 alle 15:01. |
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Jun 2005
Messaggi: 502
|
no explorer va a muzzo
@kk3z l'errore c'è: * Line: 57 Context : span.TOP span.RIGA4, span.BOTTOM span.RIGA4 |
![]() |
![]() |
![]() |
#7 |
Junior Member
Iscritto dal: Dec 2006
Messaggi: 5
|
io darei un'occhiata all'indirizzo http://www.webreference.com/html/doctype/ si spiega come i browser abbiano due modalità di analisi della pagina: una standard che utilizzano quando trovano questa dichiarazione che garantisce che nella pagina sono state seguite le specifiche W3C, e una detta “quirks” in cui non essendo garantita la standardizzazione cercano di simulare il comportamento di vecchie versioni del browser.
Nel caso della tua pagina non c'è il tag di tipo DOCTYPE che serve per dire al browser come analizzare la pagina e quindi potrebbe da lì esserci un errore in alcuni browser ma non in altri.
__________________
Programming Agent |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 21:37.