Media queries

Jakub Lemiszewski

Utente Attivo
5 Dic 2013
119
1
0
Salve ho cretao delle media queries ma una di queste che ho usato per puntare il samsung galaxy s3 mi punta anche chrome e questo non lo voglio. Come faccio a puntare s3 solamente senza che sia toccato anche chrome?.
Grazie dell'aiuto.

Codice:
body {
	margin: 4% auto;
	padding: 0;
}
#canvas {
	left: 23.5%;
	position: absolute;
	width: 55%;
	height: 70%;
	overflow: hidden;
}

/* Smartphones (landscape) ----------- */
@media only screen and (min-width:321px) and (max-width:480px) and (orientation:landscape) {
	body {
	}
	#canvas {
		left: 10%;
		width: 80%;
		height: 90%;
	}
}

/* Smartphones (portrait) ----------- */
@media only screen and (max-width:320px) and (orientation:portrait) {
	body {
		margin: 40% auto;
	}
	#canvas {
		left: 20%;
		width: 60%;
		height: 40%;
	}
}

/* Samsung S3 (Landscape) and chrome ----------------------- */
@media only screen and (-webkit-device-pixel-ratio:2) and (orientation:landscape) {
	body {
		margin: 0;
	}
	#canvas {
		left: 0;
		width: 100%;
		height: 100%;
	}
}

/* Samsung S3 (Portrait) and chrome----------------------- */
@media only screen and (-webkit-min-device-pixel-ratio: 2) and (orientation : portrait) {
	body {
		margin: 0;
	}
	#canvas {
		left: 0;
		width: 100%;
		height: 100%;
	}
}

/* Iphone 5 --------------------------------------------- */
@media screen and (device-width : 320px) and (device-height : 568px) and (-webkit-device-pixel-ratio : 2) {
	body {
		margin: 0;
	}
	#canvas {
		left: 0;
		width: 100%;
		height: 100%;
	}
}
@media screen and (device-aspect-ratio : 40/71) {
	body {
		margin: 0;
	}
	#canvas {
		left: 0;
		width: 100%;
		height: 100%;
	}
}
 

Giovanni Omeri

Nuovo Utente
15 Giu 2014
16
0
1
28
Brescia
Secondo me dovresti cambiare qualcosa in -webkit- Non ne sono sicuro perché non ho capito bene il tuo problema. Se riesci a spiegarti meglio o mandare un sito d'esempio. Grazie.
 
Discussioni simili
Autore Titolo Forum Risposte Data
P Problema con media queries HTML e CSS 2
J Canvas e media queries per responsive design HTML e CSS 3
F break point media queries HTML e CSS 2
L Media queries e jquery mobile jQuery 0
A media degli elementi estratti da una query MySQL 0
C media per riga MySQL 1
T contatore totale click e media in secondi PHP 7
C [VENDO] Social Media Manager - SEO - ADS Offerte e Richieste di Lavoro e/o Collaborazione 0
C [Offro][Retribuito] Social Media Manager al miglior prezzo! Offerte e Richieste di Lavoro e/o Collaborazione 0
S [PHP] Estrarre dati da tabella e fare la media ad intervalli di tempo PHP 11
Tommy03 [PHP] Media valori presi da una query PHP 3
P (Cerco) Collaboratori per gestione social media Offerte e Richieste di Lavoro e/o Collaborazione 5
M [RISOLTO]Windows media player non mi funziona più su win 10 pro 64 bit Windows e Software 2
B Inquadramento Social Media Manager Leggi, Normative e Fisco 2
Instagramsocialmedia 151K Vendo pagina Instagram e servizi Media social Marketing Annunci servizi di Social Media Marketing 1
Instagramsocialmedia Social media Marketing mi presento Presentati al Forum 0
bubino8 [HTML] @media screen Errore px HTML e CSS 4
T [RETRIBUITO] Risolvere problemi di geometria livello 2a media Offerte e Richieste di Lavoro e/o Collaborazione 4
xone Partita iva come consulente SEO e social media Leggi, Normative e Fisco 1
skiri Cerco Esperto in webmaster marketing SEO & Social Media Offerte e Richieste di Lavoro e/o Collaborazione 4
booklisa Compressione immagini e gestione media CMS (Content Management System) 1
Alessandro Ad Adbooth Media Group, piattaforma di pubblicità Vendere e Acquistare pubblicita' online 0
asevenx Problema compatibilità browser con @media screen HTML e CSS 2
C Social Media Marketing: Facebook VS Instant messaging App Social Media Marketing 1
asevenx @media screen per stili responsive non riconosciuti HTML e CSS 3
M problema con media query CSS HTML e CSS 1
N Aiuto con html nascondere i media HTML e CSS 4
F inserire un video windows media player HTML e CSS 2
A css media query HTML e CSS 1
A Scartare righe in una media MySQL 2
M media di alcune variabili PHP 4
F media query HTML e CSS 1
L Centri Media in Italia: mappa dei clienti (aggiornata) SEO e Posizionamento 9
K Nascondere i css3 ai vecchi broswer usando @media HTML e CSS 0
F Ciao da Fandango Media Group! Presentati al Forum 2
B collegare telecamera a media player Javascript 0
S How to build ASP.NET Media Player Control in C# .Net code .NET Framework 0
S How to build ASP.NET Media Player Control in C# .Net code ASP.NET 0
J Web based JavaScript Media Player Javascript 0
J Quanto chiede in media un webmaster per un sito web statico?? Guadagnare col Sito 1
catellostefano JW FLV media player Javascript 0
P WordPress: problemi con "Aggiungi Media" WordPress 2
M problema media player zindex HTML e CSS 1
K Problemi con Windows Media Player 11 Windows e Software 0
M tratteggio embedded windows media player HTML e CSS 1
S windows media player 11 nn funzionante!! Windows e Software 1
A media di valori con access 2003 MS Access 0
B impostare media player 11 Windows e Software 3
wgsmedia wGs-Media - nuova directory gratuita Presenta il tuo Sito 1
C componenti media flash Flash 3

Discussioni simili