Page adaptation method and device

A technology for adapting devices and pages, applied to instruments, electrical digital data processing, creating/generating source codes, etc., can solve problems such as low efficiency

Pending Publication Date: 2021-05-28
无线生活(杭州)信息科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the usual implementation plan is that developers use rem units when writing style (css) files when writing style (css) files. If the design draft is 750 pixels wide and the equal parts used are 10 equal parts, then 1 equal part is 75 pixels, the rem value of the element size or position is divided by the element size or position pixel value of the visual draft by 75, that is, when the button element width is 75 pixels, the corresponding rem value is 1rem, but the rem unit value is correct The converted value of the pixel value of the design draft needs to be converted by the developer based on different equal parts, which is inefficient

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
  • Page adaptation method and device
  • Page adaptation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0067] figure 1 is a flowchart of a page adaptation method shown according to an exemplary embodiment, as shown in figure 1 As shown, the method includes the following steps S101-S103:

[0068] In step S101, the design size of each element in the page design draft is acquired, and the design size is represented by a responsive unit, and the value of the responsive unit changes with t...

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 a page adaptation method and device. The method comprises the steps: obtaining the design size of each element in a page design draft, wherein the design size is represented by a response type unit, and the value of the response type unit changes along with the change of the size of a device screen; converting the response type unit into a target unit corresponding to the target equipment screen and a corresponding value of the response type unit under the target unit; and generating a new style file according to the converted target unit and the corresponding value of the response type unit under the target unit. A uniform response type unit is defined, and all elements and pages are defined and compiled in a consistent manner, so that the understanding cost of developers is reduced, and the developers can achieve seamless migration between the elements and the pages without changing codes. Through the unified configuration of the target unit and the target equal part, the unified management of the page adaptation scheme can be realized, and the adjustment of the size and equal part of the design draft and the support of the new unit can be quickly supported.

Description

technical field [0001] The present disclosure relates to the technical field of web page design, in particular to a page adaptation method and device. Background technique [0002] When developing mobile pages, due to different screen sizes, if the page is developed with a fixed size, scroll bars will appear on small-screen devices, and blank areas will appear on large-screen devices, so mobile pages need to be adjusted for different screen sizes Adaptation, adjust the page to the size of the current screen to ensure the consistency of the user's browsing experience and avoid scroll bars and blank areas. [0003] At present, the usual implementation plan is that developers use rem units when writing style (css) files when writing style (css) files. If the design draft is 750 pixels wide and the equal parts used are 10 equal parts, then 1 equal part is 75 pixels, the rem value of the element size or position is divided by the element size or position pixel value of the visua...

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): G06F8/38G06F8/33
CPCG06F8/33G06F8/38
Inventor 龙佳谭兵琴
Owner 无线生活(杭州)信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products