質問編集履歴
5
変更
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -5,48 +5,83 @@ | |
| 5 5 | 
             
            アドバイスもらえると嬉しいです。
         | 
| 6 6 | 
             
            ```html
         | 
| 7 7 | 
             
            //boards.php
         | 
| 8 | 
            +
            <!DOCTYPE html>
         | 
| 9 | 
            +
            <html lang="ja">
         | 
| 10 | 
            +
              <head>
         | 
| 11 | 
            +
                <link rel="stylesheet" href="/css/styles.css">
         | 
| 12 | 
            +
                <meta charset="utf-8">
         | 
| 13 | 
            +
                <title>メインページ</title>
         | 
| 14 | 
            +
                <h1>掲示板へようこそ</h1>
         | 
| 15 | 
            +
                <h2>新規投稿</h2>
         | 
| 16 | 
            +
              </head>
         | 
| 17 | 
            +
              <body>
         | 
| 18 | 
            +
              <section>
         | 
| 8 | 
            -
            <form action="" method="post">
         | 
| 19 | 
            +
                <form action="" method="post">
         | 
| 9 | 
            -
             | 
| 20 | 
            +
                  <label for="title">タイトル</label><br>
         | 
| 10 | 
            -
             | 
| 21 | 
            +
                  <input type="text" name="title" id="title"><br>
         | 
| 11 | 
            -
             | 
| 22 | 
            +
                  <button type="submit">部屋を立てる</button>
         | 
| 12 | 
            -
             | 
| 23 | 
            +
                  <input type="hidden" name="token" value="29a27366d051dfe26cea26b9a13342519343257dd8fd7e5d3dfd9f3c4a489c28">
         | 
| 13 | 
            -
            </form>
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            <div class="flexbox">
         | 
| 16 | 
            -
              <div class="posts">
         | 
| 17 | 
            -
                <a href="threads.php"></a>
         | 
| 18 | 
            -
              </div>
         | 
| 19 | 
            -
              <div class="button">
         | 
| 20 | 
            -
                <form action="change.php" method="get">
         | 
| 21 | 
            -
                  <button type="submit" name="boards_id" value="">編集</button>
         | 
| 22 24 | 
             
                </form>
         | 
| 25 | 
            +
                <h2>投稿一覧</h2>
         | 
| 26 | 
            +
                <p>現在の投稿は71件です</p>
         | 
| 27 | 
            +
                <div class="flexbox">
         | 
| 28 | 
            +
                  <div class="posts">
         | 
| 29 | 
            +
                    <a href='threads.php?boards_id=143'>
         | 
| 30 | 
            +
                        ゆうき            2020-03-04 10:21:14 <br>
         | 
| 31 | 
            +
                        質問          </a>
         | 
| 32 | 
            +
                  </div>
         | 
| 33 | 
            +
                  <div class="button">
         | 
| 34 | 
            +
                    <form action="change.php" method="get">
         | 
| 35 | 
            +
                      <button type="submit" name="boards_id" value="143">編集</button>
         | 
| 36 | 
            +
                    </form>
         | 
| 23 | 
            -
             | 
| 37 | 
            +
                    <form action="delete.php" method="get">
         | 
| 24 | 
            -
             | 
| 38 | 
            +
                      <button type="submit" name="boards_id" value="143">削除</button>
         | 
| 25 | 
            -
             | 
| 39 | 
            +
                    </form>
         | 
| 26 | 
            -
             | 
| 40 | 
            +
                  </div>
         | 
| 27 | 
            -
            </div>
         | 
| 41 | 
            +
                </div>
         | 
| 42 | 
            +
              </section>
         | 
| 43 | 
            +
              </body>
         | 
| 44 | 
            +
            </html>
         | 
| 28 45 |  | 
| 29 46 | 
             
            //threads.php
         | 
| 47 | 
            +
            <html lang="ja">
         | 
| 48 | 
            +
              <head>
         | 
| 49 | 
            +
                <link rel="stylesheet" href="/css/styles.css">
         | 
| 50 | 
            +
                <meta charset="utf-8">
         | 
| 51 | 
            +
                <title>メインページ</title>
         | 
| 52 | 
            +
                <h1>掲示板へようこそ</h1>
         | 
| 53 | 
            +
                <h2>新規投稿</h2>
         | 
| 54 | 
            +
              </head>
         | 
| 55 | 
            +
              <body>
         | 
| 56 | 
            +
              <section>
         | 
| 30 | 
            -
            <form action="" method="post">
         | 
| 57 | 
            +
                <form action="" method="post">
         | 
| 31 | 
            -
             | 
| 58 | 
            +
                  <textarea name="comment" rows="8" cols="80"></textarea><br>
         | 
| 32 | 
            -
             | 
| 59 | 
            +
                  <input type="hidden" name="token" value="d93215f0ef7108f6b68de279972f55b20147700817314e6df1d5343448f280c0">
         | 
| 33 | 
            -
             | 
| 60 | 
            +
                  <button type="submit">送信</button>
         | 
| 34 | 
            -
            </form>
         | 
| 35 | 
            -
             | 
| 36 | 
            -
            <div class="flexbox">
         | 
| 37 | 
            -
              <div class="posts">
         | 
| 38 | 
            -
                <p></p>
         | 
| 39 | 
            -
              </div>
         | 
| 40 | 
            -
              <div class="button">
         | 
| 41 | 
            -
                <form action="change.php" method="get">
         | 
| 42 | 
            -
                  <button type="submit" name="threads_id" value="">編集</button>
         | 
| 43 | 
            -
                  <input type="hidden" name="board_id" value="">
         | 
| 44 61 | 
             
                </form>
         | 
| 62 | 
            +
              </section>
         | 
| 63 | 
            +
              <section>
         | 
| 64 | 
            +
                <h2>投稿一覧</h2>
         | 
| 65 | 
            +
                <p>現在の投稿は1件</p>
         | 
| 66 | 
            +
                <div class="flexbox">
         | 
| 67 | 
            +
                  <div class="posts">
         | 
| 68 | 
            +
                    <p>
         | 
| 69 | 
            +
                      ゆうき            2020-03-04 10:49:35<br>
         | 
| 70 | 
            +
                      aaaaaaaa          </p>
         | 
| 71 | 
            +
                  </div>
         | 
| 72 | 
            +
                  <div class="button">
         | 
| 73 | 
            +
                    <form action="change.php" method="get">
         | 
| 74 | 
            +
                      <button type="submit" name="threads_id" value="38">編集</button>
         | 
| 75 | 
            +
                      <input type="hidden" name="board_id" value="143">
         | 
| 76 | 
            +
                    </form>
         | 
| 45 | 
            -
             | 
| 77 | 
            +
                    <form action="delete.php" method="get">
         | 
| 46 | 
            -
             | 
| 78 | 
            +
                      <button type="submit" name="threads_id" value="38">削除</button>
         | 
| 47 | 
            -
             | 
| 79 | 
            +
                    </form>
         | 
| 48 | 
            -
             | 
| 80 | 
            +
                  </div>
         | 
| 49 | 
            -
            </div>
         | 
| 81 | 
            +
                </div>
         | 
| 82 | 
            +
              </section>
         | 
| 83 | 
            +
              </body>
         | 
| 84 | 
            +
            </html>
         | 
| 50 85 |  | 
| 51 86 | 
             
            ```
         | 
