toto togel terpercaya situs toto terbaik bo togel resmi wla bandar togel terpercaya 10 situs togel terpercaya daftar situs togel terpercaya Slot Gacor slot gacor bandar togel terpercaya bandar togel terpercaya bet 200 phising Phising situs toto PHISING bandar togel toto togel situs togel PHISING agen togel terpercaya bandar togel terpercaya slot demo gacor slot demo situs togel situs togel terpercaya situs togel situs toto togel tototogel bandar togel terpercaya slot maxwin toto slot bandar togel terpercaya bandar togel terpercaya bandar togel terpercaya link togel 10 bandar togel terpercaya 10 situs togel terpercaya situs toto bandar togel bo togel terpercaya Slot Gacor slot gacor bandar togel terpercaya bandar togel terpercaya bet 200 phising Phising bo togel toto togel terpercaya situs togel situs toto togel toto togel terbaik bandar togel terpercaya bo togel situs togel situs togel terpercaya 10 bandar togel terpercaya bandar togel bandar togel terpercaya situs slot bo togel slot anti rungkad toto togel situs togel situs togel terpercaya bandar togel terpercaya situs toto bo togel bandar togel terpercaya bandar togel terpercaya situs toto togel link slot gampang menang 10 situs toto togel 4D link lot 4D Daftar situs togel bandar togel terpercaya situs togel resmi wla 10 situs togel terpercaya toto togel 4D situs togel terpercaya link toto 4D bo togel bandar togel terpercaya bandar togel terpercaya bandar togel terpercaya bandar togel terpercaya slot gacor slot gacor slot gacor tototogel toto togel 4d slot dana situs togel terpercaya slot dana gacor bo togel situs toto togel PHISING situs toto situs toto PHISING bandar togel Slot Gacor slot gacor bandar togel terpercaya bandar togel terpercaya bet 200 phising Phisingslot gacor bo togel terbesar link situs gacor mudah jp bandar togel togel terpercaya 10 bandar togel bet 100 10 situs togel terpercaya situs toto bo togel toto 4D bandar togel terpercaya bandar togel terpercaya bandar togel terpercaya situs togel terpercaya toto slot agen togel terpercaya slot dana slot dana situs slot gacor togel terpercaya situs gacor hari ini situs bandar togel bandar togel bet 100 10 bandar togel mudah jp Slot Gacor slot gacor bandar togel terpercaya bandar togel terpercaya bet 200 phising Phising situs togel bandar togel terpercaya bo togel terpercaya bandar togel situs togel terpercaya situs toto bandar togel PHISING situs toto bandar togel PHISING 5 bandar togel bandar togel terpercaya situs togel terpercaya situs togel terpercaya 10 situs togel terpercaya bandar togel PHISING toto togel toto togel PHISING bandar togel bandar togel terpercaya 10 bandar togel terbesar bandar togel 4D daftar bandar togel bet 100 daftar bandar togel 10 bandar togel gampang maxwin Slot Gacor slot gacor bandar togel terpercaya bandar togel terpercaya bet 200 phising Phising situs togel terpercaya bandar togel terpercaya situs toto togel terpercaya bandar togel terpercaya slot gacor 4d slot luar negeri slot gacor situs togel terpercaya bandar togel terpercaya situs togel terpercaya bandar togel terpercaya situs togel resmi bandar togel terpercaya bandar togel terpercaya slot gacor slot gacor bandar togel terpercaya bo togel terpercaya situs toto 10 bandar togel terpercaya bandar togel terpercaya situs togel terpercaya situs toto togel situs bandar togel 4d bandar togel terpercaya daftar bandar togel 10 bandar togel terbesar bandar togel terbaik 10 bandar togel gampang maxwin slot gacor slot maxwin bandar togel terpercaya agen togel terpercaya bandar togel terpercaya bandar togel terpercaya slot gacor slot gacor bandar togel terpercaya bo togel terpercaya bo togel toto togel bandar togel terpercaya bo togel situs togel terpercaya bandar togel terpercaya slot gacor slot gacor toto togel PHISING situs toto bandar togel PHISING situs toto slot gacor slot gacor situs togel terpercaya bandar togel terpercaya bandar togel terpercaya bandar togel terpercaya toto4d 10 situs togel terpercaya situs togel terpercaya slot gacor slot gacor situs bandar togel terpercaya togel terpercaya bandar togel bet 100 10 bandar togel resmi wla daftar bandar togel terbaik bandar togel terpercaya Slot Gacor slot gacor bandar togel terpercaya bandar togel terpercaya bet 200 phising Phising bandar togel terpercaya situs togel resmi bandar terpercaya situs togel terpercaya slot thailand slot thailand slot luar negeri slot gacor4d situs togel bandar togel toto 4D situs togel terpercaya Slot Gacor slot gacor bandar togel terpercaya bandar togel terpercaya bet 200 phising Phising 10 bandar togel situs toto daftar situs togel terpercaya 10 bandar togel terbesar daftar bandar togel terpercaya situs togel terlengkap 10 bandar togel terpercaya situs toto terpercaya daftar situs toto togel bandar togel bandar togel terpercaya situs bandar togel situs togel Slot Gacor slot gacor phising phising Phising phising slot thailand slot gacor toto 4d bandar togel terpercaya 5 bandar togel terpercaya 10 situs togel terpercaya bandar togel terpercaya situs togel resmi situs togel terpercaya situs togel terpercaya slot thailand slot gacor situs togel terpercaya bandar togel terpercaya toto togel terpercaya situs togel terpercaya situs toto togel 10 bandar togel terpercaya daftar situs togel 10 bandar togel bet 100 daftar bandar togel situs bandar togel slot gacor4d slot thailand bandar togel terpercaya situs toto4d 10 situs togel terpercaya 5 situs togel terpercaya 10 bandar togel terpercaya bandar togel 10 situs togel terpercaya bandar togel resmi wla daftar bandar togel situs togel tototogel toto togel situs toto togel slot thailand slot gacor slot gacor situs togel terpercaya bandar togel terpercaya bandar togel slot gacor slot gacor toto togel slot thailand bandar togel terpercaya slot gacor toto togel link slot gacor slot thailand toto togel bo togel bandar togel situs togel terpercaya bandar togel terpercaya slot thailand tototogel situs togel terpercaya toto togel slot gacor 4d link slot gacor slot gacor4d toto togel situs toto bo togel link toto4d bandar togel 10 situs togel bandar togel bet 100 daftar bandar togel bandar togel resmi wla bandar togel terpercaya Slot Gacor slot gacor bandar togel terpercaya bandar togel terpercaya bet 200 Phising phising situs togel terpercaya slot depo 5k situs togel terpercaya bandar togel terpercaya slot depo 10k paito sydney paito togel bandar togel terpercaya bandar togel situs togel situs toto togel daftar bandar togel toto togel 10 situs togel terpercaya 5 situs togel terpercaya 10 bandar togel terpercaya bandar togel terpercaya bo togel bo togel terpercaya Phising phising Phising phising Phising phising bandar togel terpercaya bandar togel terpercaya situs togel terpercaya bandar togel terpercaya slot demo paito togel bo togel terpercaya situs togel bandar togel terpercaya situs togel terpercaya toto togel 5 bandar togel terpercaya bandar togel situs togel situs bandar togel toto togel togel terpercaya situs toto togel Phising phising Phising phising Phising phising bo togel situs toto situs togel 10 situs togel terpercaya 5 bandar togel terpercaya 10 bandar togel terpercaya bandar togel terpercaya situs togel terpercaya bandar togel terpercaya bandar togel terpercaya bandar togel terpercaya bandar togel terpercaya bandar togel situs toto togel 4d situs bandar togel toto togel situs togel situs toto togel 2 bandar togel terperaya link togel toto4d link bo togel bo togel terpercaya situs togel terpercaya toto togel Phising phising Phising phising phising Phising phising Phising phising Phising phising situs togel terperaya 10 situs togel terpercaya toto4d bandar togel terpercaya situs toto togel link bo togel situs togel terpercaya bandar togel terpercaya situs togel terpercaya bandar togel terpercaya sits toto situs togel terpercaya situs togel resmi situs toto togel situs toto situs togel terpercaya situs toto togel bandar togel terpercaya
easyDRaw.ru | Верстка под iPad: заметки новичка

