質問編集履歴

1

html css の追加

2017/09/05 08:26

投稿

emerica
emerica

スコア19

test CHANGED
File without changes
test CHANGED
@@ -11,3 +11,69 @@
11
11
 
12
12
 
13
13
  動かないように、CSSの指定をposition:absoluteを指定すると治るが、stickyおよびfixedで指定したい。
14
+
15
+
16
+
17
+ ```ここに言語を入力
18
+
19
+ <!--HTML-->
20
+
21
+ <section class="section">
22
+
23
+ <p class="AAAAAAAA">
24
+
25
+ <span>
26
+
27
+ <a>
28
+
29
+ <amp-img >
30
+
31
+ <i-amphtml-sizer ></i-amphtml-sizer>
32
+
33
+ <img>
34
+
35
+ </amp-img>
36
+
37
+ </a>
38
+
39
+ </span>
40
+
41
+ </p>
42
+
43
+ </section>
44
+
45
+
46
+
47
+ <!--CSS-->
48
+
49
+ section.section {
50
+
51
+ position:relative;
52
+
53
+ transform: none;
54
+
55
+ width:100%;
56
+
57
+ }
58
+
59
+ .AAAAAAAA {
60
+
61
+ position: -webkit-sticky;/* Safari */
62
+
63
+ position: sticky;
64
+
65
+ bottom: 0;
66
+
67
+ text-align:center;
68
+
69
+ background: rgba(255,255,255, 0.8);
70
+
71
+ height: auto;
72
+
73
+ border: 5px solid rgba(255,255,255,0.2);
74
+
75
+ border-bottom: 10px solid rgba(255,255,255,0.2);
76
+
77
+ }
78
+
79
+ ```