且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

页面底部巨大的白色空间

更新时间:2023-12-03 17:19:10

看起来像这是问题:

  img {
width :110%;
身高:150%;
}

这是造成这张图片大大增加的原因:

 < img alt =border =0src =https://www.paypalobjects.com/en_US/i/scr/pixel。 gifwidth =1height =1> 

对于图片,我倾向于使用以下内容:

  img {
height:auto;
最大宽度:100%;
}


I've obviously screwed up somewhere with the height in my webpage. I'm getting a massive amount of white space at the bottom of the page, way after the content. I can't find the specific problem, I've tried many different things. I thought it was time for someone else to take a look.

Here's the url:

Thanks!

It looks like this is the issue:

img {
  width: 110%;
  height: 150%;
}

Which is causing this image to enlarge greatly:

<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">

For images, I tend to use the following:

img {
  height: auto;
  max-width: 100%;
}