Dobrodošli, goste ( Prijava | Registracija )

 
Reply to this topicStart new topic

Kodiranje HTML/CSS za ipad

V
PhobOS
poruka 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!
Go to the top of the page
 
+Quote Post
Trunks
poruka Feb 2 2012, 21:05
Poruka #2


Administrator

Grupa: Admin
Poruke: 5,110
Datum reg.: 13-January 05
Lokacija: Beograd, Srbija
Član broj: 1



Google: responsive web design, media queries.
Go to the top of the page
 
+Quote Post
vili
poruka Feb 2 2012, 21:58
Poruka #3


zli poručnik

Grupa: Urednici
Poruke: 6,817
Datum reg.: 19-January 05
Lokacija: Rapa Nui
Član broj: 68



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

Go to the top of the page
 
+Quote Post
PhobOS
poruka 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 smile.gif
Go to the top of the page
 
+Quote Post
vili
poruka Feb 2 2012, 22:12
Poruka #5


zli poručnik

Grupa: Urednici
Poruke: 6,817
Datum reg.: 19-January 05
Lokacija: Rapa Nui
Član broj: 68



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.
Go to the top of the page
 
+Quote Post
PhobOS
poruka 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 smile.gif Landscape izgleda savrseno naravno. Medjutim u Portraitu kao sto rekoh iskace sve jedino kada ga rucno odzumiram on stane lepo na ekran.

Inace kada se radi ovakav fluid layout kakvo je stanje sa slikama ?? Kako se one skaliraju?
Go to the top of the page
 
+Quote Post
vili
poruka Feb 2 2012, 22:18
Poruka #7


zli poručnik

Grupa: Urednici
Poruke: 6,817
Datum reg.: 19-January 05
Lokacija: Rapa Nui
Član broj: 68



CITAT (PhobOS @ Feb 2 2012, 22:14) *
Kao sto rekoh u 960 je sve smile.gif Landscape izgleda savrseno naravno. Medjutim u Portraitu kao sto rekoh iskace sve jedino kada ga rucno odzumiram on stane lepo na ekran.

Kao sto rekoh - nemoguce, ukoliko nije definisan meta "viewport".
CITAT (PhobOS @ Feb 2 2012, 22:14) *
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/
Go to the top of the page
 
+Quote Post
PhobOS
poruka Feb 2 2012, 22:19
Poruka #8




Grupa: Članovi
Poruke: 35
Datum reg.: 19-February 06
Član broj: 3,430



Hvala iscitacu linkove smile.gif
Go to the top of the page
 
+Quote Post
vili
poruka Feb 2 2012, 22:25
Poruka #9


zli poručnik

Grupa: Urednici
Poruke: 6,817
Datum reg.: 19-January 05
Lokacija: Rapa Nui
Član broj: 68



Kad si vec tamo, procitaj prvo ovo: http://www.alistapart.com/articles/responsive-web-design/
Go to the top of the page
 
+Quote Post
PhobOS
poruka 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 wink.gif Izgleda da cu morati da preradim layout za ipad
Go to the top of the page
 
+Quote Post
vili
poruka Feb 2 2012, 22:34
Poruka #11


zli poručnik

Grupa: Urednici
Poruke: 6,817
Datum reg.: 19-January 05
Lokacija: Rapa Nui
Član broj: 68



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)">
Go to the top of the page
 
+Quote Post
benny
poruka Feb 14 2013, 14:21
Poruka #12




Grupa: Članovi 1
Poruke: 24
Datum reg.: 31-January 08
Lokacija: Belgrade
Član broj: 18,780



koristi bootstrap
http://twitter.github.com/bootstrap/

ili media queries
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



Lo-fi verzija Trenutno vreme: Monday 20. May 2013 - 01:10

Sve informacije (poruke, teme i sl.) predstavljaju stavove samo njihovih autora.
Objavljivanje informacija sa sajta u nekomercijalne svrhe moguće je samo uz navođenje URL adrese diskusije.
Za sve druge vidove distribucije potrebno je imati izričitu dozvolu administratora Dizajn Zone i/ili autora poruka.
Autorska prava za sadržaj poruke zadržava njihov autor, osim ako nije drugačije naznačeno.

powered by:Plus hosting