.pc{ display:block; } .sp{ display:none; } @media only screen and (max-width:800px){ .pc{ display:none; } .sp{ display:block; } }