As a research hotspot of complex network analysis, link prediction has received growing attention from various disciplines. Link prediction intends to determine the connecting probability of latent links based on the observed structure information. To this end, a host of similarity-based and learning-based link prediction methods have been proposed. To attain stable prediction performance on diverse networks, this paper proposes a supervised similarity-based method, which absorbs the advantages of both kinds of link prediction methods. In the proposed method, to capture the characteristics of a node pair, a collection of structural features is extracted from the network to represent the node pair as a vector. Then, the positive and negative [Formula: see text]-nearest neighbors are searched from existing and nonexisting links, respectively. The connection likelihood of a node pair is measured according to its distances to the local mean vectors of positive and negative [Formula: see text]-nearest neighbors. The prediction performance of the proposed method is experimentally evaluated on 10 benchmark networks. The results show that the proposed method is superior to the compared methods in terms of accuracy and stableness.