Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
指摘に沿って、HTML と CSS のほうを修正。
  • Loading branch information
MaruniUmebachi authored Feb 1, 2025
1 parent 55c28ca commit ebbbed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/ja/web/css/object-position/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object-position: unset;

それぞれ MDN のロゴを表示する 2 つの {{HTMLElement("img")}} 要素があります。

```html
```html live-sample___positioning_image_content
<img id="object-position-1" src="mdn.svg" alt="MDN Logo" />
<img id="object-position-2" src="mdn.svg" alt="MDN Logo" />
```
Expand All @@ -77,7 +77,7 @@ object-position: unset;

この CSS には、`<img>` 要素自体の既定のスタイルと、2 つの画像それぞれに個別のスタイルが含まれています。

```css
```css live-sample___positioning_image_content
img {
width: 300px;
height: 250px;
Expand All @@ -100,7 +100,7 @@ img {

#### 結果

{{ EmbedLiveSample('画像の内容の配置を設定', '100%','600px') }}
{{ EmbedLiveSample('Positioning_image_content', '100%','600px') }}

## 仕様書

Expand Down

0 comments on commit ebbbed4

Please sign in to comment.