gpt4 book ai didi

html - 我怎样才能给出这个元素的全宽?

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

我有这个网站:

http://dl.dg-site.com/functionmentes/

有一个颜色为#D9D9D9的div

代码 CSS:

#full_bar{background:#D9D9D9;width:100%;height:100px;}

我希望我的 div 成为全宽网站并粘贴到页脚。

我该怎么做?

我在 Wordpress 中使用主题。

提前致谢!

最佳答案

通过固定位置,这将确保在用户上下滚动您的网站时它会跟随用户。

#full_bar {
background: #d9d9d9;
width: 100%;
height: 100px;
position: fixed;
bottom: 0;
left: 0;
}

关于html - 我怎样才能给出这个元素的全宽?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28697164/

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