Верстка под iPad: заметки новичка

07 Апр 2014 / Дарья Рыбалтович

В одном из проектов у меня было ТЗ: адаптивная верстка под iPad. Естественно, ни с чего начать, ни как к этому вопросу подойти, я не знала.

Верстка под iPad: заметки новичка

Первым делом был опрошен Яндекс, но поиск не дал результатов (Яндекс - такой Яндекс, выложил мне кучу предложений по верстке, но о том. как эт оделать самостоятельно - ни слова). Помог мне Гугл. он почти сразу выдал много полезной информации, но о том, чтобы в одной статье была собрана вся необходимая информация сразу, такого я, видимо, не нашла (может, конечно, плохо искала). Так что собирать сведения пришлось по кусочкам, тут и там. Поэтому и родилась идея написать такую статью, где были бы описаны все трудности, с которыми я столкнулась в процессе работы. Это даже не советы начинающим, а скорее узелки себе на паямть, елси вдруг еще столкнусь с такой задачей в будущем.

 

Первые шаги

Первым делом прописываем в <head>  следующие мета-тэги (для корректного отображения на айпаде, реально нужно):

<meta name="format-detection" content="telephone=no" /> 
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

Мне также пришлось задавать ширину контента через стили в <head>, иначе не работало :(

<? if(!strpos($_SERVER['HTTP_USER_AGENT'],'iPad')) { ?>
	<style> .content{width: 1064px;} </style>
<? } ?>

В файле стилей (в самом конце), пишем стили под айпад:

@media screen and (max-width: 1024px) {} //для альбомной ориентации (landscape)
@media screen and (max-width: 768px) {} //для книжной ориентации (portrait)

С портретными стилями надо быть аккуратнее, т.к., например, айфон распознает девайс именно как max-width: 768px, и следовательно даже в горизонтальном положении показывает урезанную версию сайта. Мне пришлось убрать эти стили, т.к. было плохо.

 

На чем тестировать?

На айпаде :) Однозначно надо проверять на нем (удобно ли нажимаются ссылки пальцем и все ли элементы хорошо видны)

