Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
wordpress中的工具提示_Wordpress_Image_Textview_Tooltip - Fatal编程技术网

wordpress中的工具提示

wordpress中的工具提示,wordpress,image,textview,tooltip,Wordpress,Image,Textview,Tooltip,我是wordpress的新手。 我想在wordpress中创建一个页面,页面上几乎没有图像,当我们单击图像时,它应该会显示左侧现有图像的描述 请建议任何插件来实现这一点 提前感谢。如果您只需要在一页上使用此功能。在这种情况下,我不认为使用插件是一个好的选择。您可以考虑建立自己的工具,因为工具提示并不是一个复杂的代码任务。 尝试使用此代码创建您自己的代码 但是,若你们更喜欢插件而不是代码,那个么我会推荐我在过去使用过它,对我来说效果很好 <!DOCTYPE html> <html

我是wordpress的新手。 我想在wordpress中创建一个页面,页面上几乎没有图像,当我们单击图像时,它应该会显示左侧现有图像的描述

请建议任何插件来实现这一点


提前感谢。

如果您只需要在一页上使用此功能。在这种情况下,我不认为使用插件是一个好的选择。您可以考虑建立自己的工具,因为工具提示并不是一个复杂的代码任务。

尝试使用此代码创建您自己的代码

但是,若你们更喜欢插件而不是代码,那个么我会推荐我在过去使用过它,对我来说效果很好

<!DOCTYPE html>
<html>
<style>
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
</style>
<body style="text-align:center;">

<p>Move the mouse over the text below:</p>

<div class="tooltip">Hover over me
  <span class="tooltiptext">Tooltip text</span>
</div>

<p>Note that the position of the tooltip text isn't very good. Go back to the tutorial and continue reading on how to position the tooltip in a desirable way.</p>

</body>
</html>