A hinge includes a base frame unit and two rotatable axle units. The base frame unit includes abase seat having two guideways and two shaft sliding slots. Each guideway includes an upright segment and an arcuate segment extending arcuately and laterally from an upper end of the upright segment. Each axle unit includes a hinge shaft rotatably extending through the shaft sliding slot, a rotary member fitted to the hinge shaft and having a guide key slidably engaged in the guideway, and a support bracket fitted to the hinge shaft to be connected to a casing part of an electronic device.