关闭Div之间的间隙 [英] Closing Gap Between Divs

查看:179
本文介绍了关闭Div之间的间隙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是我们新的美食节的测试网站:

Here's my test site for a new food festival:

http://aksarbenribfest.bugs3.com/public_html/#!/page_home

我设法将卡通标志移到首页更靠近每个页面顶部的菜单箭头,但无法获取剩余的页面上移该页面。

I managed to move the cartoon logo on the front page closer to the menu arrows on the top of each page, but can't get the remaining pages to 'move up' the page.

我想要消除

由于我修改了标题之间的间隙(例如在音乐页面上的星期四,星期五和星期六)一个模板,任何其他帮助和提示是绝对赞赏 - 在我太深入之前。

Since I'm modifying a template, any other help and hints are definitely appreciated - before I get to too far into it!

推荐答案

内容位置变化的函数

$(window).resize(function (){
    if (content)
        content.stop().animate(
           {'top':(windowH()-content.height())*.5},
           500,'easeOutCubic');
});

在您的scripts.js

in your scripts.js

右现在,它是垂直居中,尝试计算一个较低的值(可能是最简单的方法是更改​​.5说.2
无论如何,小心不要在小窗口大小太多

right now, it is vertically centered, try calculating a lower value (may be the easiest way is changing the .5 to say .2 Anyway, be careful not to go too up in small windows sizes

这篇关于关闭Div之间的间隙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