SlideShare une entreprise Scribd logo
1  sur  18
Utfordringer med mobil
webutvikling
Utfordringer med mobil
webutvikling
Dritt man må
forholde seg til
<meta name="viewport" content="name=value,name=value">
<meta name="viewport" content="???">
• Eks:
• <meta name="viewport" content="width=320">
• <meta name="viewport" content="width=device-width">
• <meta name="viewport" content="initial-scale=1">
• <meta name="viewport" content="height=500">
• <meta name="viewport" content="user-scalable=no">
• <meta name="viewport" content="maximum-scale=2">
• <meta name="viewport" content="minimum-scale=0.2">
<meta name="viewport" content="???">
• Eks:
• <meta name="viewport" content="width=320">
• <meta name="viewport" content="width=device-width">
• <meta name="viewport" content="initial-scale=1">
• <meta name="viewport" content="height=500">
• <meta name="viewport" content="user-scalable=no">
• <meta name="viewport" content="maximum-scale=2">
• <meta name="viewport" content="minimum-scale=0.2">
width=device-width
??
• The reference pixel is the visual angle of one pixel on a device with a
pixel density of 96dpi and a distance from the reader of an arm’s
length. For a nominal arm’s length of 28 inches, the visual angle is
therefore about 0.0213 degrees. For reading at arm’s length, 1px thus
corresponds to about 0.26 mm (1/96 inch).
CSS pixel
??
width=device-width
width=device-width
Dvs: “iphone1-width”
Dvs: 320px
iPhone 5
- 980
user-scalable=no 980
initial-scale=1 320
initial-scale=2 160
height=400 279
user-scalable=no,initial-scale=1 320
user-scalable=no,initial-scale=2 160
user-scalable=no,height=400 279
initial-scale=1,initial-scale=2 160
initial-scale=1,height=400 320
initial-scale=2,height=400 160
width=device-width,user-scalable=no 320
width=device-width,initial-scale=1 320
width=device-width,initial-scale=2 160
width=device-width,height=400 279
width=device-width,user-scalable=no,initial-scale=1 320
width=device-width,user-scalable=no,initial-scale=2 160
width=device-width,user-scalable=no,height=400 279
width=device-width,initial-scale=1,initial-scale=2 160
width=device-width,initial-scale=1,height=400 320
width=device-width,initial-scale=2,height=400 160
width=320,user-scalable=no 320
width=320,initial-scale=1 320
width=320,initial-scale=2 160
width=320,height=400 279
width=320,user-scalable=no,initial-scale=1 320
width=320,user-scalable=no,initial-scale=2 160
width=320,user-scalable=no,height=400 279
width=320,initial-scale=1,initial-scale=2 160
width=320,initial-scale=1,height=400 320
width=320,initial-scale=2,height=400 160
width=640,user-scalable=no 640
width=640,initial-scale=1 320
width=640,initial-scale=2 160
width=640,height=400 279
width=640,user-scalable=no,initial-scale=1 320
width=640,user-scalable=no,initial-scale=2 160
width=640,user-scalable=no,height=400 279
width=640,initial-scale=1,initial-scale=2 160
width=640,initial-scale=1,height=400 320
width=640,initial-scale=2,height=400 160
"" 320
width=device-width 320
width=320 320
width=640 640
iPhone 5 Android
- 980 980
user-scalable=no 980 320
initial-scale=1 320 320
initial-scale=2 160 160
height=400 279 980
user-scalable=no,initial-scale=1 320 320
user-scalable=no,initial-scale=2 160 320
user-scalable=no,height=400 279 320
initial-scale=1,initial-scale=2 160 160
initial-scale=1,height=400 320 320
initial-scale=2,height=400 160 160
width=device-width,user-scalable=no 320 320
width=device-width,initial-scale=1 320 320
width=device-width,initial-scale=2 160 160
width=device-width,height=400 279 320
width=device-width,user-scalable=no,initial-scale=1 320 320
width=device-width,user-scalable=no,initial-scale=2 160 320
width=device-width,user-scalable=no,height=400 279 320
width=device-width,initial-scale=1,initial-scale=2 160 160
width=device-width,initial-scale=1,height=400 320 320
width=device-width,initial-scale=2,height=400 160 160
width=320,user-scalable=no 320 320
width=320,initial-scale=1 320 320
width=320,initial-scale=2 160 160
width=320,height=400 279 320
width=320,user-scalable=no,initial-scale=1 320 320
width=320,user-scalable=no,initial-scale=2 160 320
width=320,user-scalable=no,height=400 279 320
width=320,initial-scale=1,initial-scale=2 160 160
width=320,initial-scale=1,height=400 320 320
width=320,initial-scale=2,height=400 160 160
width=640,user-scalable=no 640 320
width=640,initial-scale=1 320 320
width=640,initial-scale=2 160 160
width=640,height=400 279 640
width=640,user-scalable=no,initial-scale=1 320 320
width=640,user-scalable=no,initial-scale=2 160 320
width=640,user-scalable=no,height=400 279 320
width=640,initial-scale=1,initial-scale=2 160 160
width=640,initial-scale=1,height=400 320 320
width=640,initial-scale=2,height=400 160 160
"" 320 320
width=device-width 320 320
width=320 320 320
width=640 640 640
iPhone 5 w: 640, h:1135 Android WP8 rapporterer WP8 er
- 980 980 1024 1024
user-scalable=no 980 320 768 1024
initial-scale=1 320 320 768 320
initial-scale=2 160 160 768 320
height=400 279 980 768 320
user-scalable=no,initial-scale=1 320 320 768 320
user-scalable=no,initial-scale=2 160 320 768 320
user-scalable=no,height=400 279 320 768 320
initial-scale=1,initial-scale=2 160 160 768 320
initial-scale=1,height=400 320 320 768 320
initial-scale=2,height=400 160 160 768 320
width=device-width,user-scalable=no 320 320 768 320
width=device-width,initial-scale=1 320 320 768 320
width=device-width,initial-scale=2 160 160 768 320
width=device-width,height=400 279 320 768 320
width=device-width,user-scalable=no,initial-scale=1 320 320 320 320
width=device-width,user-scalable=no,initial-scale=2 160 320 768 320
width=device-width,user-scalable=no,height=400 279 320 768 320
width=device-width,initial-scale=1,initial-scale=2 160 160 320 320
width=device-width,initial-scale=1,height=400 320 320 768 320
width=device-width,initial-scale=2,height=400 160 160 320 320
width=320,user-scalable=no 320 320 768 320
width=320,initial-scale=1 320 320 320 320
width=320,initial-scale=2 160 160 768 320
width=320,height=400 279 320 320 320
width=320,user-scalable=no,initial-scale=1 320 320 768 320
width=320,user-scalable=no,initial-scale=2 160 320 320 320
width=320,user-scalable=no,height=400 279 320 768 320
width=320,initial-scale=1,initial-scale=2 160 160 320 320
width=320,initial-scale=1,height=400 320 320 768 320
width=320,initial-scale=2,height=400 160 160 320 320
width=640,user-scalable=no 640 320 768 640
width=640,initial-scale=1 320 320 640 640
width=640,initial-scale=2 160 160 768 640
width=640,height=400 279 640 640 640
width=640,user-scalable=no,initial-scale=1 320 320 768 640
width=640,user-scalable=no,initial-scale=2 160 320 640 640
width=640,user-scalable=no,height=400 279 320 640 640
width=640,initial-scale=1,initial-scale=2 160 160 768 640
width=640,initial-scale=1,height=400 320 320 640 640
width=640,initial-scale=2,height=400 160 160 768 640
"" 320 320 768 1024
width=device-width 320 320 768 320
width=320 320 320 768 320
width=640 640 640 768 640
@media screen and (min-resolution: <X> dpi) {
@viewport {
width: <Y>;
}
}
@media screen and (min-device-pixel-ratio: <X>) {
@viewport {
width: <Y>;
}
}
Konklusjon:
• Lær deg å leve med device-width (320px)
Spørsmål?

