Unlock instant, AI-driven research and patent intelligence for your innovation.

Page adaptation method and device, computer equipment and storage medium

A page and display page technology, applied in the computer field, can solve the problems of high intrusion, increased maintenance cost, increased workload, etc., and achieve the effect of less intrusion

Inactive Publication Date: 2021-08-03
CITY CLOUD TECH HANGZHOU CO LTD
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Grid layout is an adaptive layout consisting of grid containers and grid items, which can automatically scale the size of the container according to different screen resolutions. However, for historical projects, the original code needs to be modified and the intrusion High reliability, and will increase the additional workload, with a certain transformation cost
Media queries can obtain the window size of the current page and apply the corresponding style sheet according to the current window size, so as to automatically adapt the page content under different resolutions, but this method requires adding additional JavaScript during page development Code, if you need to adapt more electronic devices with different screen resolutions, front-end engineers need to add corresponding JavaScript codes for different electronic devices and different screen resolutions, not only the workload will increase, but the subsequent maintenance costs will also increase accordingly

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Page adaptation method and device, computer equipment and storage medium
  • Page adaptation method and device, computer equipment and storage medium
  • Page adaptation method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.

[0031] It should be noted that in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or less steps than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; multiple steps described in this specification may also be combined into a single step in other e...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a page adaptation method and device, computer equipment and a storage medium. The method comprises the steps that the current window size of a display page, the original size of the page and the first word size of a root element in the page are obtained; the width change ratio and the height change ratio are calculated according to the current window size and the page original size, the current window size comprising the window width and the window height, and the page original size comprising the page width and the page height; and an element scaling ratio is determined based on the width change ratio and the height change ratio, and a second word size of the root element is obtained according to the element scaling ratio and the first word size of the root element. According to the method, the elements in the page can be automatically zoomed according to the change of the first word size of the root element to adapt to electronic equipment with different screen resolutions, and the first word size of the root element is timely adjusted according to the change of the current window size, so that the sizes of all the elements in the page are adjusted.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a page adaptation method, device, computer equipment and storage medium. Background technique [0002] With the development of technology, there are more and more electronic devices of various types, and the screen resolutions on different electronic devices are also different. The browser in the electronic device needs to parse and render the files in the web server into a visual page, so in order to adapt the page to electronic devices with different screen resolutions, front-end engineers often need to develop corresponding , so that the content of the page can be displayed completely and clearly. [0003] With the modularization and engineering of front-end technology, various corresponding frameworks and solutions have gradually matured, including Vue, React and other frameworks that provide componentization capabilities and scaffolding projects, improving m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/38G06F16/957G06F16/958
CPCG06F8/38G06F16/957G06F16/958
Inventor 李圣权沈自强杨彬
Owner CITY CLOUD TECH HANGZHOU CO LTD