Liquid sloshing in the tank can seriously affect the stability of hazardous chemical tanker trucks during operation. To this end, this paper proposes a solution based on an electromagnetic semi-active suspension system to prevent chemical spills and ensure safe driving of hazardous chemical tank vehicles. A comprehensive investigation was conducted across four domains: theoretical research, simulation model establishment, co-simulation platform construction, and simulation data analysis. Three fuzzy controllers were used to suppress the vibration of the tank vehicles, and a simulation study of the stability control of the tank vehicles under electromagnetic semi-active suspension was carried out. The results show that the electromagnetic semi-active suspension can significantly reduce the vertical, pitch, and roll vibrations of the tank vehicles by 17.60%, 25.78%, and 27.86%, respectively. The research results of this paper are of great significance for improving the safety and stability of hazardous chemical tanker trucks.