后台欢迎页面适配不同的分辨率

This commit is contained in:
Argo-Lenovo 2016-11-12 20:43:12 +08:00
parent 553774ead6
commit 5b07576813
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,11 @@
$(function () {
$('#main-content').css('backgroundImage', 'url("../../content/images/bg.jpg")');
function resposive() {
$('.well-bg').height($(window).height() - 270);
var height = $(window).height();
if (height > 672)
$('.well-bg').height(height - 270);
else
$('.well-bg').height(height - 158);
}
$(window).on('load', resposive);
$(window).on('resize', resposive);