A display panel, comprising: a display layer, wherein the display layer comprises a non-pixel area and a plurality of pixel areas, and a light-emitting component (B, G, R) is disposed in each pixel area, wherein the display panel comprises a display area, and the display area comprises an under-display photographing area and a non-under-display photographing area, wherein a front-facing camera is located in the under-display photographing area of the display panel, and the front-facing camera is located on a non-light-emitting side of the display layer; in the under-display photographing area, an electrochromic layer is disposed on a light-emitting side of the display layer, and the electrochromic layer does not overlap the pixel area in a direction perpendicular to a plane on which the display panel is located; a first electrode layer is disposed on a side that is of the electrochromic layer (2, 20) and that is close to the display layer, and a second electrode layer is disposed on a side that is of the electrochromic layer (2, 20) and that is away from the display layer; and the electrochromic layer (2, 20) has a first light absorption feature under action of a first voltage difference, and has a second light absorption feature under action of a second voltage difference, wherein the first light absorption feature is that the electrochromic layer has a first absorption rate for visible light and has a second absorption rate for infrared light, the second light absorption feature is that the electrochromic layer has a third absorption rate for the visible light and has a fourth absorption rate for the infrared light, the first absorption rate is greater than the third absorption rate, and the second absorption rate is less than the fourth absorption rate; the electrochromic layer (2, 20) comprises a plurality of mutually independent electrochromic parts: and the first electrode layer or the second electrode layer comprises a plurality of mutually independent color-changing electrodes, and the plurality of mutually independent electrochromic parts are in a one-to-one correspondence with the plurality of mutually independent color-changing electrodes; the plurality of pixel areas are arranged in a matrix comprising a plurality of pixel rows and a plurality of pixel columns; the plurality of electrochromic parts comprise a plurality of first electrochromic parts and a plurality of second electrochromic parts; each of the first electrochromic parts is located in the pixel row or the pixel column; and characterized in that each of the second electrochromic parts is located outside any pixel row and any pixel column. a display layer, wherein the display layer comprises a non-pixel area and a plurality of pixel areas, and a light-emitting component (B, G, R) is disposed in each pixel area, wherein the display panel comprises a display area, and the display area comprises an under-display photographing area and a non-under-display photographing area, wherein a front-facing camera is located in the under-display photographing area of the display panel, and the front-facing camera is located on a non-light-emitting side of the display layer; in the under-display photographing area, an electrochromic layer is disposed on a light-emitting side of the display layer, and the electrochromic layer does not overlap the pixel area in a direction perpendicular to a plane on which the display panel is located; a first electrode layer is disposed on a side that is of the electrochromic layer (2, 20) and that is close to the display layer, and a second electrode layer is disposed on a side that is of the electrochromic layer (2, 20) and that is away from the display layer; and the electrochromic layer (2, 20) has a first light absorption feature under action of a first voltage difference, and has a second light absorption feature under action of a second voltage difference, wherein the first light absorption feature is that the electrochromic layer has a first absorption rate for visible light and has a second absorption rate for infrared light, the second light absorption feature is that the electrochromic layer has a third absorption rate for the visible light and has a fourth absorption rate for the infrared light, the first absorption rate is greater than the third absorption rate, and the second absorption rate is less than the fourth absorption rate; the electrochromic layer (2, 20) comprises a plurality of mutually independent electrochromic parts: and the first electrode layer or the second electrode layer comprises a plurality of mutually independent color-changing electrodes, and the plurality of mutually independent electrochromic parts are in a one-to-one correspondence with the plurality of mutually independent color-changing electrodes; the plurality of pixel areas are arranged in a matrix comprising a plurality of pixel rows and a plurality of pixel columns; the plurality of electrochromic parts comprise a plurality of first electrochromic parts and a plurality of second electrochromic parts; each of the first electrochromic parts is located in the pixel row or the pixel column; and characterized in that each of the second electrochromic parts is located outside any pixel row and any pixel column.