我正在尝试在我的网站上使用从 reStructuredText 生成的 jQuery lightBox 实现。灯箱将图像周围链接的标题作为灯箱显示中图像的标题。
但是,我似乎无法在 reStructuredText 中找到在链接上提供标题属性的方法 - 有人知道这样做的方法吗?我的图像定义如下:
.. image:: image001.thumb.jpg
:alt: Some alt text here
:target: image001.jpg
所以我可以添加一个alt
属性,但不能添加一个标题。一种可能的替代方法是使用目标作为参考,如下所示:
.. image:: image001.thumb.jpg
:alt: Some alt text here
:target: image1_
.. _image1: image001.jpg
在后一种情况下,我不确定如何向底部定义的链接添加属性(如果可能的话)。