简体   繁体   English

我的网页底部的空白

[英]Blank space on the bottom of my web page

There's a lot of blank space at the bottom of my web page. 我的网页底部有很多空白。

I used some CSS to set things up how I wanted them to be layed out, and I think somehow I did something that's causing all the extra blank space. 我使用了一些CSS来设置我希望它们被布局的方式,并且我认为以某种方式做了一些会导致所有额外空白的事情。

Any ideas what I can do to reduce that blank space at the bottom? 有什么办法可以减少底部的空白吗?

Thanks! 谢谢!

It's because your .right1 class is set to postion:relative You need to make it absolute. 这是因为您的.right1类设置为.right1 postion:relative您需要将其设置为绝对。 Here is a UPDATED fixed version: http://jsfiddle.net/AQq6T/2/ 这是已更新的固定版本: http : //jsfiddle.net/AQq6T/2/

I mean this in the nicest way possible: moving elements into place with a massive top value like you're doing with top: -540px; 我的意思是最好的方式:将元素以巨大的top值移入位置,就像对top: -540px; is rarely a good method to use. 很少是一个好方法。

Most of the code behind the page could do with some reworking, but you can quickly fix the issue you're describing; 页面后面的大多数代码都可以进行一些重做,但是您可以快速解决所描述的问题; on .right1 , set: .right1 ,设置:

position: absolute;
top: 0;
right: 50px;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM