Hola a todos,
Tengo un problema, he estado mirando como hacer para que dependiendo de la resolución cambiase a un CSS o a otro. He podido generar el script y este funciona solo en google Chrome y Firefox, pero en Internet explorer no funciona.
Aquí dejo el Script
Código HTML:
function reso(){
if(screen.width <=800)
{
document.getElementById('reslu').href="http://diple.com/estilo2.css";
}
if(screen.width <=1200 && screen.width >=1025)
{
document.getElementByid('reslu').href="http://diple.com/estilo3.css";
}
if(screen.width <=1500 && screen.width >=1201)
{
document.getElementByid('reslu').href="http://diple.com/estilo4.css";
}
}