| 52 87 | 
             
            ```css
         | 
4
変更
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -114,4 +114,42 @@ | |
| 114 114 | 
             
              align-items:center;
         | 
| 115 115 | 
             
              margin-top: 0;
         | 
| 116 116 | 
             
            }
         | 
| 117 | 
            +
            ```
         | 
| 118 | 
            +
            ```html
         | 
| 119 | 
            +
            //threads.php
         | 
| 120 | 
            +
            <div class="flexbox">
         | 
| 121 | 
            +
              <div class="posts">
         | 
| 122 | 
            +
                <p>
         | 
| 123 | 
            +
                  aaa            2020-03-04 09:59:27<br>
         | 
| 124 | 
            +
                  あああ
         | 
| 125 | 
            +
                </p>
         | 
| 126 | 
            +
              </div>
         | 
| 127 | 
            +
              <div class="button">
         | 
| 128 | 
            +
                <form action="change.php" method="get">
         | 
| 129 | 
            +
                  <button type="submit" name="threads_id" value="35">編集</button>
         | 
| 130 | 
            +
                  <input type="hidden" name="board_id" value="140">
         | 
| 131 | 
            +
                </form>
         | 
| 132 | 
            +
                <form action="delete.php" method="get">
         | 
| 133 | 
            +
                  <button type="submit" name="threads_id" value="35">削除</button>
         | 
| 134 | 
            +
                </form>
         | 
| 135 | 
            +
              </div>
         | 
| 136 | 
            +
            </div>
         | 
| 137 | 
            +
             | 
| 138 | 
            +
            //boards.php
         | 
| 139 | 
            +
            <div class="flexbox">
         | 
| 140 | 
            +
              <div class="posts">
         | 
| 141 | 
            +
                <a href='threads.php?boards_id=140'>
         | 
| 142 | 
            +
                 aaa            2020-03-03 18:36:55 <br>
         | 
| 143 | 
            +
                 質問
         | 
| 144 | 
            +
                </a>
         | 
| 145 | 
            +
             </div>
         | 
| 146 | 
            +
             <div class="button">
         | 
| 147 | 
            +
               <form action="change.php" method="get">
         | 
| 148 | 
            +
                 <button type="submit" name="boards_id" value="140">編集</button>
         | 
| 149 | 
            +
               </form>
         | 
| 150 | 
            +
               <form action="delete.php" method="get">
         | 
| 151 | 
            +
                 <button type="submit" name="boards_id" value="140">削除</button>
         | 
| 152 | 
            +
               </form>
         | 
| 153 | 
            +
             </div>
         | 
| 154 | 
            +
            </div>
         | 
| 117 155 | 
             
            ```
         | 
3
変更
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -1,4 +1,5 @@ | |
| 1 1 | 
             
            ボタンホバーのcssがthreads.phpのclass="button"の削除、変更ボタンにしか効かなくて困っています。
         | 
