gpt4 book ai didi

html - 页面底部在页面之间不匹配

转载 作者:太空宇宙 更新时间:2023-11-04 05:23:07 25 4
gpt4 key购买 nike

我有两个页面使用相同的 css 但看起来不同。他们在这里:

128.48.204.195:3000
128.48.204.195:3000/formats

您可以看到在页脚下方,/formats 文件没有多余的空间,而另一个文件在页脚之后的底部有大约 50 像素的额外空间。你知道为什么会这样吗?据我所知,它们使用相同的 CSS。

这是我认为会影响此的 div 的 css:

div#container
{
width:70%; /* Controls the with of the page */
margin: auto;
float: middle;
text-align:center;
/*padding: 1%;*/
border:1px solid #333;
background-color:#eee;
}

div#header
{
text-align:center;
padding:10px;
}

谢谢!

最佳答案

您在 content CSS 类上设置了最小高度。这适用于您的包装器 div。删除或更改最小高度,它会去掉多余的空间。

<div id="layout1" class="yui-t6 content"> 

关于html - 页面底部在页面之间不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5984326/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com