SlideShare una empresa de Scribd logo
1 de 45
Descargar para leer sin conexión
IE9에서 HTML5 개발하기
황리건, 한국 마이크로소프트
1
Mul$-­‐Core	
  CPU	
   GPU	
  Architecture	
  GPUs	
  
myContext.drawImage(image,	
  sx,	
  sy,	
  sWidth,	
  sHeight,	
  dx,	
  dy,	
  dWidth,	
  dHeight);	
  
fishH	
  
fishW	
  
sY	
  
sX	
  
var	
  myCanvas	
  =	
  document.getElementById('myCanvas');	
  
var	
  ctx	
  =	
  myCanvas.getContext("2d");	
  
…	
  
ctx.save();	
  
ctx.translate(x,	
  y);	
  
ctx.scale(scale,	
  scale);	
  	
  
ctx.transform(flip,	
  0,	
  0,	
  1,	
  0,	
  0);	
  
ctx.drawImage(imageStrip,	
  fishW	
  *	
  cell,	
  fishH	
  *	
  species,	
  fishW,	
  
fishH,	
  -­‐fishW	
  /	
  2,	
  -­‐fishH	
  /	
  2,	
  fishW,	
  fishH);	
  
scale	
  =	
  nextScale;	
  
ctx.restore();	
  
<script	
  type="text/javascript">	
  
	
  function	
  addWebApp()	
  {	
  	
  
try	
  {	
  	
  
	
  window.external.msAddSiteMode();	
  	
  
}	
  catch(ex)	
  {	
  	
  
	
   	
  //	
  Site	
  Mode	
  not	
  supported.	
  	
  
	
  }	
  	
  
}	
  	
  
</script>	
  
	
  <button	
  onclick="addWebApp()"	
  title="Click	
  to	
  add	
  this	
  
webpage	
  to	
  your	
  Windows	
  Start	
  menu.">	
  Launch	
  in	
  Site	
  
Mode</button>	
  	
  
2
3
7000	
  	
  top	
  sites	
  
DOM	
  
•  XHTML	
  
•  DOM	
  Core	
  (createDocument)	
  
•  L2	
  (addEventListener)	
  
•  L3	
  (DragEvent)	
  
•  Traversal	
  
•  Range	
  
•  SelecWon	
  
•  DOMContentLoaded	
  
•  getElementsByClassName	
  
•  …	
  
Graphics	
  
•  Video	
  
•  Audio	
  
•  Canvas	
  
•  SVG	
  
•  Shapes	
  
•  Text	
  
•  TransformaWons	
  
•  Events	
  
•  Styling	
  
•  …	
  
CSS3	
  
•  Media	
  Queries	
  
•  Color	
  (opacity)	
  
•  Backgrounds	
  &	
  Borders	
  
•  Selectors	
  
•  Namespaces	
  
•  Fonts	
  
•  Values	
  and	
  Units	
  
•  …	
  
CSS3 New additions – Borders
33
•  Borders
•  border-color
•  Values : top right bottom left
<div	
  style="	
  border-­‐color:red	
  green	
  orange	
  blue;”>	
  
•  border-radius
•  Values : Top-Left Top-Right Bottom-Right Botton-Left Width
<div	
  style="	
  border-­‐radius:	
  0px	
  100px	
  100px	
  0px;”>	
  
•  border-style
•  Values : dotted | dashed | groove | ridge | double
<div	
  style="	
  border-­‐style:	
  dotted;”>	
  
•  box-shadow
<div	
  style="	
  box-­‐shadow:	
  5px	
  5px	
  10px	
  #000;”>	
  
CSS3 New additions – Backgrounds
34
•  Backgrounds
•  background-origin
•  background-clip
•  background-size
•  multiple backgrounds
div.Sample	
  
{	
   	
  height:	
  200px;	
  
	
  width:	
  720px;	
  
	
  padding:	
  150px	
  20px	
  20px	
  20px;	
  
	
  background:	
  url(body-­‐top.gif)	
  top	
  left	
  no-­‐repeat,	
  
	
  url(banner_fresco.jpg)	
  11px	
  11px	
  no-­‐repeat,	
  
	
  url(body-­‐bottom.gif)	
  bottom	
  left	
  no-­‐repeat,	
  
	
  url(body-­‐middle.gif)	
  left	
  repeat-­‐y;	
  
}
•  Color
•  HSL colors
<div	
  style="background-­‐color:	
  hsl	
  (0,100%,	
  50%);">	
  	
  
