负相对定位会留出更多空间 [英] Negative relative positioning puts extra space

查看:26
本文介绍了负相对定位会留出更多空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://ahjer-ahjer.blogspot.com/

这是我第一次来这里...

This is my first time here...

请参考上面的网站来源.我在删除页面底部的多余空间时遇到问题.我相信这是由我的相对相对职位造成的,但我不确定如何解决此问题.

Please refer to the source of the site above. I have a problem with removing the extra space on the bottom of the page. I believe it's caused by the negative relative positions I've made but I'm not sure how to solve this problem.

我应该以任何方式更改密码吗?

Should I change my codes in any way?

另一个小问题是,对于IE,文字如果您很无聊,请重新加载页面以查看杰里米的不同个性!"看起来比Firefox低.反正也有解决这个问题的地方吗?

Another minor problem is that for IE, the text "If you're bored, reload the page to see the different personalities of Jeremy!" appears lower than in Firefox. Is there anyway to solve this problem too?

实际上!!!我有种错误的感觉.我想我使用了太多的负面相对定位:(有更好的方法吗?嗯,谢谢!

IN FACT!!! I have a feeling I have coded all this wrongly. I think I have used too much negative relative positioning :( Is there a better way? Argh. Thanks!

推荐答案

该链接无法正常工作,但是,相对定位可以移动可见内容,但会在流中保留其位置,从而保留间隙".您可以改用负的margin-top.

The link is not working but yes, relative positioning moves the visible content but keeps its position in the flow so that a "gap" stays. You could use a negative margin-top instead.

这篇关于负相对定位会留出更多空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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