TWI503676B - Methods, devices and systems for presenting web pages - Google Patents

Methods, devices and systems for presenting web pages Download PDF

Info

Publication number
TWI503676B
TWI503676B TW099106788A TW99106788A TWI503676B TW I503676 B TWI503676 B TW I503676B TW 099106788 A TW099106788 A TW 099106788A TW 99106788 A TW99106788 A TW 99106788A TW I503676 B TWI503676 B TW I503676B
Authority
TW
Taiwan
Prior art keywords
font
screen resolution
user
webpage
page
Prior art date
Application number
TW099106788A
Other languages
Chinese (zh)
Other versions
TW201131384A (en
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to TW099106788A priority Critical patent/TWI503676B/en
Publication of TW201131384A publication Critical patent/TW201131384A/en
Application granted granted Critical
Publication of TWI503676B publication Critical patent/TWI503676B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Description

呈現網頁頁面的方法、裝置及系統Method, device and system for presenting webpage page

本申請涉及電腦領域,特別涉及一種呈現網頁頁面的方法、裝置及系統。The present application relates to the field of computers, and in particular, to a method, device and system for presenting web pages.

隨著技術的發展,用戶端支援的螢幕解析度逐步提高,而用戶端採用的瀏覽器呈現的網頁頁面中字體字型大小的取值卻始終未變,目前,任意瀏覽器的預設字體字型大小的取值均為16PX(即16圖元),那麼顯然,螢幕解析度越高的用戶端通過瀏覽器呈現的網頁頁面的字體便越小,這便給用戶的瀏覽帶來了極大的不便。例如,12圖元的字體在1280*1024PX及以上的螢幕解析度下展現時,文字內容偏小,會給部分瀏覽者帶來文字閱讀方面的困難。具體參閱圖1A所示。With the development of technology, the resolution of the screen supported by the client is gradually improved, and the value of the font font size of the web page displayed by the browser used by the client has not changed. Currently, the default font of any browser. The size of the type is 16PX (that is, 16 primitives). Obviously, the higher the resolution of the screen, the smaller the font of the web page rendered by the browser through the browser, which brings great browsing to the user. inconvenient. For example, when the font of 12 primitives is displayed at a screen resolution of 1280*1024PX and above, the text content is too small, which may cause difficulty for some viewers to read text. See Figure 1A for details.

針對上述問題,現有技術下,往往通過瀏覽器內嵌的字體調整功能(如,IE工具中的“字體大小”)或者作業系統預設的字體調整功能(如,螢幕解析度調整),對瀏覽器呈現的字體大小進行調整,使網頁頁面包含的字體的大小達到用戶的使用要求,具體如圖1B所示。然而,採用這種方法會使網頁頁面的排版出現混亂,不能完整地呈現頁面資訊,並且由於漢字是點陣字體,因此,擴大後的字體會變得模糊不清,這仍然影響了用戶的使用,從而降低了網站系統的服務品質。In view of the above problems, in the prior art, the font adjustment function embedded in the browser (for example, "font size" in the IE tool) or the font adjustment function preset by the operating system (for example, screen resolution adjustment) is used for browsing. The size of the font rendered by the device is adjusted so that the size of the font contained in the webpage page reaches the user's usage requirement, as shown in FIG. 1B. However, using this method will make the layout of webpage pages confusing, and the page information cannot be completely presented. Since the Chinese characters are dot matrix fonts, the enlarged fonts will become blurred, which still affects the user's use. , thereby reducing the service quality of the website system.

本申請實施例提供一種呈現網頁頁面的方法、裝置及系統,用以提高網頁頁面的顯示效果。The embodiment of the present invention provides a method, device, and system for presenting a webpage page, which are used to improve the display effect of the webpage.

一種呈現網頁頁面的方法,包括:網站伺服器接收用戶端發送的用於請求瀏覽網頁的第一請求消息後,向所述用戶端發送用於查詢螢幕解析度的第二請求消息;所述網站伺服器根據用戶端返回的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小;所述網站伺服器根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往所述用戶端。A method for presenting a webpage page, comprising: after receiving a first request message sent by a client for requesting to browse a webpage, the website server sends a second request message for querying the screen resolution to the client; the website The server selects a font font size corresponding to the screen resolution setting according to a screen resolution returned by the user terminal, and a correspondence between a preset screen resolution and a font font size; the website server according to the The screen resolution and the obtained font font size generate a corresponding proportion of the webpage page, and send the webpage page to the client.

一種呈現網頁頁面的方法,包括:用戶端發送用於請求瀏覽網頁的請求消息時,查詢所述用戶端的螢幕解析度,並將所述螢幕解析度發送給網站伺服器;所述網站伺服器接收用戶端發送的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小;所述網站伺服器根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往所述用戶端。A method for presenting a webpage, comprising: querying, by a client, a screen resolution for requesting browsing of a webpage, querying a screen resolution of the client, and transmitting the screen resolution to a web server; the web server receiving a screen resolution sent by the client, and a correspondence between the preset screen resolution and the font font size, and selecting a font font size corresponding to the screen resolution setting; the website server parses according to the screen The degree and the obtained font font size generate a corresponding proportion of the web page, and send the web page to the client.

一種網站伺服器,包括:通信單元,用於接收用戶端發送的用於請求瀏覽網頁的第一請求消息後,向所述用戶端發送用於查詢螢幕解析度的第二請求消息,以及接收用戶端返回的螢幕解析度;獲取單元,用於根據所述用戶端返回的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小;生成單元,用於根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並通過所述通信單元將該網頁頁面發往所述用戶端。A website server, comprising: a communication unit, configured to: after receiving a first request message sent by a user end for requesting to browse a webpage, send a second request message for querying the screen resolution to the user end, and receiving the user The screen resolution returned by the end; the obtaining unit is configured to select, according to the screen resolution returned by the user end, and the correspondence between the preset screen resolution and the font font size, select the screen resolution corresponding to the screen resolution a font size; a generating unit, configured to generate a webpage corresponding to the screen according to the screen resolution and the obtained font font size, and send the webpage to the client by using the communication unit.

一種網站伺服器,包括:通信單元,用於接收用戶端發送的用於請求瀏覽網頁的請求消息以及螢幕解析度;獲取單元,用於根據所述用戶端發送的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小;生成單元,用於根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並通過所述通信單元將該網頁頁面發往所述用戶端。A website server, comprising: a communication unit, configured to receive a request message sent by a client for requesting browsing of a webpage, and a screen resolution; an obtaining unit, configured to use the screen resolution sent by the user terminal, and a preset Corresponding relationship between the screen resolution and the font font size, selecting a font font size corresponding to the screen resolution setting; and a generating unit configured to generate a corresponding ratio according to the screen resolution and the obtained font font size a web page, and sending the web page to the client through the communication unit.

一種網站系統,包括網站伺服器,所述網站伺服器接收用戶端發送的用於請求瀏覽網頁的第一請求消息後,向所述用戶端發送用於查詢螢幕解析度的第二請求消息,並根據用戶端返回的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小,再根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往所述用戶端。a website system, including a website server, after receiving a first request message sent by a client for requesting to browse a webpage, sending a second request message for querying the screen resolution to the client, and According to the resolution of the screen returned by the user terminal, and the correspondence between the preset screen resolution and the font font size, the font font size corresponding to the screen resolution setting is selected, and then obtained according to the screen resolution and obtained. The font font size generates a corresponding proportion of the web page, and sends the web page to the client.

一種網站系統,包括網站伺服器和用戶端,包括:用戶端,用於向網站伺服器發送瀏覽網頁頁面的請求,查詢本地用戶端的螢幕解析度,並將該螢幕解析度發送給網站伺服器;網站伺服器,接收用戶端發送的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小,再根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往用戶端。A website system, comprising a website server and a client, comprising: a user end, configured to send a request for browsing a webpage page to the web server, query a screen resolution of the local user end, and send the screen resolution to the website server; The web server receives the screen resolution sent by the client, and the correspondence between the preset screen resolution and the font font size, selects the font font size corresponding to the screen resolution setting, and then according to the screen The resolution and the obtained font font size generate a corresponding proportion of the web page, and send the web page to the user.

採用上述技術方案,網站伺服器可以根據各用戶端當前採用的螢幕解析度生成字體大小比例適合用戶瀏覽的網頁頁面,有效地提升了網頁頁面的顯示效果,提高了網站系統的服務品質,也大大增加了用戶體驗。By adopting the above technical solution, the website server can generate a webpage page suitable for the user to browse according to the screen resolution currently used by each client, thereby effectively improving the display effect of the webpage page, improving the service quality of the website system, and greatly improving the service quality of the website system. Increased user experience.

為了提高網站系統的服務品質,提升網頁頁面的顯示效果,本申請實施例中,網站伺服器接收用戶端發送的用於請求瀏覽網頁的第一請求消息後,向所述用戶端發送用於查詢螢幕解析度的第二請求消息,並根據用戶端返回的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小,再根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往所述用戶端。本申請的另一實施例為:用戶端向網站伺服器發送用於請求瀏覽網頁的請求消息時,主動查詢本地螢幕解析度,並將所述螢幕解析度發送給網站伺服器,網站伺服器根據預設的螢幕解析度與字體字型大小之間的對應關係選擇對應所述螢幕解析度設置的字體字型大小,再根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往所述用戶端。In order to improve the service quality of the website system and improve the display effect of the webpage, in the embodiment of the present application, the website server sends the first request message sent by the user end for requesting to browse the webpage, and then sends the query to the client for querying. a second request message of the screen resolution, and selecting a font font size corresponding to the screen resolution setting according to a screen resolution returned by the user terminal and a correspondence between a preset screen resolution and a font font size And generating a corresponding proportion of the webpage page according to the screen resolution and the obtained font font size, and sending the webpage page to the user end. Another embodiment of the present application is: when the user sends a request message for requesting to browse the webpage to the website server, the local screen resolution is actively queried, and the screen resolution is sent to the web server, and the web server is based on Corresponding relationship between the preset screen resolution and the font font size is selected to correspond to the font font size set by the screen resolution, and then generating a corresponding proportion of the webpage according to the screen resolution and the obtained font font size. And send the web page to the client.

下面結合附圖對本申請優選的實施方式進行詳細說明。The preferred embodiments of the present application are described in detail below with reference to the accompanying drawings.

參閱圖2所示,本申請第一實施例中,提供網站服務的系統內包括若干用戶端10和網站伺服器11,其中,用戶端10,用於向網站伺服器11請求瀏覽網頁頁面;網站伺服器11,用於接收用戶端10發送的用以請求瀏覽網頁的第一請求消息後,向用戶端10發送用以查詢螢幕解析度的第二請求消息,並根據用戶端10返回的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小,再根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往用戶端10。Referring to FIG. 2, in the first embodiment of the present application, a system for providing a website service includes a plurality of client terminals 10 and a website server 11, wherein the client terminal 10 is configured to request a webpage server 11 to browse a webpage page; The server 11 is configured to receive a second request message sent by the user terminal 10 for requesting to browse the webpage, and send a second request message for querying the screen resolution to the client terminal 10, and according to the screen resolution returned by the client terminal 10. Degree, and the correspondence between the preset screen resolution and the font font size, selecting the font font size corresponding to the screen resolution setting, and generating corresponding according to the screen resolution and the obtained font font size. The proportion of the web page and send the web page to the client 10.

參閱圖3所示,本申請實施例中,網站伺服器11包括存儲單元110、通信單元111、獲取單元112和生成單元113,其中,存儲單元110,用於保存預設的螢幕解析度和字體字型大小之間的對應關係;通信單元111,用於在接收用戶端10發送的用以請求瀏覽網頁的第一請求消息後,向用戶端10發送用以查詢螢幕解析度的第二請求消息,以及接收用戶端10返回的螢幕解析度;獲取單元112,用於根據用戶端10返回的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小;生成單元113,用於根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並通過通信單元111將該網頁頁面發往用戶端10。As shown in FIG. 3, in the embodiment of the present application, the website server 11 includes a storage unit 110, a communication unit 111, an obtaining unit 112, and a generating unit 113, wherein the storage unit 110 is configured to save a preset screen resolution and font. Corresponding relationship between font sizes; the communication unit 111 is configured to send a second request message for querying the screen resolution to the user terminal 10 after receiving the first request message sent by the user terminal 10 to request to browse the webpage. And receiving the screen resolution returned by the client 10; the obtaining unit 112 is configured to select, according to the screen resolution returned by the client 10, and the corresponding relationship between the preset screen resolution and the font font size, a font font size set by the screen resolution; a generating unit 113, configured to generate a webpage corresponding to the screen according to the screen resolution and the obtained font font size, and send the webpage page to the user terminal 10 through the communication unit 111. .

本申請的第二實施例中,提供網站服務的系統內包括若干用戶端10和網站伺服器11,其中,用戶端10,用於向網站伺服器11請求瀏覽網頁頁面,主動查詢本地用戶端的螢幕解析度,並將該螢幕解析度發送給網站伺服器。In the second embodiment of the present application, the system for providing the website service includes a plurality of client terminals 10 and a website server 11, wherein the client terminal 10 is configured to request the website server 11 to browse the webpage page and actively query the screen of the local client. Resolution, and send the screen resolution to the web server.

網站伺服器11,根據用戶端10發送的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應所述螢幕解析度設置的字體字型大小,再根據所述螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往用戶端10。The website server 11 selects the font font size corresponding to the screen resolution setting according to the screen resolution sent by the client terminal 10 and the correspondence between the preset screen resolution and the font font size, and then according to the The screen resolution and the obtained font font size generate a corresponding proportion of the webpage page, and the webpage page is sent to the client terminal 10.

基於上述系統架構,本申請實施例中,在網站伺服器11上要預先定義好初始的螢幕解析度和字體字型大小之間的對應關係。可以採用層疊式表(Cascading Stylesheet,CSS)技術進行設置,CSS是一種樣式表(stylesheet)技術,在進行網頁製作時採用CSS技術,可以有效地對頁面的佈局、字體、顏色、背景和其他效果實現更加精確的控制。本實施例中,採用CSS技術進行螢幕解析度和字體字型大小的初始設置時,將字體高(em)為單位引入字型大小的定義,em是相對單位,即相對於當前物件內文本的字體尺寸,若當前物件內文本的字體尺寸未被人為設置,則相對於瀏覽器的預設字體尺寸,類似百分比。如,現有技術下,大部分瀏覽器採用的字體定義標準都符合:1em=16px,以此類推,可以得到,14px=0.875em,12px=0.75em,10px=0.625em。為了簡化換算,較佳地,採用body選擇器進行頁面元素屬性設置,body類型選擇器的作用是將預設規則利用繼承機制應用給所有頁面元素,其效果是給頁面內元素加上字體樣式、顏色、大小、邊框外觀、內邊距等屬性。本申請實施例中,在CSS的body選擇器中預設Font-size=62.5%,使得瀏覽器的字體大小更改為:16px*62.5%=10px,此時,1em的取值轉換為:10px,即表明只需要將原來的以px為單位的字體字型大小的取值除以10,並轉換為em作為單位就可以了。具體實施如下:Based on the above system architecture, in the embodiment of the present application, the correspondence between the initial screen resolution and the font font size is pre-defined on the website server 11. Can be set up using Cascading Stylesheet (CSS) technology, which is a stylesheet technology that uses CSS technology for web page creation, effectively mapping the page layout, fonts, colors, backgrounds and other effects. Achieve more precise control. In this embodiment, when the initial setting of the screen resolution and the font font size is adopted by the CSS technology, the font height (em) is introduced into the definition of the font size, and em is a relative unit, that is, relative to the text in the current object. The font size, if the font size of the text in the current object is not set manually, it is similar to the default font size of the browser. For example, in the prior art, most browsers adopt font definition standards that are consistent with: 1em=16px, and so on, 14px=0.875em, 12px=0.75em, 10px=0.625em. In order to simplify the conversion, preferably, the body selector is used to set the page element attribute, and the body type selector is used to apply the default rule to all page elements by using the inheritance mechanism, and the effect is to add a font style to the elements in the page. Properties such as color, size, border appearance, padding, and more. In the embodiment of the present application, Font-size=62.5% is preset in the body selector of the CSS, so that the font size of the browser is changed to: 16px*62.5%=10px, and the value of 1em is converted to: 10px. That is to say, it is only necessary to divide the value of the original font font size in px by 10 and convert it to em as a unit. The specific implementation is as follows:

(font-family指字體、font-size指字體大小規格:、TD指表格中定義文字大小規格、light-height表示行距)(font-family refers to font, font-size refers to font size specification: TD refers to the text size specification defined in the table, light-height indicates the line spacing)

font-family:微軟雅黑,Lucida Grande,tahoma,宋體;Font-family: Microsoft Yahei, Lucida Grande, tahoma, Song style;

font-size:62.5%Font-size: 62.5%

Td:1.2-1.8em(或者120%-180%)Td: 1.2-1.8em (or 120%-180%)

Light-height:1.6-2 em(或者160%-200%)Light-height: 1.6-2 em (or 160%-200%)

採用em為單位對字體字型大小進行定義具有如下特點:em的值並不是固定的,em會繼承父級元素的字體大小,可應用於基於IE的瀏覽器中對字體大小進行縮放/擴展;em為相對大小的單位,用戶可以根據自身需要基於em對字體大小進行相應修改(以圖元為單位設置字體大小時,用戶是不能對字體大小進行修改的),這就更為靈活地適合了各種各樣的用戶需求,提高了網站系統的服務品質。The font size is defined by em as follows: em value is not fixed, em inherits the font size of the parent element, and can be applied to the IE-based browser to scale/extend the font size; Em is a relative size unit, the user can modify the font size based on em according to his own needs (the user can not modify the font size when setting the font size in units of graphics), which is more flexible. A variety of user needs have improved the service quality of the website system.

進行初始定義後,網站伺服器11在接收到用戶端10發送的瀏覽網頁的請求時,先判斷用戶端10使用的螢幕解析度,再根據預設的螢幕解析度和字體字型大小之間的映射關係,生成相應比例的網頁頁面並發送至用戶端10;參閱圖4所示,為本申請第一實施例網站伺服器11根據用戶端10的螢幕解析度向其呈現相應網站頁面的詳細流程如下:After the initial definition is performed, the website server 11 first determines the screen resolution used by the client 10 when receiving the request for browsing the webpage sent by the client terminal 10, and then according to the preset screen resolution and the font font size. The mapping relationship is generated, and a web page of a corresponding proportion is generated and sent to the user terminal 10; as shown in FIG. 4, the detailed process of the website server 11 presenting the corresponding website page according to the screen resolution of the client 10 according to the first embodiment of the present application is shown. as follows:

步驟400:用戶端10登錄網站伺服器11並通過鑒權認證。Step 400: The client 10 logs in to the website server 11 and passes the authentication.

實際應用中,用戶端10通過網站伺服器11的鑒權認證後,便可以使用網站伺服器11提供的各種網站業務了,例如,瀏覽網頁,下載檔等等。In the actual application, after the client 10 passes the authentication of the website server 11, the website services provided by the website server 11 can be used, for example, browsing a webpage, downloading a file, and the like.

步驟410:用戶端10根據用戶指示向網站伺服器11發送網頁瀏覽請求消息。Step 410: The user terminal 10 sends a webpage browsing request message to the website server 11 according to the user instruction.

本實施例中,上述網頁瀏覽請求消息中攜帶有用戶指示瀏覽的網頁的統一資源定位(URL)地址。In this embodiment, the webpage browsing request message carries a uniform resource location (URL) address of a webpage that the user instructs to browse.

步驟420:網站伺服器11接收到用戶端10發送的網頁瀏覽請求消息後,向用戶端10發送解析度查詢請求消息,通過該消息指示用戶端10返回當前採用的螢幕解析度。Step 420: After receiving the webpage browsing request message sent by the client 10, the website server 11 sends a resolution query request message to the client 10, and the message 10 is used to instruct the client 10 to return the currently used screen resolution.

步驟430:用戶端10接收到解析度查詢請求消息後,獲取本地當前採用的螢幕解析度,以下稱為解析度1。Step 430: After receiving the resolution query request message, the client 10 obtains the screen resolution currently used locally, which is referred to as resolution 1 below.

步驟440:用戶端10將獲取的解析度1攜帶在解析度查詢回應消息中發送至網站伺服器11。Step 440: The client 10 carries the acquired resolution 1 in the resolution query response message and sends it to the website server 11.

步驟450:網站伺服器11根據接收的解析度1,以及預設的螢幕解析度與字體字型大小之間的對應關係,獲得對應解析度1設置的字體字型大小1,以及根據解析度1和字體字型大小1生成相應比例的網頁頁面,以下稱為網頁1。Step 450: The website server 11 obtains the font font size 1 set corresponding to the resolution 1 according to the received resolution 1 and the correspondence between the preset screen resolution and the font font size, and according to the resolution 1 A webpage page corresponding to the font font size 1 is generated, which is hereinafter referred to as webpage 1.

在步驟450中,網站伺服器11在生成網頁頁面的過程中,需要根據接收的URL位址獲取對應的網頁元素(如文字、鏈結、圖片等等),並將其添加到已確定比例的網頁頁面中,如,根據字體字型大小1確定獲取的文字在顯示時使用的圖元大小,並按照此圖元大小將獲取的文字在網頁頁面中進行排版。又如,將獲取的圖片按照字體字型大小1進行大小調整或者剪裁,以適應文字的排版,等等。In step 450, the website server 11 needs to obtain corresponding webpage elements (such as text, links, pictures, etc.) according to the received URL address in the process of generating the webpage page, and add it to the determined proportion. In the webpage page, for example, according to the font font size 1, the size of the primitive used when the obtained text is displayed is determined, and the obtained text is typeset in the webpage page according to the size of the primitive. For another example, the acquired image is resized or tailored according to the font font size 1 to suit the typesetting of the text, and the like.

在實際應用中,由於漢字是點陣字體,因此在瀏覽器中呈現時,低於12圖元便開始出現丟失筆劃等現象,而在12圖元到18圖元之間呈現時,閱讀效果相對最好,但若採用的字體是非整數倍圖元級,也無法達到最佳的瀏覽效果,因而,較佳地,本申請實施例採用以下方式預設螢幕解析度與字體字型大小的對應關係:在800*600或1024*768螢幕解析度下,定義預設字體字型大小為“1.2em”,即12圖元相等大小;在1280*1024螢幕解析度下定義預設字體字型大小為“1.4em”,即14圖元相等大小;而在1920*1600或以上螢幕解析度下定義預設字體字型大小為“1.6em”,即16圖元相等大小。此種設置方式僅為舉例。In practical applications, since Chinese characters are dot matrix fonts, when rendered in the browser, less than 12 primitives begin to appear missing strokes, and when displayed between 12 to 18 graphics, the reading effect is relatively Preferably, if the font used is a non-integer multiple, it is not possible to achieve an optimal browsing effect. Therefore, in the embodiment of the present application, the correspondence between the screen resolution and the font size is preset in the following manner. : Under 800*600 or 1024*768 screen resolution, the default font font size is defined as “1.2em”, which is equal to 12 graphics; the default font font size is defined at 1280*1024 resolution. "1.4em", that is, 14 primitives are equal in size; and the default font font size is defined as "1.6em" at 1920*1600 or above, that is, 16 primitives are equal in size. This type of setting is only an example.

步驟460:網站伺服器11將生成的網頁1發送至用戶端10。Step 460: The website server 11 sends the generated web page 1 to the client terminal 10.

步驟470:用戶端10向用戶呈現獲得的網頁1。Step 470: The client 10 presents the obtained webpage 1 to the user.

基於上述實施例,用戶通過用戶端10瀏覽網頁頁面的過程中,也可以根據實際需要自行設置字體字型大小。Based on the foregoing embodiment, during the process of browsing the webpage by the user terminal 10, the font size of the font may be set according to actual needs.

例如,用戶端10當前採用1280*1024螢幕解析度進行網頁瀏覽,而用戶通過用戶端10向網站伺服器11請求將字體字型大小設置為2em,假設網路側預先設置的對應於1280*1024螢幕解析度的字體字型大小為1.4em,小於2em,則網站伺服器11放棄網路側預先設置的字體字型大小,根據用戶指示的2em和1280*1024圖元螢幕解析度生成相應比例的網頁頁面。For example, the client 10 currently uses 1280*1024 screen resolution for web browsing, and the user requests the website server 11 to set the font font size to 2em through the client 10, assuming that the network side presets corresponding to the 1280*1024 screen. The resolution font font size is 1.4em, less than 2em, the website server 11 discards the font font size preset on the network side, and generates a corresponding proportion of webpage pages according to the 2em and 1280*1024 graphics resolutions indicated by the user. .

又例如,用戶端10當前採用1280*1024螢幕解析度進行網頁瀏覽,而用戶通過用戶端10向網站伺服器11請求將字體字型大小設置為1em,同樣假設網路側預先設置的對應於1280*1024螢幕解析度的字體字型大小為1.4em,大於1em,則網站伺服器11可以直接根據1em和1280*1024螢幕解析度生成相應比例的網頁頁面;也可以向用戶提示其當前選擇的字體字型大小不是對應其螢幕解析度的較佳參數設置,若用戶仍選擇使用字體字型大小1em,則再根據1em和生成相應比例的網頁頁面;若用戶重新設置字體字型大小為1.5em,則網站伺服器11根據1.5em和1280*1024螢幕解析度生成相應比例的網頁頁面。For another example, the client 10 currently uses 1280*1024 screen resolution for web browsing, and the user requests the website server 11 to set the font font size to 1em through the client 10, and also assumes that the network side is preset to correspond to 1280*. The font font size of 1024 screen resolution is 1.4em, which is greater than 1em, the website server 11 can directly generate the corresponding proportion of webpage pages according to the resolution of 1em and 1280*1024 screens; or can prompt the user for the font font currently selected by the user. The size of the type is not a better parameter setting corresponding to the resolution of the screen. If the user still chooses to use the font font size 1em, then according to 1em and generate a corresponding proportion of the web page; if the user resets the font font size to 1.5em, then The web server 11 generates a web page of a corresponding ratio based on the 1.5 em and 1280*1024 screen resolutions.

另一方面,在上述實施例中,網站伺服器11向用戶端10提供符合用戶使用要求的網頁1後,可以定期向用戶端10發送解析度查詢請求消息,以判斷用戶端10採用的螢幕解析度是否發生了變化,並在確定發生變化時,對用戶當前瀏覽的網頁頁面進行相應調整;或者,也可以在用戶調整用戶端10的螢幕解析度後,由用戶端10主動向網站伺服器11上報改變後的螢幕解析度,請求網站伺服器11按照新設置的螢幕解析度對用戶當前瀏覽的網頁頁面進行相應調整。On the other hand, in the above embodiment, after the website server 11 provides the web page 1 that meets the user's usage requirements to the client terminal 10, the resolution query request message may be periodically sent to the client terminal 10 to determine the screen resolution used by the client terminal 10. Whether the degree has changed, and when the change is determined, the page page currently browsed by the user is adjusted accordingly; or, after the user adjusts the screen resolution of the user terminal 10, the user terminal 10 actively sends the website server 11 After the changed screen resolution is reported, the website server 11 is requested to adjust the web page currently browsed by the user according to the newly set screen resolution.

本申請實施例中,網站伺服器11在確定用戶重新設置用戶端10的螢幕解析度後,對用戶當前瀏覽的網頁頁面進行調整的方式,包含但不限於以下兩種:In the embodiment of the present application, after determining that the user resets the screen resolution of the user terminal 10, the website server 11 adjusts the web page currently viewed by the user, including but not limited to the following two types:

1、按照用戶重新設置的螢幕解析度,以及預設的螢幕解析度和字體字型大小之間的對應關係,獲取上述重新設置的螢幕解析度對應的字體字型大小,並根據該字體字型大小及相關的網頁元素重新生成相應比例的網頁頁面,再將該網頁頁面發送至用戶端10。1. According to the resolution of the screen reset by the user, and the correspondence between the preset screen resolution and the font font size, the font font size corresponding to the reset screen resolution is obtained, and according to the font font type. The size and related webpage elements regenerate the corresponding proportion of the webpage page, and then send the webpage page to the client terminal 10.

2、按照用戶重新設置的螢幕解析度和上一次使用的螢幕解析度的比值,指示用戶端10對用戶當前瀏覽的網頁頁面進行同比例縮放/擴展。2. According to the ratio of the screen resolution set by the user and the screen resolution used last time, the user terminal 10 is instructed to scale/extend the webpage page currently browsed by the user.

在本申請第二實施例中,用戶端10主動查詢本地用戶端的螢幕解析度倂發送給網站伺服器11,網站伺服器11向其呈現相應網站頁面的流程如下:In the second embodiment of the present application, the user terminal 10 actively queries the screen resolution of the local client, and sends it to the website server 11, and the process by which the website server 11 presents the corresponding website page is as follows:

步驟510:用戶端10向網站伺服器11發送網頁瀏覽請求消息時,主動查詢本地的螢幕解析度,並將該螢幕解析度發送給網站伺服器11。Step 510: When the user terminal 10 sends a webpage browsing request message to the website server 11, the user terminal actively queries the local screen resolution and sends the screen resolution to the website server 11.

其中,所述用戶端10可以將螢幕解析度攜帶在用於請求瀏覽網頁的請求消息中一起發送給網站伺服器11,也可以通過發送獨立的請求消息將螢幕解析度發送給網站伺服器11。The user terminal 10 may send the screen resolution to the website server 11 together with the request message for requesting to browse the webpage, or send the screen resolution to the website server 11 by sending an independent request message.

步驟520:網站伺服器11根據接收的解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,獲得對應解析度設置的字體字型大小,以及根據解析度和字體字型大小生成相應比例的網頁頁面。Step 520: The website server 11 obtains the font font size corresponding to the resolution setting according to the received resolution and the correspondence between the preset screen resolution and the font font size, and according to the resolution and the font font. The size generates a page of the corresponding proportion of the page.

步驟530:網站伺服器11將生成的網頁發送至用戶端10。Step 530: The website server 11 sends the generated web page to the client 10.

步驟540:用戶端10向用戶呈現獲得的網頁。Step 540: The client 10 presents the obtained webpage to the user.

綜上所述,採用本申請實施例中記載的技術方案,網站伺服器11可以根據各用戶端10當前採用的螢幕解析度生成字體大小比例適合用戶瀏覽的網頁頁面,從而有效地提升了網頁頁面的顯示效果,提高了網站系統的服務品質,也大大增強了用戶體驗。另一方面,網站伺服器11還可以根據用戶端10螢幕解析度的改變對生成的網頁頁面的比例進行適應性調整,以及根據用戶自定義的字體字型大小和用戶端10當前採用的螢幕解析度,生成基於用戶自定義比例的網頁頁面,這便提高了網站服務的靈活性,可以更好地適應用戶的各類需求,從而進一步提高了網站系統的服務品質,增強了用戶體驗。In summary, according to the technical solution described in the embodiment of the present application, the website server 11 can generate a webpage page suitable for the user to browse according to the screen resolution currently used by each client terminal 10, thereby effectively improving the webpage page. The display effect improves the service quality of the website system and greatly enhances the user experience. On the other hand, the website server 11 can also adaptively adjust the proportion of the generated webpage page according to the change of the resolution of the user terminal 10, and according to the font font size customized by the user and the screen resolution currently used by the client terminal 10. Degrees, generate web pages based on user-defined proportions, which improves the flexibility of the website service, can better adapt to the various needs of users, thereby further improving the service quality of the website system and enhancing the user experience.

本申請是參照根據本發明實施例的方法、設備(系統)、和電腦程式產品的流程圖和/或方框圖來描述的。應理解可由電腦程式指令實現流程圖和/或方框圖中的每一流程和/或方框、以及流程圖和/或方框圖中的流程和/或方框的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可編程資料處理設備的處理器以產生一個機器,使得通過電腦或其他可編程資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能的裝置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor or other programmable data processing device to produce a machine for generating instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.

這些電腦程式指令也可存儲在能引導電腦或其他可編程資料處理設備以特定方式工作的電腦可讀記憶體中,使得存儲在該電腦可讀記憶體中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can boot a computer or other programmable data processing device to operate in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture including the instruction device. The instruction means implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.

這些電腦程式指令也可裝載到電腦或其他可編程資料處理設備上,使得在電腦或其他可編程設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可編程設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方框圖一個方框或多個方框中指定的功能的步驟。These computer program instructions can also be loaded onto a computer or other programmable data processing device to perform a series of operational steps on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

顯然,本領域的技術人員可以對本申請中的實施例進行各種改動和變型而不脫離本申請的精神和範圍。這樣,倘若本申請實施例中的這些修改和變型屬於本申請之申請專利範圍及其等同技術的範圍之內,則本申請中的實施例也意圖包含這些改動和變型在內。It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the present application without departing from the spirit and scope of the application. Thus, the present embodiments of the present application are intended to cover such modifications and variations as the scope of the application and the scope of the invention.

10...用戶端10. . . user terminal

11...網站伺服器11. . . Website server

110...存儲單元110. . . Storage unit

111...通信單元111. . . Communication unit

112...獲取單元112. . . Acquisition unit

113...生成單元113. . . Generating unit

圖1A和圖1B為本申請現有技術下網頁頁面呈現示意圖;1A and FIG. 1B are schematic diagrams showing the presentation of a web page in the prior art of the present application;

圖2為本申請第一實施例中網站服務系統架構圖;2 is a structural diagram of a website service system in a first embodiment of the present application;

圖3為本申請第一實施例中網站伺服器功能結構圖;3 is a functional structural diagram of a website server in the first embodiment of the present application;

圖4為本申請第一實施例中網站伺服器向用戶端提供網頁頁面流程圖。FIG. 4 is a flowchart of a webpage provided by a website server to a client in the first embodiment of the present application.

10...用戶端10. . . user terminal

11...網站伺服器11. . . Website server

Claims (15)

一種呈現網頁頁面的方法,其特徵在於,包括:網站伺服器接收用戶端發送的用於請求瀏覽網頁的第一請求消息後,向該用戶端發送用於查詢螢幕解析度的第二請求消息;該網站伺服器根據用戶端返回的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應該螢幕解析度設置的字體字型大小;及該網站伺服器根據該螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往該用戶端,其中,於該網站伺服器將該網頁頁面發往用戶端後,該網站伺服器可以定期向用戶端發送解析度查詢請求消息,以判斷用戶端採用的螢幕解析度是否發生變化,並在確定發生變化時,對用戶當前瀏覽的網頁頁面進行相應調整。 A method for presenting a web page, comprising: receiving, by a website server, a second request message for requesting browsing of a webpage, and sending a second request message for querying screen resolution to the client; The website server selects a font font size corresponding to the screen resolution setting according to the resolution of the screen returned by the user terminal and the correspondence between the preset screen resolution and the font font size; and the website server according to the server The screen resolution and the obtained font font size generate a corresponding proportion of the webpage page, and send the webpage page to the user terminal, wherein the web server is sent to the client after the web server sends the webpage page to the client The resolution query request message may be sent to the client periodically to determine whether the screen resolution adopted by the user is changed, and when the change is determined, the page page currently browsed by the user is adjusted accordingly. 如申請專利範圍第1項所述的方法,其中,於該網站伺服器將網頁頁面發往用戶端後,若接收到用戶端發送的用於指示重新設置字體字型大小的第三請求消息,則根據用戶端當前採用的螢幕解析度和用戶重新設置的字體字型大小生成相應比例的網頁頁面。 The method of claim 1, wherein after the web server sends the web page to the user end, if the third request message sent by the user end for instructing to reset the font font size is received, Then, according to the screen resolution currently used by the client and the font font size re-set by the user, a corresponding proportion of the webpage page is generated. 如申請專利範圍第2項所述的方法,其中,該網站伺服器根據用戶端當前採用的螢幕解析度和用戶重新設置的字體字型大小生成相應比例的網頁頁面,包括: 該網站伺服器直接根據用戶端當前採用的螢幕解析度和用戶重新設置的字體字型大小生成相應比例的網頁頁面;或者該網站伺服器將該重新設置的字體字型大小,與對應該用戶端當前採用的遮罩解析度預設的字體字型大小進行比較,並在確定該重新設置的字體字型大於該預設的字體字型大小時,根據用戶端當前採用的螢幕解析度和該重新設置的字體字型大小生成相應比例的網頁頁面。 The method of claim 2, wherein the website server generates a corresponding proportion of webpage pages according to the screen resolution currently used by the user end and the font font size re-set by the user, including: The website server directly generates a corresponding proportion of the webpage page according to the screen resolution currently used by the user end and the font font size re-set by the user; or the website server determines the resizing font font size and the corresponding user end The currently used mask resolution preset font font size is compared, and when it is determined that the reset font font size is larger than the preset font font size, according to the screen resolution currently used by the user terminal and the re The set font font size generates a corresponding proportion of web pages. 如申請專利範圍第1、2或3項所述的方法,其中,該網站伺服器將網頁頁面發往用戶端後,若確定該用戶端重新設置了螢幕解析度,則按照用戶端重新設置的螢幕解析度,以及預設的螢幕解析度和字體字型大小之間的對應關係,獲取上述重新設置的螢幕解析度對應的字體字型大小,並根據該重新設置的螢幕解析度和對應的字體字型大小生成相應比例的網頁頁面。 The method of claim 1, wherein the website server sends the web page to the user end, and if it is determined that the user end resets the screen resolution, the user terminal resets according to the user end. The resolution of the screen, and the correspondence between the preset screen resolution and the font font size, obtain the font font size corresponding to the reset screen resolution, and according to the reset screen resolution and the corresponding font The font size generates a corresponding proportion of web pages. 如申請專利範圍第1、2或3項所述的方法,其中,於該網站伺服器將網頁面發往用戶端後,若確定該用戶端重新設置了螢幕解析度,則按照該重新設置的螢幕解析度和用戶端上一次使用的螢幕解析度的比值,指示用戶端對用戶當前瀏覽的網頁頁面進行同比例縮放/擴展。 The method of claim 1, wherein the web server sends the webpage face to the user end, and if it is determined that the user terminal resets the screen resolution, the reset is performed according to the method. The ratio of the screen resolution to the screen resolution used by the client last time, indicating that the user side scales/expands the web page currently viewed by the user. 如申請專利範圍第1項所述的方法,其中,在該網站伺服器接收用戶端發送的用於請求瀏覽網頁的第一請求消息之前,還包括:預設螢幕解析度與字體字型大小之間 的對應關係,其中,該字體字型大小的單位為em。 The method of claim 1, wherein before the website server receives the first request message sent by the client for requesting to browse the webpage, the method further includes: preset screen resolution and font font size. between Correspondence, where the font size is in em. 一種呈現網頁頁面的方法,其特徵在於,包括:用戶端發送用於請求瀏覽網頁的請求消息時,查詢該用戶端的螢幕解析度,並將該螢幕解析度發送給網站伺服器;該網站伺服器接收用戶端發送的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應該螢幕解析度設置的字體字型大小;及該網站伺服器根據該螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往該用戶端,其中,於該網站伺服器將該網頁頁面發往用戶端後,該網站伺服器可以定期向用戶端發送解析度查詢請求消息,以判斷用戶端採用的螢幕解析度是否發生變化,並在確定發生變化時,對用戶當前瀏覽的網頁頁面進行相應調整。 A method for presenting a webpage, the method comprising: when the user sends a request message for requesting browsing of a webpage, querying a screen resolution of the client, and sending the screen resolution to the web server; the web server Receiving the resolution of the screen sent by the client, and the correspondence between the preset screen resolution and the font font size, selecting the font font size corresponding to the screen resolution setting; and the website server according to the screen resolution And generating a corresponding proportion of the webpage page with the obtained font font size, and sending the webpage page to the user end, wherein after the webpage server sends the webpage page to the user end, the web server can periodically send the user to the webpage The terminal sends a resolution query request message to determine whether the screen resolution adopted by the user is changed, and when the change is determined, the page page currently browsed by the user is adjusted accordingly. 如申請專利範圍第7項所述的方法,其中,該用戶端將該螢幕解析度發送給網站伺服器,具體包括:該用戶端將螢幕解析度攜帶在用於請求瀏覽網頁的請求消息中一起發送給網站伺服器,或,該用戶端通過發送獨立的請求消息將螢幕解析度發送給網站伺服器。 The method of claim 7, wherein the user sends the screen resolution to the website server, specifically: the user end carries the screen resolution in the request message for requesting to browse the webpage. Sent to the web server, or the client sends the screen resolution to the web server by sending a separate request message. 一種網站伺服器,其特徵在於,包括:通信單元,用於接收用戶端發送的用於請求瀏覽網頁的第一請求消息後,向該用戶端發送用於查詢螢幕解析度 的第二請求消息,以及接收用戶端返回的螢幕解析度;獲取單元,用於根據該用戶端返回的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應該螢幕解析度設置的字體字型大小;及生成單元,用於根據該螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並通過該通信單元將該網頁頁面發往該用戶端,其中,於通過該通信單元將該網頁頁面發往用戶端後,該通信單元可以定期向用戶端發送解析度查詢請求消息,以判斷用戶端採用的螢幕解析度是否發生變化,並在確定發生變化時,對用戶當前瀏覽的網頁頁面進行相應調整。 A website server, comprising: a communication unit, configured to: after receiving a first request message sent by a user end for requesting to browse a webpage, send the query resolution to the client end The second request message, and the screen resolution returned by the receiving client; the obtaining unit is configured to select according to the resolution of the screen returned by the client, and the correspondence between the preset screen resolution and the font font size. a font font size corresponding to the screen resolution setting; and a generating unit, configured to generate a webpage corresponding to the screen according to the screen resolution and the obtained font font size, and send the webpage page to the user through the communication unit End, wherein, after the webpage is sent to the user end by the communication unit, the communication unit may periodically send a resolution query request message to the user end to determine whether the screen resolution adopted by the user end changes, and is determined When a change occurs, the page page currently viewed by the user is adjusted accordingly. 如申請專利範圍第9項所述的網站伺服器,其中,於該生成單元通過該通信單元將網頁頁面發往用戶端後,若通過該通信單元接收到用戶端發送的用於指示重新設置字體字型大小的第三請求消息,則根據用戶端當前採用的螢幕解析度和用戶重新設置的字體字型大小生成相應比例的網頁頁面。 The website server according to claim 9, wherein after the generating unit sends the webpage page to the user terminal through the communication unit, if the communication unit receives the font sent by the user terminal for instructing to reset the font The third request message of the font size generates a corresponding proportion of webpage pages according to the screen resolution currently used by the user terminal and the font font size re-set by the user. 如申請專利範圍第9或10項所述的網站伺服器,其中,於該生成單元通過該通信單元將網頁頁面發往用戶端後,若確定該用戶端重新設置了螢幕解析度,則按照用戶端重新設置的螢幕解析度,以及預設的螢幕解析度和字體字型大小之間的對應關係,獲取上述重新設置的螢幕解析度對應的字體字型大小,並根據該重新設置的螢幕解析 度和對應的字體字型大小生成相應比例的網頁頁面。 The website server according to claim 9 or 10, wherein after the generating unit sends the webpage page to the user terminal through the communication unit, if it is determined that the user terminal resets the screen resolution, the user is The screen resolution of the reset screen, and the correspondence between the preset screen resolution and the font font size, and the font font size corresponding to the reset screen resolution is obtained, and the screen resolution is performed according to the reset screen. The degree and the corresponding font font size generate a corresponding proportion of the web page. 如申請專利範圍第9或10項所述的網站伺服器,其中,於該生成單元通過該通信單元將網頁頁面發往用戶端後,若確定該用戶端重新設置了螢幕解析度,則按照該重新設置的螢幕解析度和用戶端上一次使用的螢幕解析度的比值,指示用戶端對用戶當前瀏覽的網頁頁面進行同比例縮放/擴展。 The website server according to claim 9 or 10, wherein after the generating unit sends the webpage page to the user terminal through the communication unit, if it is determined that the user terminal resets the screen resolution, the The ratio of the reset screen resolution to the screen resolution used by the client last time, instructing the client to scale/extend the web page currently viewed by the user. 一種網站伺服器,其特徵在於,包括:通信單元,用於接收用戶端發送的用於請求瀏覽網頁的請求消息以及螢幕解析度;獲取單元,用於根據該用戶端發送的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應該螢幕解析度設置的字體字型大小;及生成單元,用於根據該螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並通過該通信單元將該網頁頁面發往該用戶端,其中,於通過該通信單元將該網頁頁面發往用戶端後,該通信單元可以定期向用戶端發送解析度查詢請求消息,以判斷用戶端採用的螢幕解析度是否發生變化,並在確定發生變化時,對用戶當前瀏覽的網頁頁面進行相應調整。 A website server, comprising: a communication unit, configured to receive a request message sent by a user end for requesting to browse a webpage and a screen resolution; and an obtaining unit, configured to use the screen resolution sent by the user terminal, and Corresponding relationship between the preset screen resolution and the font font size, selecting the font font size corresponding to the screen resolution setting; and generating unit for generating corresponding according to the screen resolution and the obtained font font size And the webpage of the webpage is sent to the client by the communication unit, wherein the communication unit can periodically send the resolution query request to the client after the webpage is sent to the client through the communication unit. The message is used to determine whether the screen resolution adopted by the user has changed, and when the change is determined, the page page currently browsed by the user is adjusted accordingly. 一種網站系統,包括網站伺服器,其特徵在於,該網站伺服器接收用戶端發送的用於請求瀏覽網頁的第一請求消息後,向該用戶端發送用於查詢螢幕解析度的第二 請求消息,並根據用戶端返回的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應該螢幕解析度設置的字體字型大小,再根據該螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往該用戶端,其中,於該網站伺服器將該網頁頁面發往用戶端後,該網站伺服器可以定期向用戶端發送解析度查詢請求消息,以判斷用戶端採用的螢幕解析度是否發生變化,並在確定發生變化時,對用戶當前瀏覽的網頁頁面進行相應調整。 A website system, comprising a website server, wherein the website server receives a first request message sent by a user end for requesting to browse a webpage, and sends a second second for querying the screen resolution to the client end. Requesting a message, and according to the resolution of the screen returned by the client, and the correspondence between the preset screen resolution and the font font size, selecting the font font size corresponding to the screen resolution setting, and then according to the screen resolution And generating a corresponding proportion of the webpage page with the obtained font font size, and sending the webpage page to the user end, wherein after the webpage server sends the webpage page to the user end, the web server can periodically send the user to the webpage The terminal sends a resolution query request message to determine whether the screen resolution adopted by the user is changed, and when the change is determined, the page page currently browsed by the user is adjusted accordingly. 一種網站系統,包括網站伺服器和用戶端,其特徵在於,包括:用戶端,用於向網站伺服器發送瀏覽網頁頁面的請求,查詢本地用戶端的螢幕解析度,並將該螢幕解析度發送給網站伺服器;及網站伺服器,接收用戶端發送的螢幕解析度,以及預設的螢幕解析度與字體字型大小之間的對應關係,選擇對應該螢幕解析度設置的字體字型大小,再根據該螢幕解析度和獲得的字體字型大小生成相應比例的網頁頁面,並將該網頁頁面發往該用戶端,其中,於該網站伺服器將該網頁頁面發往用戶端後,該網站伺服器可以定期向用戶端發送解析度查詢請求消息,以判斷用戶端採用的螢幕解析度是否發生變化,並在確定發生變化時,對用戶當前瀏覽的網頁頁面進行相應調 整。 A website system, comprising a website server and a client, comprising: a user end, configured to send a request for browsing a webpage page to a website server, query a screen resolution of the local user end, and send the screen resolution to the website The web server; and the web server receive the resolution of the screen sent by the client, and the correspondence between the preset screen resolution and the font font size, and select the font font size corresponding to the screen resolution setting, and then Generating a corresponding proportion of the webpage page according to the screen resolution and the obtained font font size, and sending the webpage page to the user terminal, wherein the webpage server is sent to the client after the webpage server sends the webpage page to the client end The device may periodically send a resolution query request message to the client to determine whether the screen resolution adopted by the user is changed, and when the change is determined, the page page currently browsed by the user is adjusted accordingly. whole.
TW099106788A 2010-03-09 2010-03-09 Methods, devices and systems for presenting web pages TWI503676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099106788A TWI503676B (en) 2010-03-09 2010-03-09 Methods, devices and systems for presenting web pages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099106788A TWI503676B (en) 2010-03-09 2010-03-09 Methods, devices and systems for presenting web pages

Publications (2)

Publication Number Publication Date
TW201131384A TW201131384A (en) 2011-09-16
TWI503676B true TWI503676B (en) 2015-10-11

Family

ID=50180347

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099106788A TWI503676B (en) 2010-03-09 2010-03-09 Methods, devices and systems for presenting web pages

Country Status (1)

Country Link
TW (1) TWI503676B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070226612A1 (en) * 2000-02-24 2007-09-27 International Business Machines Corporation Server-side html customization based on style sheets and target device
US20080028335A1 (en) * 2000-06-12 2008-01-31 Rohrabaugh Gary B Scalable display of internet content on mobile devices
TW200906157A (en) * 2007-07-19 2009-02-01 Chunghwa Telecom Co Ltd A dynamic web page structural design method suited for mobile content service
TW200907712A (en) * 2007-08-01 2009-02-16 Inventec Corp A system and a method for recording a font's size of the web pages in which display in the client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070226612A1 (en) * 2000-02-24 2007-09-27 International Business Machines Corporation Server-side html customization based on style sheets and target device
US20080028335A1 (en) * 2000-06-12 2008-01-31 Rohrabaugh Gary B Scalable display of internet content on mobile devices
TW200906157A (en) * 2007-07-19 2009-02-01 Chunghwa Telecom Co Ltd A dynamic web page structural design method suited for mobile content service
TW200907712A (en) * 2007-08-01 2009-02-16 Inventec Corp A system and a method for recording a font's size of the web pages in which display in the client

Also Published As

Publication number Publication date
TW201131384A (en) 2011-09-16

Similar Documents

Publication Publication Date Title
JP5967614B2 (en) Method, apparatus and system for displaying web pages
CN107766359B (en) Method and device for converting page content into picture and computing equipment
WO2017088509A1 (en) Page customization method and device
US20130305145A1 (en) A Method of Publishing Digital Content
KR101494285B1 (en) Method and device for dynamically wrapping text when displaying a selected region of an electronic document
US9037974B2 (en) Creating and editing dynamic graphics via a web interface
US10467790B2 (en) On-demand image spriting
US20040117735A1 (en) Method and system for preparing and adapting text, images and video for delivery over a network
JP5829354B2 (en) Information processing system, information processing system control method, information processing apparatus, information processing apparatus control method, information storage medium, and program
US9117314B2 (en) Information output apparatus, method, and recording medium for displaying information on a video display
JP2007233659A (en) Information distribution system for network service
CN113849254A (en) Self-adaptive adjusting method of page layout and computing equipment
US20040207657A1 (en) Serving an image in multiple formats from a photohosting website
TWI503676B (en) Methods, devices and systems for presenting web pages
US20140325346A1 (en) Shortened Network Address Linking to Image Representation of Web Page
US11630610B2 (en) Information processing apparatus and non-transitory computer readable medium for generating web page print data
JP2010288243A (en) Content generation and distribution system for mobile information terminal
TW201915780A (en) A method for detecting information of webpage and optimizing page presentation
JP3873690B2 (en) Character string display method and image printing method
EP2747031A1 (en) A method of publishing digital content
JP6351969B2 (en) Server apparatus, character filling method and program
US20210350770A1 (en) Image delivery optimisation
CN117076003A (en) Method, device and computer equipment for generating application page watermark
CN116304425A (en) Electronic document previewing method and related device
CN116701799A (en) HTML tag optimization method, device and equipment

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees