A hinge includes at least one shaft set including a first shaft and a second shaft. The first shaft and the second shaft extend through a first guiding member and a second guiding member. A guiding base is disposed between the first shaft and the second shaft. The first shaft and the second shaft connect to an upper plate and a lower plate. The upper plate and the lower plate are connected to two rotatable parts of an electronic device. The first shaft and the second shaft moves relatively along with the rotation of the two rotatable parts of the electronic device.