Webpage interface zooming control method and system, terminal and storage medium

By obtaining and adjusting the basic unit and font size attributes of the web interface, combined with the scaling control, the consistent scaling of web page elements is achieved, solving the problem of inconsistent scaling of traditional browsers, and improving user experience and personalized needs.

CN119002913APending Publication Date: 2024-11-22山东浪潮智水数字科技有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411058808.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Traditional browser scaling methods lead to inconsistent scaling of web page elements, affecting the user experience, and unable to meet the personalized needs of different users.

Method used

By obtaining the basic units of the web page interface, setting the font size attribute, and adjusting the font size attribute of the web page root element according to the target zoom multiple, scaling using the relative length units, and adding the scaling controls so that the user can enter the target zoom multiple.

Benefits of technology

It realizes consistent scaling of web page elements, improves the accessibility and ease of use of web pages, meets the personalized needs of different users, and solves the limitations of traditional browser scaling functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002913A_ABST
    Figure CN119002913A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and particularly provides a webpage interface zooming control method and system, a terminal and a storage medium, and the method comprises the following steps: obtaining a basic unit of a webpage interface; setting font size attributes of a webpage interface based on the basic unit; zooming the window of the webpage interface to a target zooming multiple, and adjusting the font size attribute in the webpage root element according to the target zooming multiple; and setting the specific parameter value of the font size attribute in the webpage root element as a relative length unit. According to the webpage element zooming method and device, the problem that webpage element zooming is inconsistent is solved, the accessibility and usability of the webpage are improved, and the personalized requirements of different users are met. Meanwhile, the method also solves the problem of limitation of the zooming function of the traditional browser, and provides a new and more effective webpage zooming control scheme for webpage designers and developers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a web page interface zoom control method, system, terminal and storage medium. Background Art

[0002] Browser zoom can be achieved in a variety of ways, including using shortcut keys, browser settings, or specific application settings.

[0003] Use shortcut keys: Most modern browsers support using shortcut keys to adjust the zoom ratio. For example, in Windows, you can hold down the CTRL key and press the + key to zoom in, or hold down the CTRL key and press the - key to zoom out. You can also use CTRL and the * (asterisk) on the numeric keypad to make finer zoom adjustments.

[0004] Through browser settings: Many browsers provide the option to adjust the zoom ratio through the settings menu. For example, in the Microsoft Edge browser, you can find the page zoom button by clicking the three-dot menu in the upper right corner, selecting "Settings", and then clicking "Appearance" to select the zoom ratio you need. Similarly, 360 Browser also provides the option to select "Webpage Zoom" in the settings menu to adjust the zoom ratio.

[0005] Settings for specific browsers: Specific browsers may have their own unique settings. For example, Safari on a Mac can be set by selecting "Safari" > "Settings" > "Websites" > "Page Zoom". For Internet Explorer, although the specific steps are not detailed, similar setting options are usually provided.

[0006] In traditional browser zooming, some elements can be zoomed, while others cannot, which results in poor display effects at different zoom ratios, affecting user experience. In addition, due to different vision and usage habits, different users have different requirements for the size of web page elements. Summary of the invention

[0007] In view of the above-mentioned deficiencies in the prior art, the present invention provides a web page interface zoom control method, system, terminal and storage medium to solve the above-mentioned technical problems.

[0008] In a first aspect, the present invention provides a web page interface zoom control method, comprising: Get the base unit of the web interface; Setting a font size attribute of a web page interface based on the base unit; Zooming the window of the web page interface to a target zoom factor, and adjusting the font size attribute in the root element of the web page according to the target zoom factor; Set the font-size attribute in the root element of the web page to a relative length unit.

[0009] In an optional embodiment, it also includes: A zoom control is added to the web page interface, and the zoom control includes an input box, and the input box is used to write a target zoom factor.

[0010] In an optional implementation, obtaining the basic unit of the web page interface includes: Use the viewport width unit or the viewport height unit to determine the base unit size. For web interfaces with fixed width and variable height, select the viewport width unit as the base unit. For web interfaces with fixed height, use the viewport height unit as the base unit.

