In a method for adjusting a display screen of an electronic device, the method obtains a current image and a previous image of a user captured by an image capturing device, detects a first face area from the current image and a second face area from the previous image. The method further rotates the display screen according to the movements of the user's face, and stops rotating the display screen when rotation angles of the display screen are equal to movement angles of the user's face.