質問編集履歴
3
コードを提示します よろしくお願いします
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,58 @@
|
|
1
1
|
```html
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html>
|
4
|
+
<head>
|
2
|
-
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<title>Airbnbの模写です</title>
|
7
|
+
<link rel="stylesheet" href="lesson2 css.html">
|
8
|
+
<link rel="stylesheet" href="https://fontawesome.com/updates">
|
9
|
+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
|
10
|
+
</head>
|
3
11
|
|
12
|
+
|
13
|
+
<body>
|
14
|
+
<header>
|
15
|
+
<div class="containe-header">
|
16
|
+
|
17
|
+
|
18
|
+
<div class="video-wrap">
|
19
|
+
<img src="https://a0.muscache.com/airbnb/static/packages/top_rated_homes.594e0eb1.jpg" alt="">
|
20
|
+
|
21
|
+
<div class="athome">
|
22
|
+
<div class="at-mini-wr">
|
23
|
+
<div class="at-mini">
|
24
|
+
<h1>世界の果てまで、アットホーム</h1>
|
25
|
+
<a href="#">Airbnbビジネスプログラムの動画を見る ▶︎</a>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<h5>まずは仕事用メールアドレスの入力から</h5>
|
29
|
+
<div class="he-meado">
|
30
|
+
<input type="text" name="">
|
31
|
+
<div class="he-button">
|
32
|
+
<input type="submit" value="メールアドレスを追加">
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<p>出張管理をご担当ですか?</p>
|
36
|
+
<a href="##">もっと詳しく ></a>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</header>
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
<hr>
|
47
|
+
|
48
|
+
<!----------main start----------->
|
49
|
+
<main>
|
50
|
+
|
51
|
+
|
52
|
+
<h2>最高の仕事に必要なものすべてを完備</h2>
|
53
|
+
|
54
|
+
<div class="bests">
|
55
|
+
|
4
56
|
<div class="best">
|
5
57
|
<img src="https://a0.muscache.com/airbnb/static/packages/top_rated_homes.594e0eb1.jpg" alt="">
|
6
58
|
<p>高評価の宿泊先&デザイナーズホテル</p>
|
@@ -15,21 +67,85 @@
|
|
15
67
|
<img src="https://a0.muscache.com/airbnb/static/packages/collaborate.57a5ee7e.jpg" alt="">
|
16
68
|
<p>コラボを育むスペース</p>
|
17
69
|
</div>
|
70
|
+
|
71
|
+
</div>
|
72
|
+
|
73
|
+
|
18
|
-
|
74
|
+
<hr>
|
75
|
+
</main>
|
76
|
+
</body>
|
77
|
+
</html>
|
19
|
-
```css
|
78
|
+
```css
|
79
|
+
@media screen and (min-width: 768px){
|
80
|
+
/*大きい方*/
|
20
|
-
|
81
|
+
body{
|
21
|
-
|
82
|
+
width: 1250px;
|
22
|
-
height: 100px;
|
23
|
-
|
83
|
+
}
|
84
|
+
|
85
|
+
.he-meado{
|
86
|
+
position: relative;
|
87
|
+
|
88
|
+
}
|
89
|
+
header input{
|
90
|
+
height: 50px;
|
91
|
+
width: 400px;
|
92
|
+
}
|
93
|
+
|
94
|
+
header a{
|
95
|
+
color: white;
|
96
|
+
text-decoration: none;
|
97
|
+
|
98
|
+
}
|
99
|
+
|
24
100
|
|
101
|
+
|
102
|
+
header a:hover{
|
103
|
+
text-decoration: underline;
|
104
|
+
}
|
25
105
|
|
106
|
+
.he-button input{
|
107
|
+
position: absolute;
|
108
|
+
display: inline-block;
|
109
|
+
top: 10px;
|
110
|
+
left: 240px;
|
111
|
+
width: 150px;
|
112
|
+
height: 40px;
|
113
|
+
background-color: #2C7CFF;
|
114
|
+
color: white;
|
115
|
+
border-radius: 10px;
|
116
|
+
|
117
|
+
}
|
118
|
+
.video-wrap{
|
119
|
+
position: relative;
|
120
|
+
z-index: 0;
|
121
|
+
}
|
122
|
+
.video-wrap img{
|
123
|
+
width: 100%;
|
124
|
+
}
|
125
|
+
.athome{
|
126
|
+
position: absolute;
|
127
|
+
top: 200px;
|
128
|
+
left: 60px;
|
129
|
+
z-index: 100;
|
130
|
+
color: white;
|
131
|
+
}
|
132
|
+
/*.athome h1{
|
133
|
+
display: inline-block;
|
134
|
+
font-size: 90px;
|
135
|
+
}*/
|
136
|
+
|
137
|
+
|
26
138
|
.bests{
|
27
139
|
display: flex;
|
28
140
|
}
|
29
|
-
|
141
|
+
.best img{
|
142
|
+
width: 10%;
|
143
|
+
height: 100px;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
30
147
|
```
|
31
|
-
|
148
|
+
最後のbestsとbest imgを入れ替えるとデザインが変わってしまいます
|
32
|
-
|
149
|
+
|
33
|
-
コーディングが汚いくてどこでエラーが起こっているかわかりません
|
34
|
-
|
150
|
+
本当申し訳ありません
|
35
151
|
よろしくお願いします
|
2
リンク貼りました お願いします
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,29 +1,6 @@
|
|
1
|
-
A
|
2
|
-
.best img{
|
3
|
-
width: 10%;
|
4
|
-
height: 100px;
|
5
|
-
}
|
6
|
-
|
1
|
+
```html
|
7
|
-
display: flex;
|
8
|
-
}
|
9
|
-
|
2
|
+
<div class="bests">
|
10
|
-
B
|
11
|
-
.bests{
|
12
|
-
display: flex;
|
13
|
-
}
|
14
|
-
.best img{
|
15
|
-
width: 10%;
|
16
|
-
height: 100px;
|
17
|
-
}
|
18
|
-
--------------------------------------
|
19
|
-
上記のコードAとBでWEb上の表現が違うのはなぜですか
|
20
|
-
Sublime Textを使っていますバグでしょうか
|
21
3
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
<div class="bests">
|
26
|
-
|
27
4
|
<div class="best">
|
28
5
|
<img src="https://a0.muscache.com/airbnb/static/packages/top_rated_homes.594e0eb1.jpg" alt="">
|
29
6
|
<p>高評価の宿泊先&デザイナーズホテル</p>
|
@@ -38,26 +15,21 @@
|
|
38
15
|
<img src="https://a0.muscache.com/airbnb/static/packages/collaborate.57a5ee7e.jpg" alt="">
|
39
16
|
<p>コラボを育むスペース</p>
|
40
17
|
</div>
|
41
|
-
|
42
|
-
|
18
|
+
```
|
43
|
-
|
44
|
-
|
45
|
-
|
19
|
+
```css
|
46
|
-
display: flex;
|
47
|
-
}
|
48
|
-
|
20
|
+
.best img{
|
49
21
|
width: 10%;
|
50
22
|
height: 100px;
|
51
23
|
}
|
24
|
+
|
25
|
+
|
26
|
+
.bests{
|
52
|
-
|
27
|
+
display: flex;
|
28
|
+
}
|
29
|
+
|
30
|
+
```
|
31
|
+
[現在模写しているページです](file:///Users/user/Documents/lesson2/lesson2.html)
|
32
|
+
今作っているページのリンク貼りました
|
53
|
-
|
33
|
+
コーディングが汚いくてどこでエラーが起こっているかわかりません
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
34
|
+
何度もすいません
|
59
|
-
|
60
|
-
|
61
|
-

|
62
|
-
|
63
|
-
|
35
|
+
よろしくお願いします
|
1
見た時の表現の違いの画像を載せました
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,4 +17,47 @@
|
|
17
17
|
}
|
18
18
|
--------------------------------------
|
19
19
|
上記のコードAとBでWEb上の表現が違うのはなぜですか
|
20
|
-
Sublime Textを使っていますバグでしょうか
|
20
|
+
Sublime Textを使っていますバグでしょうか
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<div class="bests">
|
26
|
+
|
27
|
+
<div class="best">
|
28
|
+
<img src="https://a0.muscache.com/airbnb/static/packages/top_rated_homes.594e0eb1.jpg" alt="">
|
29
|
+
<p>高評価の宿泊先&デザイナーズホテル</p>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<div class="best">
|
33
|
+
<img src="https://a0.muscache.com/airbnb/static/packages/team_building_experiences.3f19ab77.jpg" alt="">
|
34
|
+
<p>チームビルディング体験</p>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div class="best">
|
38
|
+
<img src="https://a0.muscache.com/airbnb/static/packages/collaborate.57a5ee7e.jpg" alt="">
|
39
|
+
<p>コラボを育むスペース</p>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
.bests{
|
46
|
+
display: flex;
|
47
|
+
}
|
48
|
+
.best img{
|
49
|
+
width: 10%;
|
50
|
+
height: 100px;
|
51
|
+
}
|
52
|
+
確認したのはsafariです
|
53
|
+
いろいろ試した結果コメントアウトが関係しているかもしれません
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+

|
59
|
+
|
60
|
+
|
61
|
+

|
62
|
+
|
63
|
+
助けてくださいお願いします
|