后台欢迎页面适配不同的分辨率
This commit is contained in:
parent
553774ead6
commit
5b07576813
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue