Neova高级 SEO 平台

viewport 通过 user-scalable 禁用缩放

在 Neova 中 直接在抓取过程中运行,无需任何设置。

规则最近审核:2026年10月17日 · 指南更新:2026年7月23日

WCAG 1.4.4 要求文本可以放大到 200%。这项设置会让视力低下的用户无法双指缩放。maximum-scale 低于 2 的情况由 maximum-scale 检查项报告。

您可以做什么

从 viewport meta 标签中删除 user-scalable。

Neova 如何发现

Neova 读取它抓取的每个页面的 HTML,并查找这一问题。

Neova 为何标记

  • user-scalable=no 会禁止移动端的双指缩放,低视力人群无法放大文字。
  • WCAG 1.4.4(AA 级)要求文字可以放大到 200%;W3C ACT 规则判定此设置不合格。
  • 有些移动浏览器会忽略此设置,但另一些仍会遵守,所以访客的体验各不相同。

来源

生成的工单

这一部分目前只有英文版。

HT-007 · Viewport Disables Zoom With user-scalable

How to Check the Fix: 1. Run the check again in Neova
2. Spot-check sample URLs across affected templates
3. Record the re-check date and period label next to the baseline

Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.

完整指南

这一部分目前只有英文版。

AI Summary

This check flags pages whose viewport meta tag disables zoom, usually through user-scalable=no or maximum-scale=1. Blocking pinch zoom is an accessibility failure under WCAG success criterion 1.4.4, because users with low vision cannot enlarge text to read it. The fix is to remove those restrictions and keep only width=device-width and initial-scale=1.

  • Element code HT-007 fires when the viewport tag contains user-scalable=no or maximum-scale=1.
  • WCAG 1.4.4 requires text to resize up to 200 percent without loss of content or function.
  • The safe viewport value is content="width=device-width, initial-scale=1" with no scale limits.
  • Lighthouse, axe DevTools, and a quick View Source check all detect the issue.
Diagram comparing a viewport meta tag that blocks zoom with user-scalable=no against a corrected tag that keeps only width=device-width and initial-scale=1
Remove user-scalable=no and maximum-scale so users can zoom, which the corrected viewport tag on the right allows.

Quick Reference

Element Code: HT-007

Issue: Viewport meta tag includes user-scalable=no or maximum-scale=1

Impact: Users cannot zoom, creating accessibility barriers

Fix: Remove user-scalable=no and maximum-scale restrictions

Detection: Lighthouse, axe DevTools, View Source

What Is This Issue?

Preventing zoom creates significant accessibility problems for users with low vision who need to enlarge content. This violates WCAG requirements for text resizing.

Why This Matters for Your Website

WCAG requires that text can be resized up to 200% without loss of functionality. Blocking zoom prevents this and excludes users who need magnification.

How to Fix This Issue

  1. Remove restrictions: Delete user-scalable=no and maximum-scale=1
  2. Use recommended viewport: width=device-width, initial-scale=1
  3. Test zoom: Verify pinch-zoom works on mobile

Tools for Detection

  • Lighthouse: Flags zoom-blocking viewports
  • axe DevTools: Accessibility violation report

TL;DR (The Simple Version)

Your viewport tag prevents zooming. Remove user-scalable=no and maximum-scale=1 so people who need to zoom can still read your content.

How the Viewport Tag Controls Zoom

The viewport meta tag tells a mobile browser how to lay out the page. Two of its properties can lock zoom. user-scalable=no disables pinch to zoom entirely. maximum-scale, when set to 1, caps how far a user can enlarge the page, which has the same practical effect. minimum-scale can similarly trap users at an unusable zoom level. This check fires when any of those restrictions are present, because each one takes zoom control away from the person using the page.

Developers often add user-scalable=no to stop a layout from breaking or to mimic a native app feel. Modern responsive CSS makes that unnecessary, and the accessibility cost is not worth it. A well built responsive layout stays usable while still letting people zoom.

Viewport Properties and Their Effect on Zoom

Property Example Value Effect Recommended
width device-width Matches layout to screen width Yes
initial-scale 1 Sets starting zoom level Yes
user-scalable no Disables pinch zoom entirely No, remove it
maximum-scale 1 Caps zoom so users cannot enlarge No, remove it
minimum-scale 1 Traps users at a fixed zoom No, avoid it

This check is part of a family of viewport and mobile structure checks. See also viewport maximum scale restriction, a missing viewport meta tag, a wrong initial scale value, and how rankings differ between mobile and desktop.

Frequently Asked Questions

What Does user-scalable=no Do?

It disables pinch to zoom on mobile browsers, so users cannot enlarge the page. This blocks people with low vision from reading small text and fails WCAG success criterion 1.4.4, which is why this check flags it.

Is Blocking Zoom Bad for SEO?

It is primarily an accessibility failure rather than a direct ranking penalty, but it hurts mobile usability, which Google evaluates, and it fails Lighthouse accessibility audits. Since Google indexes mobile first, a poor mobile experience can indirectly affect performance.

What Is the Correct Viewport Meta Tag?

Use content="width=device-width, initial-scale=1" with no scale limits. This adapts the layout to the device, sets a sensible starting zoom, and leaves users free to zoom in and out.

Can I Still Set maximum-scale If I Keep Zoom Mostly Enabled?

Avoid it. Setting maximum-scale to 1 or a low value caps how far users can enlarge content, which recreates the same accessibility problem. Leave scale limits off entirely so people can zoom as much as they need.

How Do I Detect This Issue?

Run Lighthouse or axe DevTools, both of which flag zoom blocking viewports, or simply View Source and inspect the viewport meta tag for user-scalable=no, maximum-scale, or minimum-scale. Confirm the fix by pinch zooming on a real phone.

Why Did a Developer Add user-scalable=no in the First Place?

It is often added to stop layout shifts or to make a site feel more like a native app. Modern responsive CSS removes the need for it, so the restriction can almost always be deleted without harming the design.

在您自己的网站上找到它

Neova 在每次抓取时都会运行此检查项和其他所有检查项,然后把修复方法写成工单交给您的团队。

  • 适用于 Mac、Windows 和 Linux 的桌面应用
  • 全部 696 项检查,每项都附来源
  • Search Console 和 Analytics 4,以只读方式连接
  • 工单发送到 Jira、Linear 和 Asana

下载 Neova Desktop Free 套餐,或免费试用 Solo 14 天,无需银行卡。

全部无障碍检查 · 指南 · 检查项库

作者:Neova Labs · 返回检查项库