Method and apparatus for typesetting in manner of making webpage adapt to screen

A screen and webpage technology, applied in the field of webpage adapting to screen typesetting methods and devices, can solve the problems that webpage typesetting technology cannot retain the layout and style of webpages, achieve good effects and visual experience, reduce incompatibility, and optimize compatibility effects

Active Publication Date: 2016-01-06
ALIBABA (CHINA) CO LTD
View PDF5 Cites 10 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 apparatus for typesetting in manner of making webpage adapt to screen
  • Method and apparatus for typesetting in manner of making webpage adapt to screen
  • Method and apparatus for typesetting in manner of making webpage adapt to screen

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 protection scope 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 jud...

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 application discloses a method and an apparatus for typesetting in a manner of making a webpage adapt to a screen. The method provided by an embodiment of the application comprises: calculating the width of each node of a typesetting tree, limiting the width of the node with the width greater than that of a screen of an intelligent terminal, modifying the style of the node, and performing typesetting according to a rule of adapting to the screen; and not performing style processing on the node with the width less than or equal to that of the screen of the intelligent terminal, performing typesetting according to a standard flow, and reserving an original style of the node. Therefore, the original style of the page is more reserved on the basis of ensuring that the webpage adapts to the screen, and the page display has better effect and visual experience; and only the node with the width greater than that of the screen is typeset by adopting the rule of adapting to the screen, so that the conflict with the standard flow is not easily caused as a whole and the problems caused by difficult compatibility among various styles of writing in the page are reduced.

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 Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/00
Inventor 许国庆
Owner ALIBABA (CHINA) CO LTD
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