•  HSLA colors
<div	
  style="background-­‐color:	
  hsla	
  (0,100%,50%,0.2);">	
  
•  RGBA colors
<div	
  style="background:	
  rgba	
  (255,	
  0,	
  0,	
  0.2);">	
  	
  
•  Opacity
<div	
  style="background:	
  rgb	
  (255,	
  0,	
  0)	
  ;	
  opacity:	
  0.5;">	
  
CSS3 New additions – Color
35
CSS3 New additions – Text Effects
36
•  Text effects
•  text-overflow
<div	
  style=“	
  text-­‐overflow:	
  ellipsis;”>	
  
•  word-wrap
<div	
  style=“	
  word-­‐wrap:	
  break-­‐word;”>	
  
CSS3 New additions – Selectors
37
•  User-interface box-sizing
•  resize
•  outline
•  nav-top, nav-right, nav-bottom, nav-left
•  Selectors
•  Attribute selectors
 [att^=val] att attribute whose value begins with the prefix “val”.
 [att$=val] att attribute whose value ends with the suffix “val”.
 [att*=val] att attribute whose value contains the substring “val”.
p[title^=“sample"]	
  {background:	
  yellow;}	
  
CSS3 New additions – Web Fonts / Media Query
38
•  Basic box model
•  overflow-x
•  overflow-y
•  Web fonts
	
  @font-­‐face	
  {	
  	
  	
  
	
   	
  	
  	
  	
  	
  	
  	
  font-­‐family:	
  Whimsy;	
  
	
   	
  	
  	
  	
  	
  	
  	
  src:	
  url('Whimsy.woff');	
  
	
   	
  	
  	
  	
  	
  	
  }	
  
	
  <div	
  style=“	
  font:	
  24pt	
  Whimsy,	
  sans-­‐serif;”>	
  
•  Media Queries
	
  	
  @media	
  (max-­‐width:1024px)	
  {	
  
	
  	
  .displaytext	
  {	
  background-­‐color:	
  #F0F;	
  font:	
  24pt	
  sans-­‐serif;	
  }	
  }	
  
	
  	
  @media	
  (max-­‐width:800px)	
  {	
  	
  
	
  .displaytext	
  {	
  background-­‐color:	
  #F00;	
  font:	
  18pt	
  sans-­‐serif;	
  }	
  }	
  	
  
if(	
  navigator.userAgent.indexOf('MSIE')	
  !=	
  -­‐1	
  )	
  
{	
  
	
  //	
  Code	
  written	
  for	
  browser	
  X	
  
}	
  
else	
  
{	
  
	
  //	
  Code	
  written	
  for	
  browser	
  Y	
  
}	
  
=	
  체크 포인트	
   =	
  대응 코드	
  
기능 체크	
  버전 체크	
  
IE8에서 문제되는 케이스	
  
IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기
IE9에서 HTML5 개발하기

Más contenido relacionado

La actualidad más candente

Normas apa y derechos de autor piktochart backup data (1)
Normas apa y derechos de autor   piktochart backup data (1)Normas apa y derechos de autor   piktochart backup data (1)
Normas apa y derechos de autor piktochart backup data (1)
000409123
 
The Aggregation Framework
The Aggregation FrameworkThe Aggregation Framework
The Aggregation Framework
MongoDB
 
Piktochart backup data
Piktochart backup dataPiktochart backup data
Piktochart backup data
steffi barros
 

La actualidad más candente (17)

Rdio's Alex Gaynor at Heroku's Waza 2013: Why Python, Ruby and Javascript are...
Rdio's Alex Gaynor at Heroku's Waza 2013: Why Python, Ruby and Javascript are...Rdio's Alex Gaynor at Heroku's Waza 2013: Why Python, Ruby and Javascript are...
Rdio's Alex Gaynor at Heroku's Waza 2013: Why Python, Ruby and Javascript are...
 
Normas apa y derechos de autor piktochart backup data (1)
Normas apa y derechos de autor   piktochart backup data (1)Normas apa y derechos de autor   piktochart backup data (1)
Normas apa y derechos de autor piktochart backup data (1)
 
ChContext
ChContextChContext
ChContext
 
Kevin milla arbieto informatica piktochart backup data
Kevin milla arbieto informatica   piktochart backup dataKevin milla arbieto informatica   piktochart backup data
Kevin milla arbieto informatica piktochart backup data
 
How to matchMedia
How to matchMediaHow to matchMedia
How to matchMedia
 
The Aggregation Framework
The Aggregation FrameworkThe Aggregation Framework
The Aggregation Framework
 
Piktochart backup data
Piktochart backup dataPiktochart backup data
Piktochart backup data
 
HTML5 and CSS3 Refresher
HTML5 and CSS3 RefresherHTML5 and CSS3 Refresher
HTML5 and CSS3 Refresher
 
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStartCSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
 
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
Exploring fractals in CSS, @fronttrends, Warsaw, 2015Exploring fractals in CSS, @fronttrends, Warsaw, 2015
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
 
Agg framework selectgroup feb2015 v2
Agg framework selectgroup feb2015 v2Agg framework selectgroup feb2015 v2
Agg framework selectgroup feb2015 v2
 
Drupid">&lt;img />
Drupid">&lt;img />Drupid">&lt;img />
Drupid">&lt;img />
 
Apache CouchDB Presentation @ Sept. 2104 GTALUG Meeting
Apache CouchDB Presentation @ Sept. 2104 GTALUG MeetingApache CouchDB Presentation @ Sept. 2104 GTALUG Meeting
Apache CouchDB Presentation @ Sept. 2104 GTALUG Meeting
 
NoSQL - An introduction to CouchDB
NoSQL - An introduction to CouchDBNoSQL - An introduction to CouchDB
NoSQL - An introduction to CouchDB
 
Fcontratos
FcontratosFcontratos
Fcontratos
 
Peggy elasticsearch應用
Peggy elasticsearch應用Peggy elasticsearch應用
Peggy elasticsearch應用
 
Cracking for the Blue Team
Cracking for the Blue TeamCracking for the Blue Team
Cracking for the Blue Team
 

Destacado (8)

Ux tech trends
Ux tech trendsUx tech trends
Ux tech trends
 
윈도우 스토어의 가능성
윈도우 스토어의 가능성윈도우 스토어의 가능성
윈도우 스토어의 가능성
 
Html5 ie9
Html5 ie9Html5 ie9
Html5 ie9
 
3 Screen UX - uxcampseoul 2011
3 Screen UX - uxcampseoul 20113 Screen UX - uxcampseoul 2011
3 Screen UX - uxcampseoul 2011
 
IE10 PP4 update for W3C HTML5 KIG
IE10 PP4 update for W3C HTML5 KIGIE10 PP4 update for W3C HTML5 KIG
IE10 PP4 update for W3C HTML5 KIG
 
JSLounge - TypeScript 소개
JSLounge - TypeScript 소개JSLounge - TypeScript 소개
JSLounge - TypeScript 소개
 
Pp3 devweb
Pp3 devwebPp3 devweb
Pp3 devweb
 
사용자의 경험가치
사용자의 경험가치사용자의 경험가치
사용자의 경험가치
 

Similar a IE9에서 HTML5 개발하기

Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
Even Wu
 
Sass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IVSass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IV
Dirk Ginader
 
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your designSCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
Frédéric Harper
 
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference ZürichHTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
Robert Nyman
 
Paperjs presentation
Paperjs presentationPaperjs presentation
Paperjs presentation
sharp-blade
 

Similar a IE9에서 HTML5 개발하기 (20)

Responsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebResponsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da Web
 
Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
 
Drawing a Circle Three Ways: Generating Graphics for the Web
Drawing a Circle Three Ways: Generating Graphics for the WebDrawing a Circle Three Ways: Generating Graphics for the Web
Drawing a Circle Three Ways: Generating Graphics for the Web
 
Palestra pré processadores CSS
Palestra pré processadores CSSPalestra pré processadores CSS
Palestra pré processadores CSS
 
Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
 
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile EventHTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
 
Implementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 WorkshopImplementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 Workshop
 
Sass compass
Sass compassSass compass
Sass compass
 
CSS3 Takes on the World
CSS3 Takes on the WorldCSS3 Takes on the World
CSS3 Takes on the World
 
Intro to HTML5 Canvas
Intro to HTML5 CanvasIntro to HTML5 Canvas
Intro to HTML5 Canvas
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)
 
