要使用多点触控手势禁用缩放选项,我们可以使用surefox浏览器,但用户仍然可以通过双击屏幕来放大或缩小。我们可以使用 标签来禁用移动网页上的放大和缩小。
句法:
在手机浏览器上实现的步骤:
- 下载歌剧手机模拟器
- 安装下载的文件,并运行模拟器。
- 从列表中选择您的设备首选设备。
- 将您的文件拖到该模拟器中以运行不可缩放的文件。
不可缩放示例:
可缩放示例:
示例:本示例使用 user-scalable=no 禁用移动网页上的缩放。
html
Disable Double-Tap to Zoom
GeeksforGeeks
It is a good platform to learn programming.
It is an educational website. Prepare for the
Recruitment drive of product based companies
like Microsoft, Amazon, Adobe etc with a free
online placement preparation course. The
course focuses on various MCQ's & Coding
question likely to be asked in the interviews
& make your upcoming placement season
efficient and successful.
Also, any geeks can help other geeks by writing
articles on the GeeksforGeeks, publishing
articles follow a few steps that are Articles
that need little modification/improvement from
reviewers is published first. To quickly get
your articles reviewed, please refer existing
articles, their formatting style, coding style,
and try to make you are close to them.
html
Disable Double-Tap to Zoom
GeeksforGeeks
Note:Not zoomable on mobile
输出:
示例 2:此示例使用 user-scalable=no 禁用移动网页上的缩放。
html
Disable Double-Tap to Zoom
GeeksforGeeks
Note:Not zoomable on mobile