The invention discloses a shielding device for a forklift and the forklift. The shielding device comprises a fixing frame, a first clamping plate, a second clamping plate, a driving mechanism, a supporting frame, a reel, shielding cloth, a rigid clamping piece, a first magnetic attraction piece and a second magnetic attraction piece. The driving mechanism is installed on the fixing frame and usedfor driving the first clamping plate and the second clamping plate to move oppositely or reversely in the left-right direction. The supporting frame is fixedly connected with the fixing frame, the first magnetic attraction piece is arranged on the supporting frame, the reel is rotationally installed on the supporting frame, one end of the shielding cloth is wound on the reel, the other end of theshielding cloth is connected with the rigid clamping piece, and the second magnetic attraction piece is arranged on the rigid clamping piece. In the first state, at least part of the shielding cloth is wound on the reel; and in the second state, at least part of the shielding cloth is unfolded and located over a pallet fork so as to achieve the effects of rain shielding, sun shading, dust shielding and the like on goods on the pallet fork, goods are not prone to damage, and the first magnetic attraction piece and the second magnetic attraction piece attract each other through magnetic attraction so as to fix the shielding cloth.