Real-Time Analytics with Solr: Presented by Yonik Seeley, Cloudera
Real-Time Analytics with Solr: Presented by Yonik Seeley, ClouderaReal-Time Analytics with Solr: Presented by Yonik Seeley, Cloudera
Real-Time Analytics with Solr: Presented by Yonik Seeley, Cloudera
 
Sass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IVSass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IV
 
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your designSCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
 
Massimo Artizzu - The tricks of Houdini: a magic wand for the future of CSS -...
Massimo Artizzu - The tricks of Houdini: a magic wand for the future of CSS -...Massimo Artizzu - The tricks of Houdini: a magic wand for the future of CSS -...
Massimo Artizzu - The tricks of Houdini: a magic wand for the future of CSS -...
 
CSS for basic learner
CSS for basic learnerCSS for basic learner
CSS for basic learner
 
Css3
Css3Css3
Css3
 
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference ZürichHTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
 
CSS'in Gücü Adına
CSS'in Gücü AdınaCSS'in Gücü Adına
CSS'in Gücü Adına
 
Paperjs presentation
Paperjs presentationPaperjs presentation
Paperjs presentation
 

Más de Reagan Hwang (8)

김진우 2009 Uxeye A Unverified View From Hci Perspective
김진우 2009 Uxeye A Unverified View From Hci Perspective김진우 2009 Uxeye A Unverified View From Hci Perspective
김진우 2009 Uxeye A Unverified View From Hci Perspective
 
