【发布时间】:2021-03-08 16:31:40
【问题描述】:
所以我有一个使用 pannellum 的 360 度虚拟游览,我在 css 中设计了这个热点代码
.custom-hotspot {
height: 30px;
width: 30px;
border-radius: 50%;
background: rgb(253, 253, 255);
}
我希望当你点击热点弹出一个图像但不使用html标签时只使用css和javascript,我尝试使用这个
.custom-hotspot:hover {
content: url(https://i.ibb.co/5c9zFfq/DCIM-100-MEDIA-DJI-0293-JPG.jpg); /* no need for qoutes */
width: 100px;
height: 100px;
border-radius: 20%;
}
但这不是弹出式图像,也不一样。 有谁知道这个的解决方案吗?
【问题讨论】:
标签: javascript html css popup pannellum