An inkjet printer has a printing head having a nozzle surface on which a plurality of nozzles are located that spray a plurality of kinds of ink and a cap that covers the nozzle surface of the printing head. This cap includes a ring-shaped seal lip that is constructed so that the tip end thereof comes in contact with the nozzle surface to perform capping and a partitioning lip that partitions the area inside the seal lip into areas for nozzle groups that correspond to the kinds of ink. The tip end of either seal lip or partitioning lip is shaped so that it is compressed more easily than that of the other.