Image Metadata & Context
Most JavaScript lightboxes use data-src or hidden attributes to load high-resolution
images, which can prevent search engines from associating descriptive text with the actual file.
This CSS-first lightbox uses the semantic <figure> and
<figcaption> structure inside the modal. This ensures that the high-res image
and its description are permanently linked in the DOM for Google Images and Baidu Image Search.
大多数 JavaScript 灯箱使用 data-src 或隐藏属性来加载高分辨率图片,这可能会阻止搜索引擎将描述性文本与实际文件关联。这种CSS 优先灯箱在模态窗口内使用了语义化的 <figure> 和 <figcaption> 结构。这确保了高分辨率图片及其描述在 DOM 中永久关联,有利于谷歌图片和百度图片搜索的收录。