A new tunable attenuator is designed theoretically based on polymer microstructured fibers and the selective infiltration technology. In our experiment,high performance PMMA microstructured fibers are drawn and the selective injection of liquid crystal 5CB into micro-holes is realized. The tunable attenuator is fabricated with the extinction ratio of over 60 dB, which basically agress with the design.