The abnormal biological functions of HDAC6 were closely related to the occurrence and development of various tumors, making HDAC6 gradually become promising therapeutic target for cancer treatment and inspiring researchers to explore and develop selective HDAC inhibitors. In this study, based on the classical pharmacophore model of HDAC inhibitors, 20 compounds were designed and synthesized by modifying the Cap group, and the biological activities of the target compounds were assessed through anti-proliferation and enzyme inhibition experiments. The title compounds exhibited varying degrees of inhibitory activities against the selected tumor cell lines, especially the compounds 9m, 9q, and 12c, which were further evaluated at the enzymatic level. The enzyme inhibition assay showed that compound 12c exerted broad-spectrum enzyme inhibitory activities and compounds 9m and 9q were more inclined to inhibit HDAC6, exhibiting certain selective inhibitory activities among the representative subtypes. Moreover, the binding modes of compounds 9q and 12c in HDAC1&6 were further explored via computational approaches to elucidate the molecular mechanisms underlying selective inhibitory activities, providing valuable hints for the discovery of novel HDAC6 inhibitors.