摘要: (function() {// IE8 ployfill for GetComputed Style (for Responsive Script below)if (!window.getComputedStyle) { window.getComputedStyle = function(el, pseudo) { this.el = el; this.getPropertyValue = function(prop) { var re = /(\-([a-z]){1})/g; if (prop == 'float') prop = 'styleFloat... 阅读全文
posted @ 2013-07-12 12:27 书生小C 阅读(236) 评论(0) 推荐(0) 编辑
摘要: jQuery(document).ready(function($) { /* getting viewport width*/ var responsive_viewport = $(window).width(); /* if is below 481px */ if(responsive_viewport 481) { } /* end larger than 481px */ /* if is above or equal to 768px */ if (responsive_viewport >= 768) { } /*... 阅读全文
posted @ 2013-07-12 12:22 书生小C 阅读(221) 评论(0) 推荐(0) 编辑