回答編集履歴
1
微修正
test
CHANGED
@@ -1,17 +1,23 @@
|
|
1
1
|
提示されたコードを見ると
|
2
2
|
|
3
3
|
```html
|
4
|
+
...
|
5
|
+
|
4
6
|
<div class="header-left">
|
5
7
|
<img class="logo" src="https://prog-8.com/images/html/advanced/main_logo.png">
|
6
8
|
</div>
|
9
|
+
...
|
7
10
|
```
|
8
11
|
|
9
12
|
```css
|
13
|
+
...
|
14
|
+
|
10
15
|
.header-left{
|
11
16
|
margin-top:20px;
|
12
17
|
width:124px;
|
13
18
|
position:relative;left:60px;
|
14
19
|
}
|
20
|
+
...
|
15
21
|
```
|
16
22
|
|
17
23
|
こうなっていますから、幅が124pxになっているのは`<div>`要素のほうですね。中の`<img>`要素までこの幅になるわけではないです。
|