Nanofibrous membranes are often obtained by electrospinning of polymer solutions. Because organic solvents are usually poisonous, it is desirable to develop green electrospinning for wide application of nanofibrous membranes. In the present research, water-soluble 2-hydroxypropyl-β-cyclodextrin, poly(acrylic acid) and poly(vinyl alcohol) were used as raw materials to prepare nanofibrous membranes by electrospinning of their aqueous solutions. The pristine membranes were subsequently crosslinked by thermal treatment in order to improve water resistance of membranes. The obtained membranes were used as adsorbents for removal of levofloxacin hydrochloride from aqueous solutions. The adsorption amount of levofloxacin hydrochloride increased with the content of 2-hydroxypropyl-β-cyclodextrin in the electrospinning solution because the cavity of 2-hydroxypropyl-β-cyclodextrin could capture levofloxacin hydrochloride by inclusion complexation. The adsorption of levofloxacin hydrochloride achieved equilibrium within 12 h and the maximum adsorption capacity was 100.8 mg/g at 298 K. Thermodynamic parameters suggested that the adsorption process was spontaneous and endothermic with increased degree of freedom at the solution/membrane interface. The adsorption mechanism was related to electrostatic attraction, hydrogen bonding and inclusion interactions. Moreover, the membrane still exhibited relatively stable adsorption capacity after five adsorption/desorption cycles. The current study presented a facile and green approach for preparing nanofibrous membranes with excellent adsorption performance for levofloxacin hydrochloride from aqueous solutions.