Bootstrapスタイルシートの「.html」の例


1.BootstrapのHello Worldテンプレート


Bootstrap公式例ソースコードhelloworld.htmlは以下の通りです.

<html lang="en">
  <head>
    
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

    <title>Hello, world!title>
  head>
  <body>
    <h1>Hello, world!h1>

    
    
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">script>
  body>
html>

helloworld.htmlブラウザにドラッグ&ドロップし、表示スタイルに成功しました.

2.BootstrapのTableテンプレート


Bootstrap公式例ソースコードhellotable.htmlは以下の通りです.

<html lang="en">
  <head>
    
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

    <title>Hello, world!title>
  head>

  <body>
    <table class="table">
  	<thead>
    <tr>
      <th scope="col">#th>
      <th scope="col">Firstth>
      <th scope="col">Lastth>
      <th scope="col">Handleth>
    tr>
  	thead>
  	<tbody>
    <tr>
      <th scope="row">1th>
      <td>Marktd>
      <td>Ottotd>
      <td>@mdotd>
    tr>
    <tr>
      <th scope="row">2th>
      <td>Jacobtd>
      <td>Thorntontd>
      <td>@fattd>
    tr>
    <tr>
      <th scope="row">3th>
      <td>Larrytd>
      <td>the Birdtd>
      <td>@twittertd>
    tr>
  	tbody>
	table>

  body>
html>

hellotable.htmlブラウザにドラッグ&ドロップし、表示スタイルに成功しました.

参考資料


[1.Bootstrap公式ドキュメント]https://getbootstrap.com/docs/4.3/getting-started/introduction/[2. Bootstrap Table] https://getbootstrap.com/docs/4.3/content/tables/