gpt4 book ai didi

html - 页脚 CSS 问题

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

我正在制作一个 Wordpress 主题,但页脚有点问题。我想让它占据窗口的 100%,但它只占 1200px。我不知道为什么会这样显示。这里有 CSS 代码

#navigationposition {
float:left;
color:#fff;
width: 100%;
height:200px;
position:relative;
bottom:0;
left:0;
background-attachment: fixed;
background-origin: initial;
background-clip: initial;
background-repeat: no-repeat;
background-position: 100% 0;
background-position: center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-image: url("http://www.lasvegasicc.org/wp-content/uploads/2013/08/Las-Vegas-Wallpaper-HD.jpeg");
}

Here's the link to the website

最佳答案

您的 div id=#container 限制页脚不超过 1200px。这是发生在这里:

#container {
max-width: 1200px;
background-color: transparent;
margin: 0 auto;
}

您可以将页脚的内容从容器中取出或从容器规则中删除 max-width:1200px

希望这对您有所帮助。

关于html - 页脚 CSS 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27681336/

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