Contenu connexe Similaire à Devon 2011-f-1 반응형 웹 디자인 (20) Devon 2011-f-1 반응형 웹 디자인8. The ingredients
A flexible, grid-based layout,
Flexible images and media, and
Media queries, a module from the CSS3 specification
9. RWD: The ingredients
A flexible, grid-based layout,
Flexible images and media, and
Media queries, a module from the CSS3 specification
13. RWD: The ingredients
A flexible, grid-based layout,
Flexible images and media, and
Media queries, a module from the CSS3 specification
14. Flexible images and media
img,
embed,
object,
video {
max-width: 100%;
_width: 100%; /* IE6 */
_overflow: hidden; /* IE6 */
}
15. RWD: The ingredients
A flexible, grid-based layout,
Flexible images and media, and
Media queries, a module from the CSS3
specification
16. media queries
Types Features
all width
screen height
device-width
print
device-height
projection orientation
tv aspect-ratio
handheld device-aspect-ratio
… color
color-index
…
24. Mobile is differenet!
http://www.slideshare.net/bryanrieger/going-mobile-a-pragmatic-look-at-mobile-design
25. media queries === silver bullets?
full desktop site
+ media queries
Sorry, not supported!
= mobile site
26. Rethink!
flexible mobile site
+ media queries
= full desktop site
27. progressive enhancement with Javascript
$(document).ready(function() {
$.get(“slides.html”, function(data) {
$(“.welcome .slides”)
.append(data)
.wrapInner('<div class=“slidewrap”>
<div id=“welcome-slides” class=“slider”>
</div></div>')
.find(“.slidewrap”)
.append(sNav)
.carousel({
slide: '.figure'
});
});
28. progressive enhancement with Javascript
Modernizr is
a small JavaScript library
that detects the availability of
native implementations for
next-generation web
technologies.
Modernizr.load([
{
test : Modernizr.websockets && window.JSON,
nope : 'functional-polyfills.js‘,
both : [ 'app.js', 'extra.js' ],
complete : function () {
myApp.init();
}
}
]);
31. 1. Determining key breakpoints!
+ features and capabilities
screen size?
local storage?
touch event?
application cache?
…
http://martymoo.com/blog/2011/08/26/mobile-first-responsive-design-and-me/
33. Accessible on any browsers
HTML + javascript
CSS
Javascript
Accessible on any browsers
HTML + javascript
CSS3
+ media queries
Javascript
+…
34. complete development & test
Build It!
HTML
CSS3
Javascript
features and capabilities
screen size?
local storage?
touch event?
application cache?
…
37. server side
HTML
what get adaptive resources
kind of…? CSS
java
script