Contenu connexe

En vedette

PortflioAmirаSRAhmad
PortflioAmirаSRAhmadPortflioAmirаSRAhmad
PortflioAmirаSRAhmad
Amira Ahmad
 
FBDataAnalytics 2 of 3_DWE
FBDataAnalytics 2 of 3_DWEFBDataAnalytics 2 of 3_DWE
FBDataAnalytics 2 of 3_DWE
Jessie Axel
 
JessieAxel_Resume2015
JessieAxel_Resume2015JessieAxel_Resume2015
JessieAxel_Resume2015
Jessie Axel
 

En vedette (13)

2 chapter ( Making of pakistan )
2 chapter  ( Making of pakistan )2 chapter  ( Making of pakistan )
2 chapter ( Making of pakistan )
 
Richmen BTL Marketing Corporate Profile
Richmen BTL Marketing Corporate ProfileRichmen BTL Marketing Corporate Profile
Richmen BTL Marketing Corporate Profile
 
Clasificacion de alimentos por riesgo
Clasificacion de alimentos por riesgoClasificacion de alimentos por riesgo
Clasificacion de alimentos por riesgo
 
7 tips to painlessly pull a loose tooth view
7 tips to painlessly pull a loose tooth view7 tips to painlessly pull a loose tooth view
7 tips to painlessly pull a loose tooth view
 
