.scrlOff {position: fixed;height:100%;width:100%;overflow:hidden !important;}
$('body').addClass('scrlOff'); $(window).bind('scroll').scroll(function(e){$(this).scrollTop(top).scrollLeft(left);e.preventDefault();e.stopPropagation();}); $('body').removeClass('scrlOff'); $(window).unbind('scroll');
$('.rnWrap').addClass('scrlOff').css('position','fixed'); $('.rnWrap').bind('touchmove',function(e){e.preventDefault();e.stopPropagation();return false;}); $('.mfp-wrap').css({ 'top':'0', 'position':'fixed' });
[코딩규칙] HTML/CSS 네이밍 규칙
http://myeonguni.tistory.com/1608
NHN은 이렇게 한다! HTML/CSS 코딩 컨벤션
http://nuli.navercorp.com/sharing/fe/coding
Daum 웹표준을 다루다 Web Standards Darum - 네이밍 가이드
$.ajax({ url: "/shop/promotion/augustPrimiumEvent?imageFolder=201708", dataType: "html", data: data, success: function(html) { $("div#augustPrimiumEvent").html(html).promise().done( function() { $('div#augustPrimiumEvent').waitForImages({ finished: function() { if(location.hash.length > 1) { setTimeout(function() { $('body').scrollTo(''+location.hash); }, 500); } }, waitForAll:true }); } ); }, error: function(xhr, status, error) {} });
전반적인 em작업시
1em = 16px
12(사용하고싶은px) / 16(기준크기px) = 0.75
http://aoiyuki4u.blogspot.kr/2013/02/html.html
- em 계산기