From 5b07576813524034600c6dc54319aafc72b548a5 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Sat, 12 Nov 2016 20:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=AC=A2=E8=BF=8E=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=80=82=E9=85=8D=E4=B8=8D=E5=90=8C=E7=9A=84=E5=88=86?= =?UTF-8?q?=E8=BE=A8=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/well.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Scripts/well.js b/Bootstrap.Admin/Scripts/well.js index 1858375e..71e2de80 100644 --- a/Bootstrap.Admin/Scripts/well.js +++ b/Bootstrap.Admin/Scripts/well.js @@ -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);