Estructura.
Estructura.Estructura.
Estructura.
 
PortflioAmirаSRAhmad
PortflioAmirаSRAhmadPortflioAmirаSRAhmad
PortflioAmirаSRAhmad
 
Plan de negocios para las pequeñas y medianas empresas.
Plan de negocios para las pequeñas y medianas empresas.Plan de negocios para las pequeñas y medianas empresas.
Plan de negocios para las pequeñas y medianas empresas.
 
Six Month Smile Makeover: A Case Study
Six Month Smile Makeover: A Case StudySix Month Smile Makeover: A Case Study
Six Month Smile Makeover: A Case Study
 
Oral Health Care: Iowa
Oral Health Care: IowaOral Health Care: Iowa
Oral Health Care: Iowa
 
Claudia russo
Claudia russoClaudia russo
Claudia russo
 
FBDataAnalytics 2 of 3_DWE
FBDataAnalytics 2 of 3_DWEFBDataAnalytics 2 of 3_DWE
FBDataAnalytics 2 of 3_DWE
 
JessieAxel_Resume2015
JessieAxel_Resume2015JessieAxel_Resume2015
JessieAxel_Resume2015
 
Lifecycle Stage + Buyer Persona = Content Mapping Template
Lifecycle Stage + Buyer Persona = Content Mapping TemplateLifecycle Stage + Buyer Persona = Content Mapping Template
Lifecycle Stage + Buyer Persona = Content Mapping Template
 

Similaire à Dritt man må forholde seg til

Adapt and respond - mobile-friendly layouts beyond the desktop - standards>ne...
Adapt and respond - mobile-friendly layouts beyond the desktop - standards>ne...Adapt and respond - mobile-friendly layouts beyond the desktop - standards>ne...
Adapt and respond - mobile-friendly layouts beyond the desktop - standards>ne...
Patrick Lauke
 
The specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktopThe specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktop
betabeers
 
Handys und Tablets - Webentwicklung jenseits des Desktops - WebTech Mainz 12....
Handys und Tablets - Webentwicklung jenseits des Desktops - WebTech Mainz 12....Handys und Tablets - Webentwicklung jenseits des Desktops - WebTech Mainz 12....
Handys und Tablets - Webentwicklung jenseits des Desktops - WebTech Mainz 12....
Patrick Lauke
 
Responsive website design
Responsive website designResponsive website design
Responsive website design
svaithiyalingam
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12
touchtitans
 

Similaire à Dritt man må forholde seg til (20)

Adapt and respond - mobile-friendly layouts beyond the desktop - standards>ne...
Adapt and respond - mobile-friendly layouts beyond the desktop - standards>ne...Adapt and respond - mobile-friendly layouts beyond the desktop - standards>ne...
Adapt and respond - mobile-friendly layouts beyond the desktop - standards>ne...
 
Adaptive Layouts - standards>next London 28.05.2011
Adaptive Layouts - standards>next London 28.05.2011Adaptive Layouts - standards>next London 28.05.2011
Adaptive Layouts - standards>next London 28.05.2011
 
Responsive Web in Brief
Responsive Web in BriefResponsive Web in Brief
Responsive Web in Brief
 
Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...Responsive design: techniques and tricks to prepare your websites for the mul...
Responsive design: techniques and tricks to prepare your websites for the mul...
 
Adaptive layouts - standards>next Manchester 23.03.2011
Adaptive layouts - standards>next Manchester 23.03.2011Adaptive layouts - standards>next Manchester 23.03.2011
Adaptive layouts - standards>next Manchester 23.03.2011
 