| 2 | 
            +
            boards.phpの削除、変更ボタンには効かないです。
         | 
| 2 3 | 
             
            他のボタンにもホバーのcssを効かせたいです。
         | 
| 3 4 | 
             
            htmlは同じだからなぜ他にかからないのかがわかりません。
         | 
| 4 5 | 
             
            アドバイスもらえると嬉しいです。
         | 
2
変更
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            ボタンホバーのcssがthreads.phpのclass="button"にしか効かなくて困っています。
         | 
| 1 | 
            +
            ボタンホバーのcssがthreads.phpのclass="button"の削除、変更ボタンにしか効かなくて困っています。
         | 
| 2 2 | 
             
            他のボタンにもホバーのcssを効かせたいです。
         | 
| 3 3 | 
             
            htmlは同じだからなぜ他にかからないのかがわかりません。
         | 
| 4 4 | 
             
            アドバイスもらえると嬉しいです。
         | 
1
変更
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -1,6 +1,7 @@ | |
| 1 | 
            -
            ボタンホバーのcssがthreads.phpの | 
| 1 | 
            +
            ボタンホバーのcssがthreads.phpのclass="button"にしか効かなくて困っています。
         | 
| 2 2 | 
             
            他のボタンにもホバーのcssを効かせたいです。
         | 
| 3 | 
            -
            htmlは同じだからなぜ他にかからないのかがわかりません。 | 
| 3 | 
            +
            htmlは同じだからなぜ他にかからないのかがわかりません。
         | 
| 4 | 
            +
            アドバイスもらえると嬉しいです。
         | 
| 4 5 | 
             
            ```html
         | 
| 5 6 | 
             
            //boards.php
         | 
| 6 7 | 
             
            <form action="" method="post">
         | 
| @@ -11,19 +12,17 @@ | |
| 11 12 | 
             
            </form>
         | 
| 12 13 |  | 
| 13 14 | 
             
            <div class="flexbox">
         | 
| 14 | 
            -
             | 
| 15 | 
            +
              <div class="posts">
         | 
| 15 | 
            -
             | 
| 16 | 
            +
                <a href="threads.php"></a>
         | 
| 16 | 
            -
                        
         | 
| 17 | 
            -
                </a>
         | 
| 18 | 
            -
             | 
| 17 | 
            +
              </div>
         | 
| 19 | 
            -
             | 
| 18 | 
            +
              <div class="button">
         | 
| 20 | 
            -
             | 
| 19 | 
            +
                <form action="change.php" method="get">
         | 
| 21 | 
            -
             | 
| 20 | 
            +
                  <button type="submit" name="boards_id" value="">編集</button>
         | 
| 22 | 
            -
             | 
| 21 | 
            +
                </form>
         | 
| 23 | 
            -
             | 
| 22 | 
            +
                <form action="delete.php" method="get">
         | 
| 24 | 
            -
             | 
| 23 | 
            +
                  <button type="submit" name="boards_id" value="">削除</button>
         | 
| 25 | 
            -
             | 
| 24 | 
            +
                </form>
         | 
| 26 | 
            -
             | 
| 25 | 
            +
              </div>
         | 
| 27 26 | 
             
            </div>
         | 
| 28 27 |  | 
| 29 28 | 
             
            //threads.php
         | 
| @@ -34,21 +33,20 @@ | |
| 34 33 | 
             
            </form>
         | 
| 35 34 |  | 
| 36 35 | 
             
            <div class="flexbox">
         | 
| 37 | 
            -
             | 
| 36 | 
            +
              <div class="posts">
         | 
| 38 | 
            -
                <p>
         | 
| 39 | 
            -
                        
         | 
| 40 | 
            -
             | 
| 37 | 
            +
                <p></p>
         | 
| 41 | 
            -
             | 
| 38 | 
            +
              </div>
         | 
| 42 | 
            -
             | 
| 39 | 
            +
              <div class="button">
         | 
| 43 | 
            -
             | 
| 40 | 
            +
                <form action="change.php" method="get">
         | 
| 44 | 
            -
             | 
| 41 | 
            +
                  <button type="submit" name="threads_id" value="">編集</button>
         | 
| 45 | 
            -
             | 
| 42 | 
            +
                  <input type="hidden" name="board_id" value="">
         | 
| 46 | 
            -
             | 
| 43 | 
            +
                </form>
         | 
| 47 | 
            -
             | 
| 44 | 
            +
                <form action="delete.php" method="get">
         | 
| 48 | 
            -
             | 
| 45 | 
            +
                  <button type="submit" name="threads_id" value="">削除</button>
         | 
| 49 | 
            -
             | 
| 46 | 
            +
                </form>
         | 
| 50 | 
            -
             | 
| 47 | 
            +
              </div>
         | 
| 51 48 | 
             
            </div>
         | 
| 49 | 
            +
             | 
| 52 50 | 
             
            ```
         | 
| 53 51 | 
             
            ```css
         | 
| 54 52 | 
             
            h1,h2,form{
         | 
