代码如下:<script type="text/javascript"> $(document).ready(function(){ alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());//浏览器当前窗口文档body的高度 alert($(document.body).outerHeight(true));//浏览器当前窗口文档body的总高度 包括border padding margin alert($(window).width()); //浏览器当前窗口可视区域宽...
代码如下: $(document).ready(function(){ alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());//浏览器当前窗口文档body的高度 alert($(document.body).outerHeight(true));//浏览器当前窗口文档body的总高度 包括border padding margin alert($(window).width()); //浏览器当前窗口可视区域宽度 alert($(document).width());...
DIV:代码如下: ${pic.desc}${pic.poi}by ${pic.username}
CSS:代码如下:.pic_conent{height: 720px;/*这个高度会被js改掉*/text-align: center;display: table-cell;vertical-align: middle;}.pic_layer{text-align:center; width:100%; display:inline-block; vertical-align:middle;}
jquery:代码如下:$(function() {var surH = $(window).height();$(".pic_conent").height(surH);window.onresize=function(){var surH = $(w...
检测屏幕宽度,并设置为id为frame的div宽度, 根据自己网页的最大宽度来调节,小demo最大宽度为1440 代码如下: 无标题文档 function onWidthChange(){ var w=$(window).width(); x=(w-1440)/2; $("#frame").css("width",w); if(w$("#frame").css("overflow","visible"); $("#webContent").css("margin-left",x); }else if(1024$("#frame").css("overflow","hidden"); $("#webContent").css("margin-left",x); } setTimeout(...
DIV:代码如下:<div class="pic_conent"><div class=" fn-pr pic_layer"><!--图片文字介绍透明层--><section class="bg text_layer_home p10 font-yahei fn-bc"> <h2 class="f14 fefefe">${pic.desc}</h2><aside class="f12 bbb"><c:if test="${not empty pic.poi}"><span class="scenery fn-fl">${pic.poi}</span></c:if><span class="fn-fr mt10">by ${pic.username}</span></aside></section><img src="${pic.picUrl}" width=...
"dependencies": { "jquery": "~2.1.4", "angular": "~1.5.0",........
},
"resolutions": {"jquery": "~2.1.4","angular": "~1.5.0"
}凉亭安装angular-peity –save
bower angular-peity#*缓存https://github.com/projectweekend/angular-peity.git#0.0.5bower angular-peity#*验证0.0.5兑https://github.com/projectweekend/angular-peity.git# *bower peity#*缓存https://github.com/benpickles/peity.git#3.2.1bower peity#*验...