Mobile web development techniques (and Opera's developer tools)
Mobile web development techniques (and Opera's developer tools)Mobile web development techniques (and Opera's developer tools)
Mobile web development techniques (and Opera's developer tools)
 
Once Source to Rule Them All
Once Source to Rule Them AllOnce Source to Rule Them All
Once Source to Rule Them All
 
The specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktopThe specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktop
 
Mobile Web Development
Mobile Web DevelopmentMobile Web Development
Mobile Web Development
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
 
Multi screen HTML5
Multi screen HTML5Multi screen HTML5
Multi screen HTML5
 
Handys und Tablets - Webentwicklung jenseits des Desktops - WebTech Mainz 12....
Handys und Tablets - Webentwicklung jenseits des Desktops - WebTech Mainz 12....Handys und Tablets - Webentwicklung jenseits des Desktops - WebTech Mainz 12....
Handys und Tablets - Webentwicklung jenseits des Desktops - WebTech Mainz 12....
 
Responsive website design
Responsive website designResponsive website design
Responsive website design
 
Android Lab Test : Using the WIFI (english)
Android Lab Test : Using the WIFI (english)Android Lab Test : Using the WIFI (english)
Android Lab Test : Using the WIFI (english)
 
"Conditionally adaptive" Vadim Makeev
"Conditionally adaptive" Vadim Makeev"Conditionally adaptive" Vadim Makeev
"Conditionally adaptive" Vadim Makeev
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Web
 
Web app
Web appWeb app
Web app
 
スマートフォンサイトの作成術 - 大川洋一
スマートフォンサイトの作成術 - 大川洋一スマートフォンサイトの作成術 - 大川洋一
スマートフォンサイトの作成術 - 大川洋一
 
Web app
Web appWeb app
Web app
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12
 

Dernier

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Dernier (20)

ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

Dritt man må forholde seg til

  • 2. Utfordringer med mobil webutvikling Dritt man må forholde seg til
  • 3.
  • 4.
  • 6. <meta name="viewport" content="???"> • Eks: • <meta name="viewport" content="width=320"> • <meta name="viewport" content="width=device-width"> • <meta name="viewport" content="initial-scale=1"> • <meta name="viewport" content="height=500"> • <meta name="viewport" content="user-scalable=no"> • <meta name="viewport" content="maximum-scale=2"> • <meta name="viewport" content="minimum-scale=0.2">
  • 7. <meta name="viewport" content="???"> • Eks: • <meta name="viewport" content="width=320"> • <meta name="viewport" content="width=device-width"> • <meta name="viewport" content="initial-scale=1"> • <meta name="viewport" content="height=500"> • <meta name="viewport" content="user-scalable=no"> • <meta name="viewport" content="maximum-scale=2"> • <meta name="viewport" content="minimum-scale=0.2">
  • 9. • The reference pixel is the visual angle of one pixel on a device with a pixel density of 96dpi and a distance from the reader of an arm’s length. For a nominal arm’s length of 28 inches, the visual angle is therefore about 0.0213 degrees. For reading at arm’s length, 1px thus corresponds to about 0.26 mm (1/96 inch). CSS pixel ??
  • 12. iPhone 5 - 980 user-scalable=no 980 initial-scale=1 320 initial-scale=2 160 height=400 279 user-scalable=no,initial-scale=1 320 user-scalable=no,initial-scale=2 160 user-scalable=no,height=400 279 initial-scale=1,initial-scale=2 160 initial-scale=1,height=400 320 initial-scale=2,height=400 160 width=device-width,user-scalable=no 320 width=device-width,initial-scale=1 320 width=device-width,initial-scale=2 160 width=device-width,height=400 279 width=device-width,user-scalable=no,initial-scale=1 320 width=device-width,user-scalable=no,initial-scale=2 160 width=device-width,user-scalable=no,height=400 279 width=device-width,initial-scale=1,initial-scale=2 160 width=device-width,initial-scale=1,height=400 320 width=device-width,initial-scale=2,height=400 160 width=320,user-scalable=no 320 width=320,initial-scale=1 320 width=320,initial-scale=2 160 width=320,height=400 279 width=320,user-scalable=no,initial-scale=1 320 width=320,user-scalable=no,initial-scale=2 160 width=320,user-scalable=no,height=400 279 width=320,initial-scale=1,initial-scale=2 160 width=320,initial-scale=1,height=400 320 width=320,initial-scale=2,height=400 160 width=640,user-scalable=no 640 width=640,initial-scale=1 320 width=640,initial-scale=2 160 width=640,height=400 279 width=640,user-scalable=no,initial-scale=1 320 width=640,user-scalable=no,initial-scale=2 160 width=640,user-scalable=no,height=400 279 width=640,initial-scale=1,initial-scale=2 160 width=640,initial-scale=1,height=400 320 width=640,initial-scale=2,height=400 160 "" 320 width=device-width 320 width=320 320 width=640 640
  • 13. iPhone 5 Android - 980 980 user-scalable=no 980 320 initial-scale=1 320 320 initial-scale=2 160 160 height=400 279 980 user-scalable=no,initial-scale=1 320 320 user-scalable=no,initial-scale=2 160 320 user-scalable=no,height=400 279 320 initial-scale=1,initial-scale=2 160 160 initial-scale=1,height=400 320 320 initial-scale=2,height=400 160 160 width=device-width,user-scalable=no 320 320 width=device-width,initial-scale=1 320 320 width=device-width,initial-scale=2 160 160 width=device-width,height=400 279 320 width=device-width,user-scalable=no,initial-scale=1 320 320 width=device-width,user-scalable=no,initial-scale=2 160 320 width=device-width,user-scalable=no,height=400 279 320 width=device-width,initial-scale=1,initial-scale=2 160 160 width=device-width,initial-scale=1,height=400 320 320 width=device-width,initial-scale=2,height=400 160 160 width=320,user-scalable=no 320 320 width=320,initial-scale=1 320 320 width=320,initial-scale=2 160 160 width=320,height=400 279 320 width=320,user-scalable=no,initial-scale=1 320 320 width=320,user-scalable=no,initial-scale=2 160 320 width=320,user-scalable=no,height=400 279 320 width=320,initial-scale=1,initial-scale=2 160 160 width=320,initial-scale=1,height=400 320 320 width=320,initial-scale=2,height=400 160 160 width=640,user-scalable=no 640 320 width=640,initial-scale=1 320 320 width=640,initial-scale=2 160 160 width=640,height=400 279 640 width=640,user-scalable=no,initial-scale=1 320 320 width=640,user-scalable=no,initial-scale=2 160 320 width=640,user-scalable=no,height=400 279 320 width=640,initial-scale=1,initial-scale=2 160 160 width=640,initial-scale=1,height=400 320 320 width=640,initial-scale=2,height=400 160 160 "" 320 320 width=device-width 320 320 width=320 320 320 width=640 640 640
  • 14. iPhone 5 w: 640, h:1135 Android WP8 rapporterer WP8 er - 980 980 1024 1024 user-scalable=no 980 320 768 1024 initial-scale=1 320 320 768 320 initial-scale=2 160 160 768 320 height=400 279 980 768 320 user-scalable=no,initial-scale=1 320 320 768 320 user-scalable=no,initial-scale=2 160 320 768 320 user-scalable=no,height=400 279 320 768 320 initial-scale=1,initial-scale=2 160 160 768 320 initial-scale=1,height=400 320 320 768 320 initial-scale=2,height=400 160 160 768 320 width=device-width,user-scalable=no 320 320 768 320 width=device-width,initial-scale=1 320 320 768 320 width=device-width,initial-scale=2 160 160 768 320 width=device-width,height=400 279 320 768 320 width=device-width,user-scalable=no,initial-scale=1 320 320 320 320 width=device-width,user-scalable=no,initial-scale=2 160 320 768 320 width=device-width,user-scalable=no,height=400 279 320 768 320 width=device-width,initial-scale=1,initial-scale=2 160 160 320 320 width=device-width,initial-scale=1,height=400 320 320 768 320 width=device-width,initial-scale=2,height=400 160 160 320 320 width=320,user-scalable=no 320 320 768 320 width=320,initial-scale=1 320 320 320 320 width=320,initial-scale=2 160 160 768 320 width=320,height=400 279 320 320 320 width=320,user-scalable=no,initial-scale=1 320 320 768 320 width=320,user-scalable=no,initial-scale=2 160 320 320 320 width=320,user-scalable=no,height=400 279 320 768 320 width=320,initial-scale=1,initial-scale=2 160 160 320 320 width=320,initial-scale=1,height=400 320 320 768 320 width=320,initial-scale=2,height=400 160 160 320 320 width=640,user-scalable=no 640 320 768 640 width=640,initial-scale=1 320 320 640 640 width=640,initial-scale=2 160 160 768 640 width=640,height=400 279 640 640 640 width=640,user-scalable=no,initial-scale=1 320 320 768 640 width=640,user-scalable=no,initial-scale=2 160 320 640 640 width=640,user-scalable=no,height=400 279 320 640 640 width=640,initial-scale=1,initial-scale=2 160 160 768 640 width=640,initial-scale=1,height=400 320 320 640 640 width=640,initial-scale=2,height=400 160 160 768 640 "" 320 320 768 1024 width=device-width 320 320 768 320 width=320 320 320 768 320 width=640 640 640 768 640
  • 15. @media screen and (min-resolution: <X> dpi) { @viewport { width: <Y>; } }
  • 16. @media screen and (min-device-pixel-ratio: <X>) { @viewport { width: <Y>; } }
  • 17. Konklusjon: • Lær deg å leve med device-width (320px)