An electronic device, comprising: a housing comprising a first housing and a second housing slidably arranged on the first housing along a first direction, the first housing and the second housing being enclosed to form a receiving structure with an opening, the first housing being provided with a first sliding portion arranged along the first direction; a flexible display screen having a first end arranged at a side close to a bottom of the housing and a second end connected to the first housing to cover the opening; and a sliding rail mechanism comprising a bracket connected to the flexible display screen, the bracket being provided with a second sliding portion matching the first sliding portion, the first sliding portion being one of a sliding rail and a sliding groove, the second sliding portion being the other of the sliding rail and the sliding groove; the sliding rail moving along the sliding groove such that the sliding rail mechanism drives the flexible display screen to slide along the first direction relative to the first housing, wherein the sliding rail mechanism further comprises a sliding rail assembly, and the sliding rail assembly comprises a fixed base, a sliding member, and an elastic assembly; the fixed base is fixedly connected to the bracket, the sliding member is slidably arranged on the fixed base along the first direction, the elastic assembly has a first end connected to the fixed base and a second end connected to the sliding member; when the sliding member slides along the first direction relative to the fixed base, the second end of the elastic assembly and the flexible display screen are driven to move together, characterized in that the elastic assembly comprises a first rod, a second rod, and an elastic member; the first rod and the second rod are inserted into each other and slidable relative to each other, and the elastic member is connected between the first rod and the second rod; and the first rod is connected to the fixed base, and the second rod is connected to the sliding member. a housing comprising a first housing and a second housing slidably arranged on the first housing along a first direction, the first housing and the second housing being enclosed to form a receiving structure with an opening, the first housing being provided with a first sliding portion arranged along the first direction; a flexible display screen having a first end arranged at a side close to a bottom of the housing and a second end connected to the first housing to cover the opening; and a sliding rail mechanism comprising a bracket connected to the flexible display screen, the bracket being provided with a second sliding portion matching the first sliding portion, the first sliding portion being one of a sliding rail and a sliding groove, the second sliding portion being the other of the sliding rail and the sliding groove; the sliding rail moving along the sliding groove such that the sliding rail mechanism drives the flexible display screen to slide along the first direction relative to the first housing, wherein the sliding rail mechanism further comprises a sliding rail assembly, and the sliding rail assembly comprises a fixed base, a sliding member, and an elastic assembly; the fixed base is fixedly connected to the bracket, the sliding member is slidably arranged on the fixed base along the first direction, the elastic assembly has a first end connected to the fixed base and a second end connected to the sliding member; when the sliding member slides along the first direction relative to the fixed base, the second end of the elastic assembly and the flexible display screen are driven to move together, characterized in that the elastic assembly comprises a first rod, a second rod, and an elastic member; the first rod and the second rod are inserted into each other and slidable relative to each other, and the elastic member is connected between the first rod and the second rod; and the first rod is connected to the fixed base, and the second rod is connected to the sliding member.