[0011] In an optional implementation, setting the font size attribute of the webpage interface based on the basic unit includes: If the basic unit is the viewport height unit, the design height of the system interface is obtained, and the font size attribute in the root element of the web page is set to 100vh / h, where vh is the viewport height unit and h is the design height; If the basic unit is the viewport width unit, the design width of the system interface is obtained, and the font size attribute in the root element of the web page is set to 100vh / h, where vh is the viewport width unit and h is the design width.

[0012] In an optional implementation, scaling the window of the web page interface to a target scaling factor, and adjusting the font size attribute in the root element of the web page based on the target scaling factor, includes: The target zoom factor is set as the font zoom factor, and the product of the font zoom factor and the base unit is set as the font size value; The font size value is written into the font size attribute item of the root element of the web page.

[0013] In a second aspect, the present invention provides a web page interface zoom control system, comprising: Basic acquisition module, used to obtain the basic units of the web page interface; A basic setting module, used to set the font size attribute of the web page interface based on the basic unit; A font scaling module, used to scale the window of the web page interface to a target scaling factor, and adjust the font size attribute in the root element of the web page according to the target scaling factor; The element scaling module is used to set the specific parameter value of the font size attribute in the root element of the web page to a relative length unit.

[0014] In an optional embodiment, it also includes: The control adding module is used to add a zoom control in the web page interface, and the zoom control includes an input box, and the input box is used to write a target zoom multiple.

[0015] In an optional implementation, the basic acquisition module includes: The acquisition unit is used to determine the basic unit size using the viewport width unit or the viewport height unit. The web page interface with fixed width and unfixed height selects the viewport width unit as the unit basis, and the web page interface with fixed height uses the viewport height unit as the basic unit.

[0016] In an optional implementation, setting the font size attribute of the webpage interface based on the basic unit includes: If the basic unit is the viewport height unit, the design height of the system interface is obtained, and the font size attribute in the root element of the web page is set to 100vh / h, where vh is the viewport height unit and h is the design height; If the basic unit is the viewport width unit, the design width of the system interface is obtained, and the font size attribute in the root element of the web page is set to 100vh / h, where vh is the viewport width unit and h is the design width.

[0017] In an optional implementation, scaling the window of the web page interface to a target scaling factor, and adjusting the font size attribute in the root element of the web page based on the target scaling factor, includes: The target zoom factor is set as the font zoom factor, and the product of the font zoom factor and the base unit is set as the font size value; The font size value is written into the font size attribute item of the root element of the web page.

[0018] In a third aspect, a terminal is provided, including: processor, memory, wherein: The memory is used to store computer programs. The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.

[0019] According to a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the methods described in the above aspects.

[0020] The beneficial effects of the present invention are that the web page interface zoom control method, system, terminal and storage medium provided by the present invention solve the problem of inconsistent zooming of web page elements, improve the accessibility and usability of web pages, and meet the personalized needs of different users. At the same time, the method also solves the limitation of the zoom function of traditional browsers, and provides a new and more effective web page zoom control solution for web page designers and developers.

[0021] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.

[0024] Figure 2 is a schematic block diagram of a system according to an embodiment of the present invention.

[0025] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0028] The webpage interface zoom control method provided by the embodiment of the present invention is executed by a computer device, and accordingly, the webpage interface zoom control system runs in the computer device.

[0029] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1The execution subject can be a web page interface zoom control system. According to different requirements, the order of the steps in the flow chart can be changed, and some can be omitted.

[0030] like Figure 1 As shown, the method includes: Step 110, obtaining the basic unit of the web page interface; Step 120, setting a font size attribute of the web page interface based on the basic unit; Step 130, scaling the window of the web page interface to a target scaling factor, and adjusting the font size attribute in the root element of the web page according to the target scaling factor; Step 140: Set the specific parameter value of the font size attribute in the root element of the web page to a relative length unit.

[0031] To facilitate understanding of the present invention, the web page interface zoom control method provided by the present invention is further described below based on the principle of the web page interface zoom control method of the present invention and the process of controlling the zoom of the web page interface in the embodiment.

