質問編集履歴

1

cssの追記

2016/10/17 08:33

投稿

nala
nala

スコア12

test CHANGED
File without changes
test CHANGED
@@ -17,6 +17,104 @@
17
17
  ```html
18
18
 
19
19
  <p id="page-top"><a href="#wrap" class="arrow sample5-5"></a></p>
20
+
21
+ ```
22
+
23
+ ```css
24
+
25
+ #page-top {
26
+
27
+ position: fixed;
28
+
29
+ bottom: 30px;
30
+
31
+ right: 30px;
32
+
33
+ }
34
+
35
+
36
+
37
+ .arrow{
38
+
39
+ position: relative;
40
+
41
+ display: inline-block;
42
+
43
+ padding: 0 5% 25% 10%;
44
+
45
+ color: #fff;
46
+
47
+ vertical-align: middle;
48
+
49
+ text-decoration: none;
50
+
51
+ }
52
+
53
+ .arrow::before,
54
+
55
+ .arrow::after{
56
+
57
+ position: absolute;
58
+
59
+ top: 0;
60
+
61
+ bottom: 50px;
62
+
63
+ left: -56px;
64
+
65
+ margin: auto;
66
+
67
+ content: "";
68
+
69
+ vertical-align: middle;
70
+
71
+ }
72
+
73
+
74
+
75
+ .sample5-5::before{
76
+
77
+ width: 50px;
78
+
79
+ height: 50px;
80
+
81
+ background: #333;
82
+
83
+ opacity: 0.7;
84
+
85
+ -webkit-border-radius: 25%;
86
+
87
+ border-radius: 25%;
88
+
89
+ position: absolute;
90
+
91
+ right: 5%;
92
+
93
+ }
94
+
95
+ .sample5-5::after{
96
+
97
+ top: 8%;
98
+
99
+ width: 15px;
100
+
101
+ height: 15px;
102
+
103
+ border-top: 4px solid #fff;
104
+
105
+ border-right: 4px solid #fff;
106
+
107
+ -webkit-transform: rotate(-45deg);
108
+
109
+ transform: rotate(-45deg);
110
+
111
+ position: absolute;
112
+
113
+ right: 0;
114
+
115
+ }
116
+
117
+
20
118
 
21
119
  ```
22
120
 
@@ -70,7 +168,9 @@
70
168
 
71
169
  ```
72
170
 
73
- ちなみにヘッダーを```<div id="wrap"></div>```で囲ってます。
171
+ ちなみにヘッダーを```<div id="wrap"></div>```で囲っております。
172
+
173
+
74
174
 
75
175
 
76
176