Но что делать, если его нет под рукой (и у знакомых не одолжить)?

Я пошерстила инет на предмет эмуляторов айпадов, вот самые распространенные решения.

Есть много разновидностей онлайн-эмуляторов сафари на айпаде, например, http://ipad-emulator.org/, но это создает определенные трудности, потому что не получится тестить на локалхосте, надо каждый раз грузить файл стилей на хостинг.

Лично я попробовала работать с бесплатной версией программы Electric Mobile Simulator (от Electric Plum). Удобно, красиво, работает с локалхостом. Но... результат на айпаде оказался не таким, увы.

В результате я остановилась на варианте работы в Safari под Windows в среде разработчика. Очень-очень удобно, и есть отладчик кода (не firebug, конечно, но тоже мощный). Вот в этой статье "Веб-инспектор Safari" подробно описано как этот режим разработки включить и тестить. от себя добавлю только, чтобы увидеть реальный результат на большом монике, надо "сжать" окно браузера до нужного размера - и, ура! все красиво видно. А главное, что на реальном айпаде все так и отображается.

Верстка под iPad: заметки новичка

 

Еще практические советы:

Ширина окна у ауйпада 1024х768 пикселей, но опытным путем выявлено, что надо делать 1019 пикселей (ширина полосы прокрутки). Если тестить на обычном компе, с обычным сафари, то увы, у него и прокрутка обычная, 17 пикселей. Это надо помнить, и делать под 5 пикселей запас, тогда все будет красиво.

Верстка под iPad: заметки новичка

Для Apple-устройств есть полезная фича - иконка, которая отображается при добавлении сайта в закладки. По умолчанию делается скрин сайта, а это далеко не всегда красиво. Так что лучше подготовить иконку самому (или с помощью спец. программ), размерами 256х256, 128х128 или 62х62 пикселей (я делала 256) с названием apple-touch-icon.png, положить ее в корень сайта и прописать в <head>:

<link rel="apple-touch-icon-precomposed" href="/apple-touch-favicon.png" />

Не забываем про скругленные углы (их делать не надо, сафари сам их "отпилит", просто надо помнить о них и не ставить туда текст или что-т оважное).

Автор: Дарья Рыбалтович

Метки: Сайтостроение, Верстка