The investigation shows that the difficulties students encounter in the course of optics are mainly due to the abstraction of the content of the optical course, and the problem that the description of the physical phenomenon and process is difficult to show in the classroom teaching. We consider to integrate information technology with classroom teaching. Teachers can set up course websites and create more teaching resources, such as videos of experimental processes, design of simulated optical paths, mock demonstration of optical phenomena, and so on. Teachers can use the courseware to link the resources of the website platform, and display the related resources to the students. After class, students are also able to learn through the website, which is helpful to their study.