[0032] Specifically, the web page interface zoom control method includes: S1. Set controls and parameters: In the web page interface, a control is set up. You can choose a numeric input box, a drop-down selection box, a progress bar, a wheel, etc., allowing users to enter or select a multiple parameter through the control. For a more intuitive user experience, you can preset several levels of large, medium, and small as options, corresponding to different multiples such as 1x, 2x, and 3x. The multiple parameter will serve as the basis for subsequent scaling calculations.

[0033] Specifically, they include: 1. Control type and switching function: Design a multifunctional control that allows users to select or switch between different input methods as needed: numeric input box, drop-down selection box, progress bar, and (optional) wheel selector. Each method should clearly mark the current selection mode so that users can understand and adjust it at any time.

[0034] Provide an intuitive mode switch button or drop-down menu that users can click or pull down to select their preferred input method.

[0035] 2. Number input box: Provides a standard number input box that allows users to directly enter any positive integer or decimal as a multiple.

[0036] A clear prompt message should be displayed next to the input box, such as "Please enter a multiple (for example: 1, 1.5, 2, etc.)".

[0037] Implement instant verification function to ensure that the value entered by the user is valid.

[0038] 3. Drop-down selection box: The drop-down list has preset options for large, medium, and small levels, each corresponding to a specific multiple value (e.g. "Small" corresponds to 1x, "Medium" corresponds to 2x, and "Large" corresponds to 3x). Custom options can also be added to allow users to enter other multiples. A short description or icon can be attached to each option to help users quickly understand the multiple corresponding to each level.

[0039] 4. Progress bar: Design a draggable progress bar, whose minimum and maximum values ​​represent the minimum multiple (such as 1) and the preset maximum multiple (such as 5 or more, adjusted according to application requirements). The progress bar should have a scale or label to show the current multiple to ensure that users can accurately understand the currently selected multiple value. "Minimum" and "Maximum" buttons can be set at both ends of the progress bar to facilitate users to quickly adjust to the limit value.

[0040] 5. Roulette Picker: For scenarios that require more fun and interactivity, a roulette selector can be introduced. Different multiples are distributed on the roulette wheel, and users can choose by rotating the roulette wheel. The roulette selector should support two modes: click stop and automatic stop to meet the operating habits of different users. The currently selected multiple can be displayed in the middle or edge of the roulette wheel to enhance the user experience.

[0041] 6. Visual feedback and interaction optimization: Regardless of the input method selected, provide immediate visual feedback, such as changing the background color, displaying a selected border, or highlighting the current multiple. Support undo and reset functions to allow users to quickly undo or reset to the default value when they are not satisfied with the current selection. Ensure that the control can display and work well on all major browsers and devices to improve cross-platform compatibility.

[0042] S2. Determine the size of the basic unit: Use the viewport width unit vw or the viewport height unit vh to determine the base unit size. Select vw or vh according to the specific web design requirements. For pages with fixed width and non-fixed height, you can choose vw as the unit base. For pages with fixed height (such as most CRM systems), it is recommended to use vh as the unit. If the base unit is the viewport height unit, obtain the design height of the system interface, and set the font size attribute in the root element of the web page to 100vh / h, where vh is the viewport height unit and h is the design height; if the base unit is the viewport width unit, obtain the design width of the system interface, and set the font size attribute in the root element of the web page to 100vh / h, where vh is the viewport width unit and h is the design width.

[0043] Taking vh as an example, in a page with a fixed height of the entire window and no vertical scrolling, assuming that the system interface height value in the design drawing is h, the font size font-size attribute in the CSS of the root element tag of the web page can be designed to be equal to 100vh / h, which corresponds to 1px in the design drawing.

[0044] This way, no matter how the viewport changes size, the base unit size will adjust accordingly to keep the design consistent.

[0045] S3. Adjust the root element font size: The window of the web page interface is scaled to a target zoom factor, and the font size attribute in the root element of the web page is adjusted according to the target zoom factor.

