web Development


Web development is a broad term for the work involved in developing a web site for the Internet (World Wide Web) or an intranet (a private network). Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services.

font-family для японского языка:

 font: 14px normal 'MS Pゴシック', MS PGothic, 'ヒラギノ角ゴ Pro W3', Meiryo, 'メイリオ', sans-serif;

android, растянуть текст в теге <p>

 text-align: start;

javascript chrome safari detect

 var webkit = 'webkitRequestAnimationFrame' in window == true ? 0 : 1;

Сменить viewport при повороте устройства
(iphone, ipad, android…)

 var w = Math.abs(window.orientation) == 90 ? 960 : 640;
 document.write('<meta name="viewport" content="width='+w+', user-scalable='+webkit+'">');
 window.onorientationchange = function(){ location.reload(true); }

Для iphone, ipad fontsize 100%

 -webkit-text-size-adjust: 100%;

How to set viewport meta for iPhone that handles rotation properly

 <meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" />

Background animation

 var bgpos = 0;
 function bgAnimate(){
  $('#intro').animate({ 'y': bgpos -10 }, {
   step: function(y, fx) { $(fx.elem).css('backgroundPosition', 'center '+y+'px'); },
   duration: 200,
   easing: 'linear',
   complete: function(){ bgpos = bgpos - 10; setTimeout(bgAnimate, 500); }

Очистить очередь анимации

 $('.obj').queue('fx', []);

Читайте также:

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *