将鼠标悬停在图像上时防止出现工具提示?

时间:2017-06-08 16:25:46

标签: html css class hover tooltip

当我将鼠标悬停在我网站上的某些图像(并非全部)上时,我想删除弹出工具提示。有没有办法通过CSS实现这一目标?如果没有,最简单的方法是什么?

我有典型格式的图像:

FXMLLoader loader = new FXMLLoader(getClass().getResource("/path/to/file.fxml"));
Parent root = loader.load();
Controller controller = loader.getController();
Scene scene = new Scene(root);
Stage stage = new Stage();
stage.setScene(scene);
stage.setOnHidden(e -> {
    controller.shutdown();
    Platform.exit();
});
stage.show();

我无法从代码中移除alt或title,因为在其他地方需要它们。

谢谢! 布伦丹

0 个答案:

没有答案
相关问题