×

Webpage display method and device

  • US 10,339,209 B2
  • Filed: 05/27/2016
  • Issued: 07/02/2019
  • Est. Priority Date: 11/29/2013
  • Status: Active Grant
First Claim
Patent Images

1. A webpage display method, the method comprising:

  • acquiring source code of a webpage to be displayed;

    parsing the source code to form tree-shaped nodes;

    composing the tree-shaped nodes according to style specifications of the source code;

    determining at least a primary container according to the composed tree-shaped nodes, wherein the determining a primary container according to the composed tree-shaped nodes comprises;

    judging whether a parent node of the current node is the primary container;

    upon judging that the parent node of the current node is the primary container, judging whether the width of the current node is greater than or equal to a first percentage of the width of a root node and greater than or equal to a second percentage of the width of the parent node of the current node;

    upon judging that the width of the current node is greater than or equal to the first percentage of the width of the root node and greater than or equal to the second percentage of the width of the parent node of the current node, judging whether the height of the current node is a fixed value; and

    upon judging that the height of the current node is not the fixed value, determining the current node as the primary container;

    determining a plurality of secondary containers in the primary container, wherein each of the secondary containers contains some of elements of the webpage to be displayed;

    determining an area of each of the secondary containers in the primary container and a threshold value associated with areas of the secondary containers;

    adjusting the area of one or more of the secondary containers that is greater than the threshold value to be scaled up and the area of other one or more of the secondary containers to be scaled down; and

    displaying the elements of the webpage to be displayed which are contained in the adjusted secondary containers on a screen of a terminal.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×