人-AI-环境协同,正在变成中国教育的新“基础课”
2026/4/15 11:37:14
热区功能允许在幻灯片图片上添加交互式热点标记,可用于突出显示图片中的重要区域或添加链接。
在模板中使用以下标签显示热区:
{pboot:hotspots id="[slide:id]"}<divclass="absolute"style="left:[hotspots:x]%;top:[hotspots:y]%;"><ahref="[hotspots:link]"class="group relative block"><divclass="w-[80px] h-[80px] relative cursor-pointer"><!-- 外层扩散动画 --><divclass="absolute inset-0 rounded-full animate-ping"style="background-color:[hotspots:color];opacity:calc([hotspots:opacity] * 0.3)"></div><!-- 中层光晕 --><divclass="absolute inset-[10%] rounded-full"style="background-color:[hotspots:color];opacity:calc([hotspots:opacity] * 0.5)"></div><!-- 内层圆点 --><divclass="absolute inset-[30%] rounded-full shadow-lg"style="background-color:[hotspots:color];opacity:[hotspots:opacity]"></div></div></a></div>{/pboot:hotspots}[hotspots:x]- 热区横向位置(百分比)[hotspots:y]- 热区纵向位置(百分比)[hotspots:link]- 热区链接[hotspots:color]- 热区颜色(包含#号)[hotspots:opacity]- 热区透明度(0-1之间的小数)热区数据以JSON数组形式存储,示例:
[{"x":160,"y":166,"link":"/?product_7/118.html","color":"#ff0000","opacity":0.3832589285714285}]