An electronic device, comprising: a display screen comprising a front surface used for luminescence display and a back surface, and the display screen comprising a display area and a non-display area surrounding the display area; an infrared sensor comprising an emitter and a receiver, the emitter being located adjacent to the back surface and opposite to the non-display area, the emitter being configured to emit infrared light, and the receiver being configured to receive the infrared light; and a light blocking element arranged between the emitter and the display area, and configured to block the infrared light emitted from the emitter from entering the display area, wherein the electronic device further comprises: a light sensor arranged below the back surface and opposite the display area; and a light guiding element arranged below the back surface and being configured to transmit light, penetrating the non-display area from the front surface, to the light sensor; wherein the light guiding element comprises a light incident end and a light exit end, the light incident end faces the non-display area, the light exit end faces a light sensing face of the light sensor, and the light guiding element guides visible light penetrating the non-display area to the light sensor; wherein an arrangement of the light sensor ranges between a first state where the light sensing face is perpendicular to the back surface and a second state where the light sensing face is away from the back surface so that an included angle between the light sensing face and the back surface ranges from 90° to 180°. a display screen comprising a front surface used for luminescence display and a back surface, and the display screen comprising a display area and a non-display area surrounding the display area; an infrared sensor comprising an emitter and a receiver, the emitter being located adjacent to the back surface and opposite to the non-display area, the emitter being configured to emit infrared light, and the receiver being configured to receive the infrared light; and a light blocking element arranged between the emitter and the display area, and configured to block the infrared light emitted from the emitter from entering the display area, wherein the electronic device further comprises: a light sensor arranged below the back surface and opposite the display area; and a light guiding element arranged below the back surface and being configured to transmit light, penetrating the non-display area from the front surface, to the light sensor; a light sensor arranged below the back surface and opposite the display area; and a light guiding element arranged below the back surface and being configured to transmit light, penetrating the non-display area from the front surface, to the light sensor; wherein the light guiding element comprises a light incident end and a light exit end, the light incident end faces the non-display area, the light exit end faces a light sensing face of the light sensor, and the light guiding element guides visible light penetrating the non-display area to the light sensor; wherein an arrangement of the light sensor ranges between a first state where the light sensing face is perpendicular to the back surface and a second state where the light sensing face is away from the back surface so that an included angle between the light sensing face and the back surface ranges from 90° to 180°.