Webpage self-adaption method and device, equipment and storage medium

The invention discloses a webpage self-adaption method and device, equipment and a storage medium, and relates to the technical field of webpage self-adaption, and the webpage self-adaption method comprises the following steps: obtaining a target width and a target height of a webpage design draft b...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: MAO HAISHENG, SHI GUANGTING, SHUI XUEFEI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a webpage self-adaption method and device, equipment and a storage medium, and relates to the technical field of webpage self-adaption, and the webpage self-adaption method comprises the following steps: obtaining a target width and a target height of a webpage design draft by taking a pixel as a unit; calculating a design draft width-to-height ratio of the target width to the target height of the webpage design draft, and calculating a screen width-to-height ratio of the width to the height of the user screen; calculating a difference value result between the width-to-height ratio of the design draft and the width-to-height ratio of the screen, and selecting a corresponding webpage size zooming mode based on a comparison relationship between the difference value result and a preset difference value range; and performing webpage zooming on the webpage design draft on a user screen according to the selected webpage size zooming mode. By calculating the aspect ratio of a user screen and