Patent Document ID: 9886519
Application ID: 14130463

Base Claim:
1. A method for adjusting webpage layout, comprising: calculating a width for displaying an image on a webpage; determining whether the image is inserted in a segment of text of the webpage, including checking whether a parent node of the image includes a label representing a paragraph of text; adjusting a size of the image display based on a mobile terminal's screen width and the width for displaying the image, if the image is inserted in the segment of text of the webpage, including: setting a width of the image display to the mobile terminal's screen width subtracting a fixed number of pixels, and setting a height of the image display based on the width of the image display; and adding a label to the image display to force the image display to be left justified, while ignoring label attributes including at least one of text-align, indent, and margin.

---

Claim 2:
2. The method according to claim 1 , further comprising: determining whether the image display needs to be adjusted; determining whether the width for displaying the image is different from a default value; and determining whether the screen width of the mobile terminal has changed.