The preparation of efficient antibacterial membrane materials is one of the important strategies to fight against bacterial infection and alleviate drug resistance. Herein, hemicyanine derivatives with different chain lengths (C3, C6, and C10) that exhibit excellent photodynamic antibacterial activity were doped into spinnable polyvinyl alcohol solution (PVA, 8%) to obtain composite fiber membrane Cn/PVA (C3/PVA, C6/PVA, and C10/PVA) by a simple "one-pot" method using electrospinning technology. The antibacterial nanofiber membrane has a dense fiber structure which has a good interception effect, high thermal stability, and great biocompatibility. Importantly, Cn/PVA nanofibers could efficiently sensitize oxygen to generate reactive oxygen species (ROS), leading to high photokilling efficacy against drugresistant bacteria. The variation of structure for hemicyanines causes the difference of Cn/PVA nanofibers in the effects of antibacterial performance, and it is found that C3/PVA and C10/PVA with three and ten carbons in the alkyl chain could kill more than 97% of ampicillin-resistant E. coli, which is much better than that of C6/PVA. Moreover, C3/PVA and C10/PVA exhibited killing efficiencies of 98.6 and 90.6% against MRSA, respectively. The construction of Cn/PVA composite fibers provides research ideas for the development of structure-dependent antimicrobial surface materials and is expected to be applied as superficial medical antibacterial protection materials.