Comunidad de diseño web y desarrollo en internet online

html5 en IE 8

Citar            
MensajeEscrito el 01 Jun 2011 07:46 pm
Buenas!
He leido el tutorial "Cómo hacer que en Internet Explorer 6, 7 y 8 funcione HTML5", de ahí he cogido el código:

Código HTML :

<!--[if lt IE 8]> 
<script type="text/javascript"> 
   document.createElement("header");  
</script> 
<![endif]-->

para poder usar la etiqueta de html5 "header", pero en IE 8 no me funciona. Qué puedo hacer?

Muchas gracias!

Por tzita

17 de clabLevel



 

firefox
Citar            
MensajeEscrito el 02 Jun 2011 12:21 pm

Por DriverOp

Claber

2510 de clabLevel



 

opera
Citar            
MensajeEscrito el 02 Jun 2011 12:27 pm
Aaaah! Muchas gracias majo! Ya voy a probar también con ese script.

Por tzita

17 de clabLevel



 

firefox
Citar            
MensajeEscrito el 02 Jun 2011 05:39 pm
Como dijo DriverOp, el condicional solo esta revisando si es menor a IE.

If Lower Than IE 8.

Tienes que usar Lower Than and Equal IE 8.

Código :

<!--[if lte IE 8]>


Obviamente, lo mas sencillo es usar algun shim que tenga el codigo listo y te ayude a solucionar el problema, modernizr es uno de ellos.

Por NEO_JP

BOFH

5724 de clabLevel

13 tutoriales
12 articulos

Genero:Masculino   Anime Bloggers Premio_Secretos Team Cristalab

Front-end Developer en Washington, DC

chrome
Citar            
MensajeEscrito el 18 Jun 2011 08:31 am
Además asegurate de usar la suguiente regla de CSS:

Código :

article, aside, figure, footer, header, hgroup, nav, section {display: block;}

Para que muestre en "bloque" todas las nuevas etiquetas.

Saludos

Por king-size

25 de clabLevel



 

Rosario, Argentina

firefox
Citar            
MensajeEscrito el 18 Jun 2011 01:24 pm
king-size:

De eso se encarga el script recomendado por mi y por NEO_JP. Aunque el moderniz hace más cosas interesantes también...

Por DriverOp

Claber

2510 de clabLevel



 

opera

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.