In order to explore the influence of various elements of online and offline teaching on the teaching effect, this paper established a three-level evaluation system of online and offline courses by issuing questionnaires and using the analytic hierarchy process, and evaluated the weight of indicators at all levels in the course evaluation system. Based on the analysis of the relationship between the weight results of each indicator and the teaching practice, it is concluded that the value of teaching content, classroom teaching, teachers' teaching ability, students' learning efficiency and result monitoring and other factors have a greater impact on the teaching effect. We should pay attention to the selection and determination of education content, carefully design classroom teaching, improve teachers' ability, guide and develop students' learning interest, and establish a comprehensive Scientific and reasonable assessment and evaluation system.