質問編集履歴

2

誤字修正

2017/06/21 10:04

投稿

Erika
Erika

スコア12

test CHANGED
File without changes
test CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  position: relative;
36
36
 
37
- overflow-y: hidden; ←効かない
37
+ overflow-x: hidden; ←効かない
38
38
 
39
39
  }
40
40
 

1

htmlとcssの内容をつけたしました。

2017/06/21 10:03

投稿

Erika
Erika

スコア12

test CHANGED
File without changes
test CHANGED
@@ -15,3 +15,39 @@
15
15
 
16
16
 
17
17
  よろしくお願いします。
18
+
19
+
20
+
21
+ ------追記----------
22
+
23
+ ```html
24
+
25
+ <section>
26
+
27
+ </section>
28
+
29
+ ```
30
+
31
+ ```css
32
+
33
+ section {
34
+
35
+ position: relative;
36
+
37
+ overflow-y: hidden; ←効かない
38
+
39
+ }
40
+
41
+ section:before { ←縦にはみだしたい、しかし横は切りたい
42
+
43
+ position: absolute;
44
+
45
+ bottom: 0;
46
+
47
+ left: 50%;
48
+
49
+ background: url(../img/pic.png) no-repeat center top;
50
+
51
+ }
52
+
53
+ ```