Method and apparatus for modifying the font size of a webpage according to the screen resolution of a client device
First Claim
1. A method of displaying a webpage, comprising:
- receiving a first request message from a client requesting to browse a webpage and information indicative of a screen resolution adopted by the client;
selecting a font size corresponding to the screen resolution adopted by the client according to the screen resolution adopted by the client and predetermined correlations between screen resolutions and font sizes;
generating the webpage in a scale corresponding to the screen resolution adopted by the client and the selected font size, wherein;
the selected font size relates to a first proportion of the screen resolution;
an attribute of a webpage element of the webpage relates to a second proportion of the screen resolution, the attribute of the webpage element including a table font size of text in a table, a line spacing, or a combination thereof;
sending the webpage to the client;
when the screen resolution is reset to a user-set screen resolution at a time after sending the webpage to the client;
obtaining a ratio between the user-set screen resolution and the screen resolution adopted by the client prior to resetting; and
causing a webpage displayed at the client to be proportionally scaled according to the ratio; and
upon receiving a second request message from the client indicative of the font size being reset to a user-set font size at a time after the webpage has been sent to the client, generating a revised webpage in a scale according to the screen resolution adopted by the client and the user-set font size, wherein the revised webpage includes a revised attribute of the webpage element, and wherein a size of the revised attribute of the webpage element is different from a size of the attribute of the webpage element.
0 Assignments
0 Petitions
Accused Products
Abstract
Displaying a webpage includes: receiving a first request message from a client requesting to browse a webpage; sending a second request message to the client requesting for a screen resolution adopted by the client; receiving, form the client, information indicative of the screen resolution adopted by the client; selecting a font size corresponding to the screen resolution adopted by the client according to the screen resolution adopted by the client and a predetermined correlation between screen resolutions and font sizes; generating the webpage in a scale corresponding to the screen resolution adopted by the client and the selected font size; and sending the webpage to the client.
34 Citations
10 Claims
-
1. A method of displaying a webpage, comprising:
-
receiving a first request message from a client requesting to browse a webpage and information indicative of a screen resolution adopted by the client; selecting a font size corresponding to the screen resolution adopted by the client according to the screen resolution adopted by the client and predetermined correlations between screen resolutions and font sizes; generating the webpage in a scale corresponding to the screen resolution adopted by the client and the selected font size, wherein; the selected font size relates to a first proportion of the screen resolution; an attribute of a webpage element of the webpage relates to a second proportion of the screen resolution, the attribute of the webpage element including a table font size of text in a table, a line spacing, or a combination thereof; sending the webpage to the client; when the screen resolution is reset to a user-set screen resolution at a time after sending the webpage to the client; obtaining a ratio between the user-set screen resolution and the screen resolution adopted by the client prior to resetting; and causing a webpage displayed at the client to be proportionally scaled according to the ratio; and upon receiving a second request message from the client indicative of the font size being reset to a user-set font size at a time after the webpage has been sent to the client, generating a revised webpage in a scale according to the screen resolution adopted by the client and the user-set font size, wherein the revised webpage includes a revised attribute of the webpage element, and wherein a size of the revised attribute of the webpage element is different from a size of the attribute of the webpage element. - View Dependent Claims (2, 3, 4)
-
-
5. A website server, comprising:
-
a processor; and a memory coupled with the processor, wherein the memory is configured to provide the processor with instructions which when executed cause the processor to; receive from a client a first request message requesting to browse a webpage and information indicative of a screen resolution adopted by the client; select a font size corresponding to the screen resolution adopted by the client and a predetermined correlation between screen resolutions and font sizes; and generate a webpage in a scale corresponding to the screen resolution adopted by the client and the selected font size, wherein; the selected font size relates to a first proportion of the screen resolution; an attribute of a webpage element of the webpage relates to a second proportion of the screen resolution, the attribute of the webpage element including a table font size of text in a table, a line spacing, or a combination thereof; when the screen resolution is reset to a user-set screen resolution at a time after sending the webpage to the client; obtain a ratio between the user-set screen resolution and the screen resolution adopted by the client prior to resetting, and cause a webpage displayed at the client to be proportionally scaled according to the ratio; and upon receiving a second request message from the client indicative of the font size being reset to a user-set font size at a time after the webpage has been sent to the client, generate a revised webpage in a scale according to the screen resolution adopted by the client and the user-set font size, wherein the revised webpage includes a revised attribute of the webpage element, and wherein a size of the revised attribute of the webpage element is different from a size of the attribute of the webpage element. - View Dependent Claims (6, 7)
-
-
8. A website system, comprising:
a website server that; receives a first request message from a client requesting to browse a webpage and information indicative of a screen resolution adopted by the client, selects a font size according to the screen resolution and a predetermined correlation between screen resolutions and font sizes, generates the webpage in a scale corresponding to the screen resolution and the selected font size, and sends the generated webpage to the client, wherein; the selected font size relates to a first proportion of the screen resolution; an attribute of a webpage element of the webpage relates to a second proportion of the screen resolution, the attribute of the webpage element including a table font size of text in a table, a line spacing, or a combination thereof; when the font size is reset to a user-set font size, generates a first revised webpage in a scale corresponding to the screen resolution adopted by the client and the user-set font size; when the screen resolution is reset to a user-set screen resolution, selects a new font size corresponding to the user-set screen resolution based on the predetermined correlation between screen resolutions and font sizes, and generates a second revised webpage in a scale corresponding to the user-set screen resolution and the new font size; when the screen resolution is reset to a user-set screen resolution, obtains a ratio between the user-set screen resolution and the screen resolution adopted by the client prior to resetting, and causes a webpage displayed at the client to be proportionally scaled according to the ratio; and upon receiving a second request message from the client indicative of the font size being reset to a user-set font size at a time after the webpage has been sent to the client, generates a revised webpage in a scale according to the screen resolution adopted by the client and the user-set font size, wherein the revised webpage includes a revised attribute of the webpage element, and wherein a size of the revised attribute of the webpage element is different from a size of the attribute of the webpage element, wherein the website server includes a processor. - View Dependent Claims (9, 10)
Specification