Page layout method and device
A web page layout and web page technology, applied in the information field, can solve the problems of heavy workload, long web page loading time, low efficiency, etc., to reduce the loading time and improve the efficiency of web page layout.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] figure 1 A flow chart showing the implementation of the webpage layout method according to an embodiment of the present invention is shown. Such as figure 1 As shown, the method mainly includes:
[0060] In step S101, the current window size of the browser is acquired.
[0061] It should be noted that the execution subject of the embodiment of the present invention may be a mobile terminal such as a mobile phone or a tablet computer, or may be a PC (Personal Computer, personal computer), which is not limited herein.
[0062] In the embodiment of the present invention, the current window size of the browser can be acquired through JavaScript.
[0063] In step S102, a first ratio between the current window size of the browser and a first preset value is calculated, and the first preset value is a preset initial window size of the browser.
[0064] Wherein, the first preset value may be the initial window size of the browser preset by the developer when designing the...
Embodiment 2
[0105] Figure 4 A structural block diagram of a web page layout device according to an embodiment of the present invention is shown. For ease of description, only parts related to the embodiments of the present invention are shown. Such as Figure 4 As shown, the device includes:
[0106] The current window size obtaining module 41 is used to obtain the current window size of the browser;
[0107] The first ratio calculating module 42 is used to calculate the first ratio between the current window size of the browser and a first preset value, and the first preset value is the preset initial window size of the browser;
[0108] The current value determination module 43 is configured to determine the product of the first ratio and the reference value as the current value of the font size of the root element of the webpage, wherein the reference value is the initial value of the font size of the root element of the webpage;
[0109] The element size determination module 44 i...
Embodiment 3
[0128] Figure 6 An exemplary structural block diagram of a web page layout device according to another embodiment of the present invention is shown. The webpage layout device 1100 may be a host server with computing capabilities, a personal computer PC, or a portable portable computer or terminal. The specific embodiments of the present invention do not limit the specific implementation of the computing nodes.
[0129] The webpage layout device 1100 includes a processor (processor) 1110 , a communication interface (CommunicationsInterface) 1120 , a memory (memory) 1130 and a bus 1140 . Wherein, the processor 1110 , the communication interface 1120 , and the memory 1130 communicate with each other through the bus 1140 .
[0130] The communication interface 1120 is used for communicating with network devices, where the network devices include, for example, a virtual machine management center, shared storage, and the like.
[0131] The processor 1110 is used to execute progra...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com