Patent attributes
The present disclosure provides a sliding mechanism and an electronic device. The sliding mechanism is used in the electronic device, and includes a sliding rail assembly and a driving assembly. The sliding rail assembly includes at least one fixing member and at least one sliding rail, the fixing member is fixed to a housing assembly of the electronic device and provided with a first sliding groove, and the sliding rail has an end slidably limited in the first sliding groove. The driving assembly is fixed to the housing assembly, coupled to the sliding rail, and configured to drive the at least one sliding rail to slide outwards from a retracted state to an extended state from the housing assembly and to slide inwards towards the retracted state of the housing assembly from the extended state.