Kodiranje HTML/CSS za ipad |
Dobrodošli, goste ( Prijava | Registracija )
![]() ![]() |
Kodiranje HTML/CSS za ipad |
Feb 2 2012, 20:22
Poruka
#1
|
|
|
Grupa: Članovi Poruke: 35 Datum reg.: 19-February 06 Član broj: 3,430 |
Pozdrav,
iskodirao sam sajt klasicno desktop verziju u 960gridu. Naravno treba mi da se sajt sto bolje vidi i na ipadu. U landscape modu je sve ok posto je rezolucija 1024 a moja sirina 960 tako da radi bez problema. E sada problem je portrait modu koji je sirok negde valjda oko 708px. Da li moram ceo layout da prekodiram u manju sirinu za ovaj mod i smanjim dimenzije slika. Ili postoji neka skripta ili naredba da se sajt pri ucitavanju u portrait modu odzumira po defaultu i da stane ceo na ekran. hvala! |
|
|
|
Feb 2 2012, 21:05
Poruka
#2
|
|
|
Google: responsive web design, media queries.
|
|
|
|
|
Feb 2 2012, 21:58
Poruka
#3
|
|
|
CITAT da se sajt pri ucitavanju u portrait modu odzumira po defaultu i da stane ceo na ekran. Po defaultu, ukoliko nema meta viewport-a definisanog, sajt se skupi na sirinu ekrana iPad-a i stane ceo na ekran (po sirini). U cemu je problem? Ukoliko hoces da ti prikaz sajta bude optimizovan specificno za razlicite platforme/rezolucije, onda pogledaj ovo sto je trunks napisao
|
|
|
|
|
Feb 2 2012, 22:04
Poruka
#4
|
|
|
Grupa: Članovi Poruke: 35 Datum reg.: 19-February 06 Član broj: 3,430 |
Nema meta za viewport a sajt opet izgleda odseceno i nije fit na ceo ekran
|
|
|
|
Feb 2 2012, 22:12
Poruka
#5
|
|
|
Nemoguce!
CITAT Any website with a width larger than the iPad screen resolution will be scaled down and zoomable. If your site is narrower than the iPad screen orientations, that could cause unnecessary margins. In this case you’ll need to adjust the viewport settings. Your content should be scaled so that the number of visible pixels matches the screen width. You can also set the width to a specific number to fit content designed for that exact size.
While designing web pages for the iPad, it’s advisable to use the 960 grid system. This most widely used width has become extremely popular due to its ability to fit a large number of modern screen resolutions. If your website is designed to be around 960 pixels wide, it will then show up full scale on the iPad. In general, make your web page work seamlessly in landscape and portrait mode. Note that Safari (the browser that the iPad runs) always calculates device width based on the portrait orientation. If you rotate to landscape mode, the content is not reflowed, but scaled up to fit the wider screen. |
|
|
|
|
Feb 2 2012, 22:14
Poruka
#6
|
|
|
Grupa: Članovi Poruke: 35 Datum reg.: 19-February 06 Član broj: 3,430 |
Kao sto rekoh u 960 je sve
Inace kada se radi ovakav fluid layout kakvo je stanje sa slikama ?? Kako se one skaliraju? |
|
|
|
Feb 2 2012, 22:18
Poruka
#7
|
|
|
Kao sto rekoh u 960 je sve Kao sto rekoh - nemoguce, ukoliko nije definisan meta "viewport". Inace kada se radi ovakav fluid layout kakvo je stanje sa slikama ?? Kako se one skaliraju? http://www.alistapart.com/articles/respons...d-what-we-need/ |
|
|
|
|
Feb 2 2012, 22:19
Poruka
#8
|
|
|
Grupa: Članovi Poruke: 35 Datum reg.: 19-February 06 Član broj: 3,430 |
Hvala iscitacu linkove
|
|
|
|
Feb 2 2012, 22:25
Poruka
#9
|
|
|
Kad si vec tamo, procitaj prvo ovo: http://www.alistapart.com/articles/responsive-web-design/
|
|
|
|
|
Feb 2 2012, 22:27
Poruka
#10
|
|
|
Grupa: Članovi Poruke: 35 Datum reg.: 19-February 06 Član broj: 3,430 |
Hvala jos jednom. Iscitacu pa cemo videti kako cu se snaci.
Problem je sto je ovaj dizajn vec gotov i iskodiran |
|
|
|
Feb 2 2012, 22:34
Poruka
#11
|
|
|
Ne znam kako je uradjen lejaut, ali postoji sansa da se samo dodatnim css property-ima moze optimizovati.
CODE <style type="text/css" media="only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)">
|
|
|
|
|
Feb 14 2013, 14:21
Poruka
#12
|
|
|
Grupa: Članovi 1 Poruke: 24 Datum reg.: 31-January 08 Lokacija: Belgrade Član broj: 18,780 |
|
|
|
|
![]() ![]() |
| Lo-fi verzija | Trenutno vreme: Sunday 26. May 2013 - 01:28 |