【发布时间】:2016-07-13 02:22:24
【问题描述】:
这是我的第一篇文章 - 无论如何 - 我引用了这个原始问题 Welcome screen before website loads (Click to enter) [Splash Screen]
按照第二个答案的说明创建了两个单独的 div 后,我需要帮助来了解如何在用户单击启动画面时/之后使用 javascript 更改启动画面 div 的可见性。
我对代码有非常基本的了解,但我在掌握概念方面很不错。到目前为止,这是我所得到的:
<!Splash html>
<html>
<head>
<meta charset="utf-8" />
<style>
html, body {
margin: 0;
padding: 0
}
div#splash {
max-width: 100%;
height: 100%;
background-image: url("brightsplash.jpg");
background-repeat: no-repeat;
background-size: cover;
}
div#post-splash {
display: none;}
</style>
<div id="splash">
</div>
<div id="post-splash"></div>
<h1>Taylor Forrest</h1>
<h2>photography</h2>
<h2>About</h2>
<h2>Portfolio</h2>
<h2>Contact</h2>
</html>
【问题讨论】:
-
<!Splash html>... 什么?head标签和body标签的结束在哪里?
标签: javascript html css