It is generally believed that a neutron star mainly consists of four parts,that is to say, outer crust, inner crust, outer core, and inner core.From neutron drip density to crust-core transition density,the inner crust of neutron star is a nonuniform system wherenuclei coexist with nucleon and electron gases surrounding them.As density increases, the nuclear pasta phases with different shapes,such as droplet, rod, slab, tube, and bubble may appear in the inner crust.Astronomical observations indicate that strong magnetic fields, which may be as high as 10$^{18}$ G, may exist in some neutron stars.So, the crust structure of neutron star may be influenced significantly by the strong magnetic fields.Consequently, a number of astrophysical observations, such as the neutron star oscillations and glitches in the spin rate of pulsars may be affected by the properties of inner crust.In this paper, we adopt the relativistic mean-field theory to describe the nuclear interaction, andanomalous magnetic moments of proton and neutron are considered as well.In order to study the effects of strong magnetic fields onthe properties of nonuniform nuclear matter in inner crust and crust-core transition of neutron stars,we adopt the Wigner-Seitz approximation to describe the nonuniform matter in inner crust,where only one nucleus exists in a Wigner-Seitz cell.Meanwhile, the charge neutrality and $\beta$ equilibrium conditions are satisfied.We adopt the self-consistent Thomas-Fermi approximation toobtain the distributions of nucleons and electrons in a Wigner-Seitz cellunder strong magnetic fields, and then we calculate the binding energy per nucleon and the properties of Wigner-Seitz cell.It turns out that the properties of inner crust structure and the crust-core transition wouldnot change much with strong magnetic fields $B~\le~10^{17}$ G comparing with $B=0$.The nucleon distribution, binding energy per nucleon,radius of Wigner-Seitz cell, onset density of various nonspherical pasta phases,and crust-core density with $B=10^{17}$ G are very similar to the corresponding results with $B=0$.However, the strong magnetic fields $B\geq10^{18}$ G play an important role in determiningthe pasta phase structure.As a result, the radius of spherical Wigner-Seitz cell, the binding energy per nucleon of various kinds of pasta phases, and the onset densities of nonspherical nuclei and crust-core transition decrease with increasing $B$, while the area of high density in Wigner-Seitz cell increases.For fixed strength of magnetic fields, as the average baryon density in Wigner-Seitz cell increases,the radius of Wigner-Seitz cell decreases, but the area of high density in the center of the cell increases.The nucleon density at the boundary of Wigner-Seitz cell increases with increasing average baryon density for fixed strength magnetic fields, while the nucleon density at the center area of the cell decreases, which leads to the nucleon distribution in the cell becomes more dispersive.