Silverlight2 Security
Silverlight2 SecuritySilverlight2 Security
Silverlight2 Security
 
Introducing Microsoft ux platforms
Introducing Microsoft ux platformsIntroducing Microsoft ux platforms
Introducing Microsoft ux platforms
 
Designing widget
Designing widgetDesigning widget
Designing widget
 
Introducing UX
Introducing UXIntroducing UX
Introducing UX
 
Designing Silverlight
Designing SilverlightDesigning Silverlight
Designing Silverlight
 
Korean Silverlight Showcases
Korean Silverlight ShowcasesKorean Silverlight Showcases
Korean Silverlight Showcases
 
Internet Explorer 8 Beta 2 Features For Better Browsing Experience
Internet Explorer 8 Beta 2 Features For Better Browsing ExperienceInternet Explorer 8 Beta 2 Features For Better Browsing Experience
Internet Explorer 8 Beta 2 Features For Better Browsing Experience
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

IE9에서 HTML5 개발하기

  • 1. IE9에서 HTML5 개발하기 황리건, 한국 마이크로소프트
  • 2.
  • 3. 1
  • 4.
  • 5. Mul$-­‐Core  CPU   GPU  Architecture  GPUs  
  • 6. myContext.drawImage(image,  sx,  sy,  sWidth,  sHeight,  dx,  dy,  dWidth,  dHeight);  
  • 8.
  • 9.
  • 10. var  myCanvas  =  document.getElementById('myCanvas');   var  ctx  =  myCanvas.getContext("2d");   …   ctx.save();   ctx.translate(x,  y);   ctx.scale(scale,  scale);     ctx.transform(flip,  0,  0,  1,  0,  0);   ctx.drawImage(imageStrip,  fishW  *  cell,  fishH  *  species,  fishW,   fishH,  -­‐fishW  /  2,  -­‐fishH  /  2,  fishW,  fishH);   scale  =  nextScale;   ctx.restore();  
  • 11.
  • 12.
  • 13.
  • 14. <script  type="text/javascript">    function  addWebApp()  {     try  {      window.external.msAddSiteMode();     }  catch(ex)  {        //  Site  Mode  not  supported.      }     }     </script>    <button  onclick="addWebApp()"  title="Click  to  add  this   webpage  to  your  Windows  Start  menu.">  Launch  in  Site   Mode</button>    
  • 15.
  • 16. 2
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29. 3
  • 30.
  • 31. 7000    top  sites  
  • 32. DOM   •  XHTML   •  DOM  Core  (createDocument)   •  L2  (addEventListener)   •  L3  (DragEvent)   •  Traversal   •  Range   •  SelecWon   •  DOMContentLoaded   •  getElementsByClassName   •  …   Graphics   •  Video   •  Audio   •  Canvas   •  SVG   •  Shapes   •  Text   •  TransformaWons   •  Events   •  Styling   •  …   CSS3   •  Media  Queries   •  Color  (opacity)   •  Backgrounds  &  Borders   •  Selectors   •  Namespaces   •  Fonts   •  Values  and  Units   •  …  
  • 33. CSS3 New additions – Borders 33 •  Borders •  border-color •  Values : top right bottom left <div  style="  border-­‐color:red  green  orange  blue;”>   •  border-radius •  Values : Top-Left Top-Right Bottom-Right Botton-Left Width <div  style="  border-­‐radius:  0px  100px  100px  0px;”>   •  border-style •  Values : dotted | dashed | groove | ridge | double <div  style="  border-­‐style:  dotted;”>   •  box-shadow <div  style="  box-­‐shadow:  5px  5px  10px  #000;”>  
  • 34. CSS3 New additions – Backgrounds 34 •  Backgrounds •  background-origin •  background-clip •  background-size •  multiple backgrounds div.Sample   {    height:  200px;    width:  720px;    padding:  150px  20px  20px  20px;    background:  url(body-­‐top.gif)  top  left  no-­‐repeat,    url(banner_fresco.jpg)  11px  11px  no-­‐repeat,    url(body-­‐bottom.gif)  bottom  left  no-­‐repeat,    url(body-­‐middle.gif)  left  repeat-­‐y;   }
  • 35. •  Color •  HSL colors <div  style="background-­‐color:  hsl  (0,100%,  50%);">     •  HSLA colors <div  style="background-­‐color:  hsla  (0,100%,50%,0.2);">   •  RGBA colors <div  style="background:  rgba  (255,  0,  0,  0.2);">     •  Opacity <div  style="background:  rgb  (255,  0,  0)  ;  opacity:  0.5;">   CSS3 New additions – Color 35
  • 36. CSS3 New additions – Text Effects 36 •  Text effects •  text-overflow <div  style=“  text-­‐overflow:  ellipsis;”>   •  word-wrap <div  style=“  word-­‐wrap:  break-­‐word;”>  
  • 37. CSS3 New additions – Selectors 37 •  User-interface box-sizing •  resize •  outline •  nav-top, nav-right, nav-bottom, nav-left •  Selectors •  Attribute selectors  [att^=val] att attribute whose value begins with the prefix “val”.  [att$=val] att attribute whose value ends with the suffix “val”.  [att*=val] att attribute whose value contains the substring “val”. p[title^=“sample"]  {background:  yellow;}  
  • 38. CSS3 New additions – Web Fonts / Media Query 38 •  Basic box model •  overflow-x •  overflow-y •  Web fonts  @font-­‐face  {                      font-­‐family:  Whimsy;                  src:  url('Whimsy.woff');                }    <div  style=“  font:  24pt  Whimsy,  sans-­‐serif;”>   •  Media Queries    @media  (max-­‐width:1024px)  {      .displaytext  {  background-­‐color:  #F0F;  font:  24pt  sans-­‐serif;  }  }      @media  (max-­‐width:800px)  {      .displaytext  {  background-­‐color:  #F00;  font:  18pt  sans-­‐serif;  }  }    
  • 39. if(  navigator.userAgent.indexOf('MSIE')  !=  -­‐1  )   {    //  Code  written  for  browser  X   }   else   {    //  Code  written  for  browser  Y   }  
  • 40.
  • 41. =  체크 포인트   =  대응 코드   기능 체크  버전 체크