[发布者:u / bibCodeBob5分钟前如何让此div首先显示-需要CSS帮助![CSS]大家好,
我正在此页面上工作:
http://staging.theeducation.exchange/test-home-page/
并且我正在使用https://alvarotrigo.com/multiScroll/
但是我希望在它之前有一个全角div:
我希望具有.headerSectionNew类的div首先出现,并且我已经使用了样式:
.headerSectionNew {
background: #001035;
height: 100vh;
color: #fff;
z-index: 1;
/* margin-bottom: 140px !important; */
position: inherit;
}
但是我想将ID为#myContainer的div下推
我不确定我该怎么做-有人可以给我一些指导吗,请:)
干杯!
尝试更改height: 100vh
; min-height: 100vh
,这将迫使div扩大。您尚未显示#myContainer的代码,但如果将其包装在<div></div>
标记中,则应将其下推。如果没有,请尝试将#myContainer包装在<p></p>
标签中。