A scanner, including a contact image sensor module and an elasticity-providing element, is provided. When scanning, the elasticity-providing element is capable of avoiding vertical shift of contact image sensor module resulting from mechanical friction or other unexpected. Therefore, the contact image sensor module can retrieve clear images all the time.