-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflower.html
More file actions
54 lines (52 loc) · 1.53 KB
/
flower.html
File metadata and controls
54 lines (52 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>flower</title>
<style>
#container {
position: relative;
width: 400px;
height: auto;
padding: 15px;
margin: 0 auto;
}
.over {
position: absolute;
left: 5%;
top: 85%;
}
.detail {
display: none;
}
</style>
<script src="../js/detail.js" defer></script>
</head>
<body>
<div id="container">
<img src="../images/flower.jpg" alt="꽃" />
<button class="over" id="open">상세 설명 보기</button>
<div id="desc" class="detail">
<h3>등심 붓꽃</h3>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Labore eius
ratione molestias officiis, ut ipsa, omnis voluptate voluptatem
reiciendis, nemo amet adipisci molestiae cum neque? Accusamus nisi in
blanditiis culpa!
</p>
<button id="close">상세 설명 닫기</button>
</div>
</div>
<!-- <script>
document.querySelector("#open"). => {
document.querySelector("#desc").style.display = "block";
document.querySelector("#open").style.display = "none";
};
document.querySelector("#close"). => {
document.querySelector("#desc").style.display = "none";
document.querySelector("#open").style.display = "block";
};
</script> -->
</body>
</html>