我正在使用 jquery 灯箱,我有一个带有灯箱功能的 div。在这个 div 里面我有另一个 div 有一个文本链接。jquery 将文本链接识别为图像并尝试将其打开并忽略指向其他页面的链接。下面是 div 的 html。
**<div id="royalartcontent">
<p><b> The Royal Artillery<br>
<br>
</b><strong>19th Regiment Royal Artillery, The Highland Gunners</strong> </p>
<p> <a href="images/19reg.jpg"><img src="images/19regsm.jpg" alt="19th Regiment Royal Artillery, The Highland Gunners" width="126" height="142" border="1"></a>
19th Regiment Royal Artillery, The Highland Gunners, currently supports 12 Mechanised Brigade in the armoured field artillery role. The regiment has Fire Support Teams mounted in Warrior Mechanised Artillery Observation Vehicles equipped with MSTAR. The regiment’s three gun batteries are equipped with 18 AS-90 self-propelled guns.
</p>
<p> </p>
<p>5 (Gibraltar 1779–1783) Battery<br>
13 (Martinique 1809) Headquarters Battery<br>
28/143 (Tombs’s Troop) Battery<br>
52 (Niagara) Battery<br>
127 (Dragon) Battery</p>
<p>19th Regiment is based in Tidworth, Wiltshire. They recruit from Highlands, Grampian, Tayside, Fife, Central and Argyle.</p>
<p>19 Regiment RA is the local Artillery Regiment of the Highland areas of Scotland, The Western Islands, The Shetland Islands and The Orkney Islands. The Regiment has been granted the Freedom of the Cities of Inverness and Colchester and wears the Robertson Hunting tartan of the Clan Donnachaidh.<br>
Freedom of the City<br>
Taken from: wikipedia.org/wiki/19th_Regiment_Royal_Artillery</p>
<p><div id="royalart"><a href="images/Guns.jpg"><img src="images/Gunssm.jpg" alt="Guns firing at Edinburgh Castle" width="170" height="112" border="1"></a></div>
<div class="royalart1"><a href="105threg.html">105th Regiment Royal Artillery (Volunteers)</a></div>**
主 div 是“royalartcontent” div,包含文本链接的是“royalart1”。我只复制了 div 的一部分,因为下面还有其他内容。
我在 div 中有一个 div,因为页面的完整内容太长,所以我在“royalartcontent”div 上使用溢出:自动。否则我不会在其他 div 中放置一个 div。
有人有想法吗?