1
我有以下代碼HTML列表中的數據描述屬性中HTML5
HTML
<a class="caption" href="http://cargocollective.com/jaimemartinez/Illustration" data-title="Vulture" data-description="I felt compelled to walk on and find the place of these sounds, and when the forest did clear I was standing on a hill. Before me, there was a great plain. Upon it, the armies of the world, standing, waiting."><img src="http://tympanus.net/Tutorials/PseudoElementsImageCaptions/images/3.jpg" alt="Illustration of Vulture"/></a>
我需要顯示在上述標籤的數據描述屬性HTML列表(<li>
)。
這可能嗎?
您無法在其他元素的屬性中顯示元素。也許你的意思是你想要在數據描述中存儲列表的html? – yezzz
是的,我想存儲在數據描述 – Sourabh