質問編集履歴
2
投稿に不手際がありましてご迷惑おかけします。さらに使い方が不慣れです。
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,6 +23,7 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
+
```ここに言語を入力
|
26
27
|
.button {
|
27
28
|
position: relative;
|
28
29
|
background-color: #f39c12;
|
@@ -57,4 +58,5 @@
|
|
57
58
|
.button:hover {
|
58
59
|
opacity: 0.8; /* マウスオーバー時透明度を20%に指定 */
|
59
60
|
color: #fff;
|
60
|
-
}
|
61
|
+
}
|
62
|
+
```
|
1
CSSを追加いたしました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,4 +19,42 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
※完成イメージではお問い合わせボタンが上下にありますが実際には一つです。
|
22
|
-
お問い合わせボタンのサイズが1としたら、電話番号と受付時間0.5ずつにないります。
|
22
|
+
お問い合わせボタンのサイズが1としたら、電話番号と受付時間0.5ずつにないります。
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
.button {
|
27
|
+
position: relative;
|
28
|
+
background-color: #f39c12;
|
29
|
+
box-shadow: 0 3px 0 #e67e22;
|
30
|
+
border-radius: 4px;
|
31
|
+
font-size: 16px;
|
32
|
+
color: #fff;
|
33
|
+
width: 247px;
|
34
|
+
line-height: 42px;
|
35
|
+
display: inline-block;
|
36
|
+
text-align: center;
|
37
|
+
text-decoration: none;
|
38
|
+
}
|
39
|
+
.button:active {
|
40
|
+
top: 3px;
|
41
|
+
box-shadow: none;
|
42
|
+
}
|
43
|
+
.button::before,
|
44
|
+
.button::after {
|
45
|
+
position: absolute;
|
46
|
+
z-index: -1;
|
47
|
+
display: block;
|
48
|
+
content: '';
|
49
|
+
}
|
50
|
+
.button,
|
51
|
+
.button::before,
|
52
|
+
.button::after {
|
53
|
+
-webkit-box-sizing: border-box;
|
54
|
+
-moz-box-sizing: border-box;
|
55
|
+
box-sizing: border-box;
|
56
|
+
}
|
57
|
+
.button:hover {
|
58
|
+
opacity: 0.8; /* マウスオーバー時透明度を20%に指定 */
|
59
|
+
color: #fff;
|
60
|
+
}
|