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
Image 用图像标题替换标题_Image_Wordpress_Caption - Fatal编程技术网

Image 用图像标题替换标题

Image 用图像标题替换标题,image,wordpress,caption,Image,Wordpress,Caption,我需要一些帮助。 我已经为一家通讯社创建了一个自定义网站,他们正在使用wordpress cms将新闻插入数据库。 在每一篇文章中,我都会遇到一些关于图片标题的问题。当我在wordpress图片标题中写东西时,在帖子中会出现如下结果: [caption id="attachment_101068" align="alignleft" width="214" caption="thi is the caption"] HERE IS THE IMAGE [/caption] wordpress中

我需要一些帮助。 我已经为一家通讯社创建了一个自定义网站,他们正在使用wordpress cms将新闻插入数据库。 在每一篇文章中,我都会遇到一些关于图片标题的问题。当我在wordpress图片标题中写东西时,在帖子中会出现如下结果:

[caption id="attachment_101068" align="alignleft" width="214" caption="thi is the caption"]
HERE IS THE IMAGE
[/caption]

wordpress中还有一个设置图像标题和alt的选项,我想知道是否可以像在图像底部显示标题一样显示图像标题或图像alt。

当您在wordpress上的帖子中插入图像时,他们会要求您填写替代文本、标题文本、图像标题等信息。是的,但是我想知道是否有可能在wordpress中使用img alt或img title来代替标题。是的,你可以在wordpress的帖子中使用
。!vishal-请按照标准解释您的回答,
title
是HTML元素的属性,将鼠标指针悬停在该元素上时,
title
属性的值显示在使用操作系统样式的悬停框中。类似地,只有在未找到提供给
img
标记的
src
属性的图像时,才会显示
alt
属性的值。所以你不能设计它们。相反,您可以使用一些jQuery插件,比如qTip,它可以创建漂亮的工具提示,您可以根据需要设置样式。