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

Method and device for adapting webpage to screen typesetting

A screen and webpage technology, applied in the field of webpage adapting to screen typesetting method and device, can solve the problem that webpage typesetting technology cannot retain webpage layout and style, achieve good effect and visual experience, simple solution, optimized and compatible effect

Active Publication Date: 2019-02-15
ALIBABA (CHINA) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a method and device for adapting web page typesetting to the screen to solve the problem that related web page typesetting technologies cannot retain the original web page layout and style

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
  • Method and device for adapting webpage to screen typesetting
  • Method and device for adapting webpage to screen typesetting
  • Method and device for adapting webpage to screen typesetting

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0062] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0063] figure 1 It is a schematic flow chart of a web page adaptation screen layout method provided in the embodiment of the present application, as shown in figure 1 As shown, the method includes the following steps.

[0064] In step S101, calculate the width of each node in the web page typesetting tree;

[0065] In step S102, it is ...

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

A method and device for adapting a webpage to screen layout. The method comprises: calculating the width of each node of a layout tree (S101); for nodes of which the widths are greater than the width of an intelligent terminal screen, limiting the widths of these nodes, modifying the styles of these nodes, and conducting layout in accordance with a screen adaptation rule (S104); and for nodes of which the widths are less than or equal to the width of the intelligent terminal screen, not conducting style processing, conducting layout in accordance with a standard flow, and reserving the original styles thereof (S103). Therefore, on the basis of adapting a webpage page to the screen, the original style of the page is reserved to a greater extent, so that the page display has better effects and visual experience. Moreover, by means of the method and device, the layout is only conducted on the nodes of which the widths are greater than the width of the screen using the screen adaptation rule, so that it is not easy to conflict with the standard flow generally, thereby solving the problem caused by the fact that it is difficult to achieve compatibility among various writing styles of pages.

Description

technical field [0001] The invention relates to the technical field of webpage typesetting, in particular to a method and device for adapting webpage typesetting to screens. Background technique [0002] With the popularization of mobile terminals such as smart phones and tablet computers and the rapid development of mobile network technology, using mobile terminals to surf the Internet has become a normal life of people. However, the web pages of the current website are mainly designed for computer screens. When users use mobile terminals to browse the website, due to the limitation of the screen size of mobile terminals, the webpage display often appears deformed, messy, and content is lost, which greatly reduces the user's browsing experience. . [0003] In order to make the webpage display normally on the mobile terminal and improve the user experience, the browser usually modifies the style of all webpage elements, and then organizes the content into a data stream for ...

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 Patents(China)
IPC IPC(8): G06F16/9538G06F16/957
CPCG06F16/00
Inventor 许国庆
Owner ALIBABA (CHINA) CO LTD