回答編集履歴
2
少し変更
    
        answer	
    CHANGED
    
    | @@ -14,11 +14,12 @@ | |
| 14 14 |  | 
| 15 15 | 
             
            # 質問の変更に合わせて追記
         | 
| 16 16 |  | 
| 17 | 
            -
            [サンプル](https://jsfiddle.net/Lhankor_Mhy/sbvua6Lz/ | 
| 17 | 
            +
            [サンプル](https://jsfiddle.net/Lhankor_Mhy/sbvua6Lz/2/)
         | 
| 18 18 |  | 
| 19 19 | 
             
            ```css
         | 
| 20 20 | 
             
            .header {
         | 
| 21 21 | 
             
              position: fixed;
         | 
| 22 | 
            +
              width: 100%;
         | 
| 22 23 | 
             
            }
         | 
| 23 24 | 
             
            li{
         | 
| 24 25 | 
             
              display: contents;
         | 
1
質問の変更に合わせて追記
    
        answer	
    CHANGED
    
    | @@ -10,4 +10,17 @@ | |
| 10 10 | 
             
            li{
         | 
| 11 11 | 
             
              display: contents;
         | 
| 12 12 | 
             
            }
         | 
| 13 | 
            +
            ```
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            # 質問の変更に合わせて追記
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            [サンプル](https://jsfiddle.net/Lhankor_Mhy/sbvua6Lz/1/)
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            ```css
         | 
| 20 | 
            +
            .header {
         | 
| 21 | 
            +
              position: fixed;
         | 
| 22 | 
            +
            }
         | 
| 23 | 
            +
            li{
         | 
| 24 | 
            +
              display: contents;
         | 
| 25 | 
            +
            }
         | 
| 13 26 | 
             
            ```
         | 
