Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Webpage self-adaptive layout method, server and computer readable storage medium

A layout method and self-adaptive technology, which is applied in the field of server and computer-readable storage media, and the field of self-adaptive layout of webpages, which can solve the problems of chaotic layout, inability to fully restore the size ratio of design drafts, and unacceptable rendering effects, etc.

Pending Publication Date: 2020-02-25
PING AN TECH (SHENZHEN) CO LTD
View PDF3 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, workers in the field of web front-end development mainly adopt solutions such as content area fixed-width layout and media query, JavaScript dynamic calculation of width and height, percentage layout, and fluid layout when encountering the problem of adaptive layout of web pages. The solution optimizes the layout of the page to a certain extent and optimizes the visual presentation effect, but it still cannot fully restore the size ratio of the design draft, or needs to fine-tune the layout, or need to hide some elements under smaller screens
For example, for the flow layout scheme, the width is defined by percentage during page layout, and the height is mostly fixed by pixels (pixel, px), so the display effect on some screens will become that the width of some page elements is pulled It is very long, but the height is still the same as before. The actual display is very uncoordinated, and even the layout is chaotic. Often, the effect presented on a screen with only a few sizes is satisfactory. Whether it is a visual designer or a web page user , are unacceptable to this rendering effect

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
  • Webpage self-adaptive layout method, server and computer readable storage medium
  • Webpage self-adaptive layout method, server and computer readable storage medium
  • Webpage self-adaptive layout method, server and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0051] It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for descriptive purposes, and should not be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features . Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one...

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 relates to the field of Web front-end development, and discloses a webpage self-adaptive layout method, which comprises the following steps of setting rem as a unit of attributes of elements width, height, margin, ping and left top in a CSS; when the webpage is opened, adjusting the font-size value of the HTML element according to the size of the screen, so that the attribute value of the element in the body is synchronously adjusted along with the font-size value; calculating the width-to-height ratio of the design draft and the width-to-height ratio of the terminal screen, andcomparing the width-to-height ratio of the design draft with the width-to-height ratio of the terminal screen to obtain a comparison result; optimizing the attribute values of the elements in the bodyaccording to the comparison result to obtain optimized attribute values of the elements in the body; and generating an optimized page according to the optimized attribute values of the elements in the body. Thus, according to the scheme, the size of the design draft can be directly converted into the code size, all elements of the page can be automatically adjusted to the proper size only by taking the width or height of the terminal as the judgment benchmark, the layout of all contents on the page is the same as the layout of the design draft, and the high proportion of the design is completely restored.

Description

technical field [0001] The invention relates to the field of Web front-end development, in particular to a web page self-adaptive layout method, a server and a computer-readable storage medium. Background technique [0002] At present, workers in the field of web front-end development mainly adopt solutions such as content area fixed-width layout and media query, JavaScript dynamic calculation of width and height, percentage layout, and fluid layout when encountering the problem of adaptive layout of web pages. The solution optimizes the layout of the page to a certain extent and optimizes the visual presentation effect, but it still cannot fully restore the size ratio of the design draft, or needs to fine-tune the layout, or need to hide some elements under smaller screens. For example, for the flow layout scheme, the width is defined by percentage during page layout, and the height is mostly fixed by pixels (pixel, px), so the display effect on some screens will become tha...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/958G06F16/957G06F9/451
CPCG06F16/958G06F16/9577G06F9/451
Inventor 刘志凯孔祥成姜凯英
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products