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?

More than 1 year has passed since last update.

4-3.2 CSS演習2

Last updated at Posted at 2022-09-14

完成イメージ

image.png

※ブラウザの幅を変えてみてください。各幅の割合は一定を保っています。

ソース

後ほど公開します。

<!DOCTYPE html>
<html lang="ja">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>タイトル</title>
    <style>
      .tblsec {
        width: 100%;
      }
      .tblsec th {
        color: blue;
        background-color: burlywood;
      }
    </style>
  </head>
  <body>
    <h1>演習</h1>
    <table border="1" class="tblsec">
      <tr>
        <th colspan="2">平均</th>
        <th rowspan="2"></th>
      </tr>
      <tr>
        <th style="width: 20%">高さ</th>
        <th style="width: 20%"></th>
      </tr>
      <tr>
        <td>1</td>
        <td>2</td>
        <td>
          <input type="radio" name="rdo1" value="0" />55
          <input type="radio" name="rdo1" value="1" />32
        </td>
      </tr>
      <tr>
        <td>4</td>
        <td>5</td>
        <td>6</td>
      </tr>
    </table>
  </body>
</html>
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?