The series of Li,Mg doped ZnO thin films were prepared by sol-gel method on the glass substrates.According to the testing results of the structure,electric and optical properties of ZnO films by XRD,AFM,Hall testing device, UV-visible spectrum etc.,the paper discussed the effects of the Li~+Mg~(2+) ions and their doping propertion in ZnO thin films on the structure and basic properties of ZnO thin films.The result show as following:(1)the optical and electrical functions of Li~+,Mg~(2+) doped ZnO thin films...