[0046] Specifically, the zooming method of the web page interface includes: (1) CSS media queries: Use CSS media queries to apply different style rules based on the viewport width or other conditions. However, "scaling" directly through CSS usually refers to adjusting the layout or font size to adapt to screens of different sizes, rather than physically scaling the entire viewport. The scaling effect can be simulated by changing the transform: scale() property of a container element (such as or a specific container).

[0047] (2) JavaScript dynamic adjustment: A more common practice is to use JavaScript to dynamically adjust the size or layout of page elements to respond to different scaling requirements. Direct scaling of the entire viewport (i.e., browser window) is usually not controlled by the web page content, but by the user through the browser interface.

[0048] According to the multiple parameter set by the user through the control, the font-size attribute of the root element of the web page is dynamically adjusted. The target zoom multiple is set as the font zoom multiple, and the product of the font zoom multiple and the basic unit is set as the font size value; the font size value is written into the font size attribute item of the root element of the web page.

[0049] For example, if the user sets a multiple of 1.5, the font size of the root element will be 1.5 times the base unit size. Use JS to calculate the target value to be modified after the user adjusts the value size, and assign the value to the root element.

[0050] S4. Use rem units to set element sizes: The sizes and font sizes of all other elements on the web page (such as text, images, buttons, etc.) (all places where length units are required) are set using rem units.

[0051] The rem unit is a relative unit based on the font size of the root element. 1rem is equal to the value of the font-size property of the root element. Therefore, when the font size of the root element changes, the sizes of all elements using the rem unit will be scaled accordingly.

[0052] S5. Achieve overall scaling: When the user adjusts the magnification parameter through the control, all elements of the entire web page will be scaled uniformly due to the change in the root element font size and the use of rem units. This scaling method ensures the consistency and adaptability of web page elements. No matter how the window size changes or how the user adjusts the magnification parameter, the web page can maintain a good display effect and user experience.

[0053] In some embodiments, the webpage interface zoom control system may include multiple functional modules composed of computer program segments. The computer programs of each program segment in the webpage interface zoom control system may be stored in a memory of a computer device and executed by at least one processor to perform (see Figure 1 Description) Functionality of the web interface zoom control.

[0054] In this embodiment, the web page interface zoom control system can be divided into multiple functional modules according to the functions it performs, such as Figure 2 As shown. The functional modules of the system 200 may include: a basic acquisition module 210, a basic setting module 220, a font scaling module 230, and an element scaling module 240. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can perform fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0055] Basic acquisition module, used to obtain the basic units of the web page interface; A basic setting module, used to set the font size attribute of the web page interface based on the basic unit; A font scaling module, used to scale the window of the web page interface to a target scaling factor, and adjust the font size attribute in the root element of the web page according to the target scaling factor; The element scaling module is used to set the specific parameter value of the font size attribute in the root element of the web page to a relative length unit.

[0056] Optionally, as an embodiment of the present invention, it further includes: The control adding module is used to add a zoom control in the web page interface, and the zoom control includes an input box, and the input box is used to write a target zoom multiple.

[0057] Optionally, as an embodiment of the present invention, the basic acquisition module includes: The acquisition unit is used to determine the basic unit size using the viewport width unit or the viewport height unit. The web page interface with fixed width and unfixed height selects the viewport width unit as the unit basis, and the web page interface with fixed height uses the viewport height unit as the basic unit.

[0058] Optionally, as an embodiment of the present invention, setting the font size attribute of the webpage interface based on the basic unit includes: If the basic unit is the viewport height unit, the design height of the system interface is obtained, and the font size attribute in the root element of the web page is set to 100vh / h, where vh is the viewport height unit and h is the design height; If the basic unit is the viewport width unit, the design width of the system interface is obtained, and the font size attribute in the root element of the web page is set to 100vh / h, where vh is the viewport width unit and h is the design width.

[0059] Optionally, as an embodiment of the present invention, scaling the window of the webpage interface to a target scaling factor, and adjusting the font size attribute in the root element of the webpage based on the target scaling factor, includes: The target zoom factor is set as the font zoom factor, and the product of the font zoom factor and the base unit is set as the font size value; The font size value is written into the font size attribute item of the root element of the web page.

