質問編集履歴

1

文法の追加

2021/05/11 09:24

投稿

ayano425
ayano425

スコア2

test CHANGED
File without changes
test CHANGED
@@ -11,3 +11,107 @@
11
11
 
12
12
 
13
13
  そもそも出来ない事なのでしょうか?
14
+
15
+ コードを書き足させて頂きました。
16
+
17
+
18
+
19
+ ```html
20
+
21
+ <header>
22
+
23
+ <div id="top_img">
24
+
25
+ <div class="text">
26
+
27
+ <p>安心・安全<br>足場の事なら</p>
28
+
29
+ </div>
30
+
31
+ <div class="icon">
32
+
33
+ <img src="imags/k0898_3.png" alt="">
34
+
35
+ </div>
36
+
37
+ </div>
38
+
39
+ </div>
40
+
41
+ </header>
42
+
43
+ ```
44
+
45
+
46
+
47
+ ```scss
48
+
49
+ #top_img {
50
+
51
+ width: 100vw;
52
+
53
+ height: 100vh;
54
+
55
+ overflow: hidden;
56
+
57
+ position: relative;
58
+
59
+
60
+
61
+ .text {
62
+
63
+ p {
64
+
65
+ background-image: url("./imags/IMG_1211.jpeg");
66
+
67
+ background-size: cover;
68
+
69
+ background-repeat: no-repeat;
70
+
71
+ width: 100vw;
72
+
73
+ height: 100vh;
74
+
75
+ background-attachment: fixed;
76
+
77
+ background-position: 50% 50%; // animation: animationZoom 5s ease-in-out forwards;
78
+
79
+ color: #fff;
80
+
81
+ font-size: 4rem;
82
+
83
+ padding-top: 50px;
84
+
85
+ animation: sample2Anime 4s linear infinite alternate;
86
+
87
+ text-align: center;
88
+
89
+ z-index: -100;
90
+
91
+ }
92
+
93
+ }
94
+
95
+
96
+
97
+ .icon {
98
+
99
+ img {
100
+
101
+ background-color: red;
102
+
103
+ position: absolute;
104
+
105
+ z-index: 100;
106
+
107
+ width: 200px;
108
+
109
+ height: 300px;
110
+
111
+ }
112
+
113
+ }
114
+
115
+ }
116
+
117
+ ```