Einzelnen Beitrag anzeigen
  #4 (permalink)  
Alt 10.10.2005, 14:22
ulle ulle ist offline
Erfahrener Benutzer
XHTMLforum-Kenner
Thread-Ersteller
 
Registriert seit: 02.06.2003
Beiträge: 2.441
ulle befindet sich auf einem aufstrebenden Ast
Standard


Weitere Tests meinerseits haben ergeben dass der IE sehr wohl die important-Regel versteht,
sofern diese nicht innerhalb des selben (nicht gleichen) Selektors steht.

Folgender CODE zeigt die Site in BLAU:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de-DE" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>xxxx</title>

<style type="text/css">
/*<![CDATA[*/

*			{
			margin:	0;
			padding:0;
			}


html,
body		{
			height: 100%;
			
			/* GELB
			 * specificity => 0,0,1 (001)
			 */
			background-color:	#FFEE00 !important;
			}
	
html body	{
			/* ORANGE
			 * specificity => 0,0,2 (002)
			 */
			background-color:	#FF9900;
			}
			
body		{
			/* BLAU
			 * specificity => 0,0,1 (001)
			 */
			background-color:	#0099FF !important;
			}
			
body		{
			/* ROT
			 * specificity => 0,0,1 (001)
			 */
			background-color:	#FF0000;
			}

/*]]>*/ 
</style> 

</head>

<body id="wichtig" class="test">



Hier sollte laut CSS 2.1 Specification ein komplett blauer Hintergrund zu sehen sein</p>

</body></html>
Folgende Änderung zeigt die Site in GELB
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de-DE" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>xxxx</title>

<style type="text/css">
/*<![CDATA[*/

*			{
			margin:	0;
			padding:0;
			}


html,
body		{
			height: 100%;
			
			/* GELB
			 * specificity => 0,0,1 (001)
			 */
			background-color:	#FFEE00 !important;
			}
	
html body	{
			/* ORANGE
			 * specificity => 0,0,2 (002)
			 */
			background-color:	#FF9900;
			}
			
body		{
			/* BLAU
			 * specificity => 0,0,1 (001)
			 */
			background-color:	#0099FF !important;

			/* ROT
			 * specificity => 0,0,1 (001)
			 */
			background-color:	#FF0000;
			}

/*]]>*/ 
</style> 

</head>

<body id="wichtig" class="test">



Hier sollte laut CSS 2.1 Specification ein komplett blauer Hintergrund zu sehen sein</p>

</body></html>
Soviel zum Internet Explorer.


Ich würde mich freuen wenn der Eingangs im THREAD erwähnte CODE noch in anderen Browsern (z.B.Safari) getestet werden würde.

DANKE
__________________
</ulle>
Mit Zitat antworten