stylesheet only screen

Kelly

Utente Attivo
5 Set 2008
112
1
18
Questo codice funziona con Explorer 11, mozilla, Google Chrome, browser iphone, android, safari...
ma non funziona con Explorer 8 /9/10...
sapete per caso la causa?

ogni file carica delle dimensione precise secondo il tipo di schermo....
quando apro Explorer 8 dal pc .... è come se non lo leggesse...

port.css (telefonici android-iphone)
tablet.css (ipad)
pc.css (pc)

grazie

Codice:
link href="port.css" rel="stylesheet" type="text/css" media="only screen and (min-width: 0px) and (max-width: 400px)" >
<link href="tablet.css" rel="stylesheet" type="text/css" media="only screen and (min-width: 401px) and (max-width: 768px)" >
<link href="pc.css" rel="stylesheet" type="text/css" media="only screen and (min-width: 769px)" >
 

Giovanni Omeri

Nuovo Utente
15 Giu 2014
16
0
1
28
Brescia
Non lo so se intendi questo, ma potresti usare "conditional comments". Prova a cercare su internet se è questo. La stessa cosa la puoi fare nel css. Eccoti un esempiO:

HTML:
<p class="accent">
<!--[if IE]>
According to the conditional comment this is IE<br />
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is IE 6<br />
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is IE 7<br />
<![endif]-->
<!--[if IE 8]>
According to the conditional comment this is IE 8<br />
<![endif]-->
<!--[if IE 9]>
According to the conditional comment this is IE 9<br />
<![endif]-->
<!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higher<br />
<![endif]-->
<!--[if lt IE 9]>
According to the conditional comment this is IE lower than 9<br />
<![endif]-->
<!--[if lte IE 7]>
According to the conditional comment this is IE lower or equal to 7<br />
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is IE greater than 6<br />
<![endif]-->
<!--[if !IE]> -->
According to the conditional comment this is not IE 5-9<br />
<!-- <![endif]-->
</p>
 
Discussioni simili
Autore Titolo Forum Risposte Data
unkus_nob problema rel=stylesheet? HTML e CSS 3
P Screen width php recuperato da js PHP 4
V Black screen phpgraphlib PHP 9
L [Photoshop] Tavoletta grafica o pc touch screen Photoshop 1
L [PHP] lightbox touch screen PHP 0
bubino8 [HTML] @media screen Errore px HTML e CSS 4
Sevenjeak Windows 10: errore green screen ( versione insider ) Windows e Software 0
F Youtube Full screen HTML e CSS 1
asevenx Problema compatibilità browser con @media screen HTML e CSS 2
M Sito web in full screen Javascript 1
asevenx @media screen per stili responsive non riconosciuti HTML e CSS 3
C Pulsanti per touch screen HTML e CSS 1
F slider full screen HTML e CSS 0
I Implementazione con Javascript di più css a seconda di screen.width Javascript 3
B [VENDO] Visualizzazioni Web Italiane Con Categoria - Ip Unici - Verrà Fornito Screen Analytics Vendere e Acquistare pubblicita' online 2
A Stato di :hover su dispositivi Touch-Screen HTML e CSS 6
A Parametro visibility hidden in relazione a window.screen.width Javascript 10
J [Javascript] full screen sulla finestra corrente Javascript 2
J Dynamic HTML Splash Screen Javascript 0
marco.carrieri Screen Shot in tempo reale con Jquery jQuery 1
C full screen in Action Script 1 Flash 0
Z Link con screen Javascript 3
I s.o.s----->full screen Flash 2
WEBLILY Can I disable a Windows logon screen? Windows e Software 0
rok Inserire link ad una parola in un animazione flash (finestra full screen) Flash 1
G screen shoot ad un video Webdesign e Grafica 0
B Full Screen Javascript 2
J screen saver Webdesign e Grafica 7

Discussioni simili