a deflection device and an electronic device are disclosed . the deflection device is located in the electronic device for guiding airflow generated by a fan device to at least one electronic component . the deflection device includes a first fixed part and a plurality of strip structures . the first fixed part is used for fixing the deflection device in a suitable position . one end of each of the strip structures is connected to the first fixed part and able to undergo compression deformation independently such that forms a first shape when not compressed or a second shape when compressed . when the deflection device is fixed in a suitable position of the electronic device and close to the electronic component , the shape of the at least one strip structure is changed from a first shape to a second shape for guiding the airflow to the electronic component .