An opening and closing device including: a fixed side member; a movable
side member retained by the fixed side member to be opened and closed
freely; a wire member that is fixed at one end thereof to one of the
fixed side member and the movable side member; a rotary member that is
provided in the other of the fixed side member and the movable side
member, has the wire member wound therearound when the movable side
member is closed, and rotates in such a direction as to draw out the wire
member when the movable side member is opened; and an elastic member that
is provided in the rotary member and accumulates an elastic force which
causes the rotary member to rotate reversely to a direction in which the
rotary member rotates when the wire member is drawn out, due to rotation
of the rotary member at a time when the wire member is drawn out.