To investigate the prevalence, location and genetic environments of fosfomycin-resistance (fos) genes in methicillin-resistant Staphylococcus aureus (MRSA) clinical strains, 67 fosfomycin-resistant MRSA strains were isolated from the blood and cerebrospinal fluid samples at a teaching hospital in Shanghai. The presence of fos genes in these clinical strains was detected by PCR and sequencing. The locations of fos genes were determined by Southern blotting and genetic environments were analyzed by primer walking sequencing. Multiple locus sequence typing (MLST) was used to characterize genetic diversity. Conjugation was performed to evaluate the transferability of fos genes. Among 67 fosfomycin-resistant MRSA strains, nine high level fosfomycin resistant strains (≥128 μg/ml) were fosB-positive. Three new subtypes of fosB, designated as fosB4, fosB5, and fosB6, were identified. fosB1, fosB4 or fosB6 genes were located on small plasmids (ca. 2.5 kb) and flanked by an analogous replication gene (rep). Differently, the fosB5 gene was surrounded by a shorter rep gene and two copies of a transposon gene (tnp) that shared high identity with the IS257-like transposon. Four MLST types were found among the nine fosB-positive strains. Transconjugants with the fosB genes were resistant to fosfomycin with MIC 64 or 128 μg/ml. In conclusion, different subtypes and genetic environment of fosB genes indicate that gene heterogeneity for fosfomycin resistance in MRSA isolates.