【发布时间】:2018-02-18 12:26:49
【问题描述】:
现在我无法在背景图片后面放置段落。我尝试过使用 z-index 和 position relative,但没有发现任何成功。我怎么能这样做?
.pageone {
background-image: url(headerhalf.png);
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
width: 100vw;
height: 100vh;
}
#aboutme {
text-align: center;
font-size: 5vw;
margin-top: 6vh;
color: #81af66;
text-shadow: 2px 2px 3px rgba(129, 131, 131, 0.25);
}
.pagecontainer {
width: 50vw;
height: 100vh;
display: flex;
justify-content: center;
}
#aboutcopy {
font-size: 1.25vw;
margin: 1.5em;
}
<div class="pageone">
<div class="pagecontainer">
<div class="aboutreal">
<p id="aboutme">About Me</p>
<p id="aboutcopy">I run a YouTube channel on which I benchmark the performance of computer hardware. I've been uploading content to YouTube for upwards of one year, and have amassed over 80 thousand views in that time period. While I'm not managing my channel I design graphics for others and myself. I design product advertisements, avatars and banners for YouTube, websites, logos, and more. I am comfortable with a wide variety of softwares such as: Adobe Photoshop, Adobe After Effects, Adobe Premiere Pro and, Unreal Engine 4. I am also learning HTML and CSS.</p>
</div>
</div>
</div>
这是该网站的链接:site
谢谢!
【问题讨论】: