如何删除标题和页面内容之间的空间jquery? [英] How to remove the space between header and the page content in jquery?

查看:105
本文介绍了如何删除标题和页面内容之间的空间jquery?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除标题和第一个内容下面的空格,如果你看到jsfiddle链接。这是标题header和i'm list0之间的空格。我想删除它们之间的空间。所以我用了

I would like to remove the space below the header and the first content , If you see the jsfiddle link . These is a space between the header "header" and "i'm list0" . I want to remove the space between them . So i have used

margin-top:5px;

列表,它不工作。所以我试着为margin-bottom:-5px的标题也..不工作我使用过的任何情况。

for list, it doesn't work . so i tried for margin-bottom:-5px for header also ..It doesn;t work any case i have used.

http://jsfiddle.net/WPpfZ/25/

推荐答案

这里有一个15px的填充,不是在标题或列表,而是在两个列表项目的内容div。这将删除它:

There's a 15px padding, not on the header or the list, but on the content div that's around both list items. This will remove it:

.ui-content {
    padding-top: 0px;
}

这篇关于如何删除标题和页面内容之间的空间jquery?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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