An electronic device, comprising: a display screen and a device shell, an accommodating cavity being formed between the display screen and the device shell, and a first opening being formed on a frame of the device shell; and a camera and a transmission mechanism, the transmission mechanism being located in the accommodating cavity, and the camera being connected to the transmission mechanism, characterized in that the electronic device comprises a protective cover, the protective cover has an inner cavity; wherein the camera is adapted to move from the inside of the accommodating cavity to the outside of the accommodating cavity under the action of the transmission mechanism; in a case that the camera is located in the accommodating cavity, the protective cover is located in the accommodating cavity and between the first opening and the camera, and the camera is located under the display screen; and in a case that the camera is located outside the accommodating cavity, the protective cover is located outside the accommodating cavity, and the camera is located in an inner cavity of the protective cover; a first supporting piece and a second supporting piece which are arranged at intervals, wherein the first supporting piece and the second supporting piece are placed at the device shell and located in the accommodating cavity, a space between the first supporting piece and the second supporting piece is opposite to the first opening, and the inner cavity and the space are opposite to and communicate with each other; and in a case that the camera is located in the accommodating cavity, the protective cover is located on one side of the first supporting piece close to the first opening and on one side of the second supporting piece close to the first opening, and is located between the first opening and the space, a first part of one end of the protective cover that is close to the first supporting piece is in contact with the first supporting piece, a second part of one end of the protective cover is in contact with the second supporting piece, and the camera is located in the space. a display screen and a device shell, an accommodating cavity being formed between the display screen and the device shell, and a first opening being formed on a frame of the device shell; and a camera and a transmission mechanism, the transmission mechanism being located in the accommodating cavity, and the camera being connected to the transmission mechanism, characterized in that the electronic device comprises a protective cover, the protective cover has an inner cavity; wherein the camera is adapted to move from the inside of the accommodating cavity to the outside of the accommodating cavity under the action of the transmission mechanism; in a case that the camera is located in the accommodating cavity, the protective cover is located in the accommodating cavity and between the first opening and the camera, and the camera is located under the display screen; and in a case that the camera is located outside the accommodating cavity, the protective cover is located outside the accommodating cavity, and the camera is located in an inner cavity of the protective cover; a first supporting piece and a second supporting piece which are arranged at intervals, wherein the first supporting piece and the second supporting piece are placed at the device shell and located in the accommodating cavity, a space between the first supporting piece and the second supporting piece is opposite to the first opening, and the inner cavity and the space are opposite to and communicate with each other; and in a case that the camera is located in the accommodating cavity, the protective cover is located on one side of the first supporting piece close to the first opening and on one side of the second supporting piece close to the first opening, and is located between the first opening and the space, a first part of one end of the protective cover that is close to the first supporting piece is in contact with the first supporting piece, a second part of one end of the protective cover is in contact with the second supporting piece, and the camera is located in the space.