如何禁用ispring suite创建的html项目上的空白区域的点击

问题描述 投票:0回答:1

我创建了一个PowerPoint项目并通过ispring suite将其转换为html5,但是当我单击按钮以外的任何地方时,它会转到其他页面。请问这个问题有解决办法吗?

我尝试聊天 gpt 但没有解决方案

html powerpoint presentation suite ispring
1个回答
0
投票

您可以将

onclick="return false;"
添加到标签中,以防止点击背景触发任何内容。

<body onclick="return false;">

还可以使用 CSS 禁用背景上的指针事件:

body {
  pointer-events: none;
}

button {
  pointer-events: auto;
}
© www.soinside.com 2019 - 2024. All rights reserved.