javascript - 从同一网页调用不同的模型图像
问题描述
我的起点是:如何 - 模态图像 w3schools.com
https://www.w3schools.com/howto/howto_css_modal_images.asp
我想从一个网页调用许多不同的模式。TIA 对不起,我是个无知的菜鸟。
找到这个: https ://blr.design/blog/multiple-modals/ 和这个: https ://codepen.io/JackZelig/pen/VPdQXJ
<!-- Trigger the Modal -->
<img id="myImg" src="img_snow.jpg" alt="Snow" style="width:100%;max-width:300px">
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- The Close Button -->
<span class="close">×</span>
<!-- Modal Content (The Image) -->
<img class="modal-content" id="img01">
<!-- Modal Caption (Image Text) -->
<div id="caption"></div>
</div> ```
解决方案
推荐阅读
- angular - Angular-cli 和 Ckeditor4 自定义构建
- python - 将原始硬盘映像从 S3 存储桶转换为 EC2 映像
- c# - 打开 OpenFileDialog 以更改 PropertyGrid 控件中的属性值?
- arrays - 打字稿参数 - 对象的通用数组和对象键的数组(部分)
- c# - C# Linq 过滤器和求和数据表
- python - 从元素列表中删除元素列表
- docker - nomad 的工作如何从本地 docker 图像中获取
- node.js - 使用 WSL 在 VSCode 中使用 nodemon + babel-node 进行调试
- javascript - 登录后需要相互等待的多个 axios 调用,然后将用户重定向到 Vue.js 上的仪表板 [时间问题]
- javascript - 在 onsubmit 函数完成之前如何防止表单提交?