0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Markdown形式を使用してGitHubでテーブルを作成

Posted at

以下のようなテーブルを生成(目標物)

screenshot_39.png


Markdownコード

markdown
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Data 1   | Data 2   | Data 3   |
| Data 4   | Data 5   | Data 6   |

コーディング内容

Markdown形式では、パイプ記号(|)とハイフン(-)を使用して、表の列と行を定義します。
(-)を使用すると、その上のセルは中央揃えになります。
※(:)を追加すると、セルのテキストを左揃えにできますが、カラムと説明は中央揃えで問題ありません。


その他の例

目標物

screenshot_40.png

markdown
**Question**
| カラム        | 説明            |
| ------------- | --------------- |
| **id**        | **id**          |
| **name**      | **質問投稿者名** |
| **title**     | **質問タイトル** |
| **content**   | **質問本文**     |
| **created_at**| **作成日時**     |
| **updated_at**| **更新日時**     |

**answers**
| カラム        | 説明            |
| ------------- | --------------- |
| **id**        | **id**          |
| **question_id** | **question.id** |
| **name**      | **回答投稿者名** |
| **content**   | **回答本文**     |
| **created_at**| **作成日時**     |
| **updated_at**| **更新日時**     |
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?