[0060] Figure 3 The present invention is a schematic diagram of the structure of a terminal 300 provided in an embodiment of the present invention. The terminal 300 can be used to execute the webpage interface zoom control method provided in an embodiment of the present invention.

[0061] The terminal 300 may include: a processor 310, a memory 320 and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0062] The memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 can perform some or all of the steps in the following method embodiments.

[0063] The processor 310 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 320, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0064] The communication unit 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

[0065] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0066] Therefore, the present invention solves the problem of inconsistent zooming of web page elements, improves the accessibility and usability of web pages, and meets the personalized needs of different users. At the same time, the method also solves the limitation problem of the zoom function of traditional browsers, and provides a new and more effective web page zoom control solution for web page designers and developers. The technical effects that can be achieved by this embodiment can be found in the above description, and will not be repeated here.

[0067] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.

[0068] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

[0069] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.

[0070] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0071] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0072] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.

Claims

1. A web page interface zoom control method, characterized in that: include: Get the base unit of the web interface; Setting a font size attribute of a web page interface based on the base unit; Zooming the window of the web page interface to a target zoom factor, and adjusting the font size attribute in the root element of the web page according to the target zoom factor; Set the font-size attribute in the root element of the web page to a relative length unit.

2. The method according to claim 1, characterized in that Also includes: A zoom control is added to the web page interface, and the zoom control includes an input box, and the input box is used to write a target zoom factor.

3. The method according to claim 1, characterized in that Get the basic units of the web interface, including: Use the viewport width unit or the viewport height unit to determine the base unit size. For web interfaces with fixed width and variable height, select the viewport width unit as the base unit. For web interfaces with fixed height, use the viewport height unit as the base unit.

4. The method according to claim 3, characterized in that The font size attribute of the web page interface is set based on the basic unit, including: If the basic unit is the viewport height unit, the design height of the system interface is obtained, and the font size attribute in the root element of the web page is set to 100vh / h, where vh is the viewport height unit and h is the design height; If the basic unit is the viewport width unit, the design width of the system interface is obtained, and the font size attribute in the root element of the web page is set to 100vh / h, where vh is the viewport width unit and h is the design width.

5. The method according to claim 1, characterized in that Scaling the window of the webpage interface to a target zoom factor, and adjusting the font size attribute in the root element of the webpage based on the target zoom factor, including: The target zoom factor is set as the font zoom factor, and the product of the font zoom factor and the base unit is set as the font size value; The font size value is written into the font size attribute item of the root element of the web page.

6. A web page interface zoom control system, characterized in that: include: Basic acquisition module, used to obtain the basic units of the web page interface; A basic setting module, used to set the font size attribute of the web page interface based on the basic unit; A font scaling module, used to scale the window of the web page interface to a target scaling factor, and adjust the font size attribute in the root element of the web page according to the target scaling factor; The element scaling module is used to set the specific parameter value of the font size attribute in the root element of the web page to a relative length unit.

7. The system according to claim 6, characterized in that Also includes: The control adding module is used to add a zoom control in the web page interface, and the zoom control includes an input box, and the input box is used to write a target zoom multiple.

8. The system according to claim 6, characterized in that The basic acquisition module includes: The acquisition unit is used to determine the basic unit size using the viewport width unit or the viewport height unit. The web page interface with fixed width and unfixed height selects the viewport width unit as the unit basis, and the web page interface with fixed height uses the viewport height unit as the basic unit.

9. A terminal, characterized in that: include: A memory, used for storing a web page interface zoom control program; A processor is used to implement the steps of the web page interface zoom control method as described in any one of claims 1 to 5 when executing the web page interface zoom control program.

10. A computer-readable storage medium storing a computer program, characterized in that: The readable storage medium stores a web page interface zoom control program, and when the web page interface zoom control program is executed by the processor, the steps of the web page interface zoom control method according to any one of claims 1 to 5 are implemented.