A disc player includes a base, a lid rotatably pivoted to the base, and an opening and closing mechanism secured to the base. The opening and closing mechanism includes a compression spring providing a restoration force and a pushing button for applying a pushing force thereon. The pushing button includes a locking portion for releasing the lid from the base and for clasping the lid to the base, and at least one wedged potion for interfering in one end of the compression spring to fix the compression spring.