A hinge is provided. The hinge includes a first plate, a second plate, a third plate, a shaft, a first elastic element, and a second elastic element. The second plate is connected to the first plate. The third plate is disposed on the second plate. The shaft is connected to the first plate and the second plate. The first elastic element surrounds the shaft. The second elastic element is connected to the second plate and the third plate. The second plate is rotatable around the shaft via the first elastic element. The second plate is movable relative to the third plate via the second elastic element.