The invention relates to the technical field gantry cranes, in particular to a method and special device for wind resistance of a gantry crane. The special device comprises a portal frame, a bottom plate, a rolling wheel, a limited track, a support plate, a position regulation mechanism and a locating mechanism, wherein the bottom of the portal frame is connected with the rolling wheel through thebottom plate, the bottom of the rolling wheel is movably connected to the top of the limited track, and the bottom of the limited track is welded to the top of the support plate; the position regulation mechanism is arranged on the support plate, and the locating mechanism is arranged on the position regulation mechanism; the position regulation mechanism comprises a double-shaft motor, a first threaded rod, a second threaded rod, a threaded sleeve, a slide block, a sliding chute, a connecting plate and a fixed plate; and the locating mechanism comprises a hydraulic cylinder, an extruding plate and an extruding block. According to the special device disclosed by the invention, the locating mechanism is moved to the upper side of the bottom plate by adopting the position regulation mechanism, and the bottom plate is extruded and located through the locating mechanism, so that the stability of the portal frame is improved, the wind-resistant effect is achieved, safety accidents are prevented from occurring, and the economic loss is prevented from being caused.