Css 我的文字到哪里去了?
在我的电脑上,我希望在下面的片段中找到文本,居中,在音乐家的图像上方Css 我的文字到哪里去了?,css,z-index,Css,Z Index,在我的电脑上,我希望在下面的片段中找到文本,居中,在音乐家的图像上方 <div class="brand"> <h1>Looking for a musician at short notice?</h1> <div class="line-spacer"></div> <p><span>We can help</span></p> </div> 从#
<div class="brand">
<h1>Looking for a musician at short notice?</h1>
<div class="line-spacer"></div>
<p><span>We can help</span></p>
</div>
从#介绍中删除溢出
您对定位和z索引都有问题 到目前为止,它位于艺术家图像下方,而不是上方,由于它位于其他显示层的后面,因此无法看到任何文本
尝试减少
上边距
并添加z-index:1
您能显示CSS吗?或者至少是.brand
、.line spacer
以及div、h1、p或span的任何东西?它位于部分id=“services”
@Paulie\u D正确,我刚才接受了Marcelo的建议。谢谢你的建议。你已经让它出现了,现在把它放在正确的地方!知道为什么会出现在我网站的下一部分吗?
#intro .brand
{
margin-top: 40px;
}
.line-spacer
{
width: 20%;
margin:0 auto;
margin-top: 20px;
margin-bottom: 25px;
border-bottom:1px solid #fff;
}
h1
{
font-size: 36px;
}
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6
{
color: #3a3a3a;
font-weight: 700;
margin-bottom: 20px;
font-family: 'Montserrat', sans-serif;
}
#intro {
overflow-y: hidden;
}