This disclosure provides an obstacle-crossing method, a cleaning device, and a computer-readable storage medium, relating to the field of cleaning technology. The method is applied to a controller of a cleaning device, which includes drive wheels, casters, a
chassis, and a lifting mechanism. The
chassis includes a front end and a rear end, with the direction from the rear end to the front end being the forward direction of the cleaning device. In the forward direction, the casters are located between the drive wheels and the front end of the
chassis. The method includes: in response to detecting an obstacle that can be crossed at the front end of the chassis, controlling the lifting mechanism to raise the chassis to a first preset height; controlling the drive wheels to move backward a preset distance towards the rear end of the chassis at a first preset speed and then braking, so that the front end of the chassis tilts due to
inertia; and controlling the walking state of the drive wheels according to the detected chassis posture. The method provided by the embodiments of this disclosure is simple and can improve obstacle-crossing ability without increasing the structure of the cleaning device.