39. Responsive Web Design (rwd) Reja: Responsive Web Design ???? Responsive Web Design


Download 0.64 Mb.
Pdf ko'rish
Sana18.06.2023
Hajmi0.64 Mb.
#1571475
Bog'liq
39. Responsive Web Design (RWD)



39. Responsive Web Design RWD
1
39. Responsive Web Design 
(RWD)
Reja:
Responsive Web Design
💡
Responsive Web Design - saytimizni turli xil qurilmalarda chiroyli va 
qulay ko'rinishini ta'minlash. HTML va CSS yordamida elementlarni 
qurilma o'lchoviga qarab berkitish, boshqa joyga ko'chirish va 
o'lchovini o'zgartirishdan tashkil topadi.
Katta o'lchamga ega monitor yordamida veb sahifa ochilganda
Kichik o'lchamga ega mobil qurilma yordamida veb sayt 
ochilganda


39. Responsive Web Design RWD
2
RWB elementlari
Apple WWDC 2010 - iPhone 4 Introduction
Introduced in June 2010, the iPhone 4 replaced the iPhone 
3GS, and included the same Apple-designed A4 processor 
found in the iPad. External improvements inc...
https://youtu.be/z__jxoczNWc?t=377
💡
Pixel ratio - qurilmaning pixeldagi ekran o'lchovi va CSS yordamida 
ko'rsatilgan pixel orasidagi nisbat


39. Responsive Web Design RWD
3
Iphone 6s misolida:


39. Responsive Web Design RWD
4
Qurilmaning ekran o'lchami: 750 x 1334px
CSS Pixel Ratio: 2
CSSdagi o'lchami: 375 x 667px
Veb sahifani "responsive" qilish
Viewport meta tag


39. Responsive Web Design RWD
5
💡
Viewport meta tag - veb sahifamizni mobil qurilmaning ekraniga 
moslashtiradi
<
head
>
<
meta 
name
="
viewport
"
content
="
width=device-width, initial-scale=1
">
<
style
>
.box { 
width: 375px; 
height: 200px; 
background-color: red; 

style
>
head
>
<
body
>
<
div 
class
="
box
">
Viewport uchun misol
div
>
body
>
Media queries

Download 0.64 Mb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling