With the development of the Internet, the public information on the Internet has spread rapidly. The tendentious comments and opinions on the Internet have disrupted people's peaceful life, and also brought a huge impact on the learning environment of college students. Ideological and political health education has always been one of the focuses of colleges and universities. The educational environment in the Internet era has brought convenience and certain challenges to this type of education. In an open network environment, online public opinion focusing on the epidemic has quietly formed. As an important group of online public opinion, college students must be able to accurately identify online public opinion information, and not let the so-called "rumors" affect themselves. This paper studies the collaborative education of college students' ideological and political health education from the perspective of network public opinion. Combining the advantages of online public opinion, it built an online classroom. The specific educational strategies were put forward based on the concept of collaborative education. Finally, a precise positioning of the educational activities of college students. Experiments shown that the method proposed in this paper optimized the teaching environment and improved the teaching efficiency by 7.85%.