WO2013123810A1 - 网页的显示方法、装置、浏览器及用户终端 - Google Patents

网页的显示方法、装置、浏览器及用户终端 Download PDF

Info

Publication number
WO2013123810A1
WO2013123810A1 PCT/CN2012/087185 CN2012087185W WO2013123810A1 WO 2013123810 A1 WO2013123810 A1 WO 2013123810A1 CN 2012087185 W CN2012087185 W CN 2012087185W WO 2013123810 A1 WO2013123810 A1 WO 2013123810A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
user
scaling
size
requested
Prior art date
Application number
PCT/CN2012/087185
Other languages
English (en)
French (fr)
Inventor
梁捷
Original Assignee
优视科技有限公司
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 优视科技有限公司 filed Critical 优视科技有限公司
Priority to US14/380,099 priority Critical patent/US9710445B2/en
Publication of WO2013123810A1 publication Critical patent/WO2013123810A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Definitions

  • the present invention relates to the field of mobile communications, and in particular to a method, device, browser, and user terminal for displaying a web page.
  • BACKGROUND At present, when a user browses a webpage through a mobile terminal, since the screen of the browser of the mobile terminal is small, the webpage to be browsed is relatively large, and the user needs to scale the page. Due to the different styles of each web page, different pages require different scaling.
  • the existing technology is usually zoomed in by double-clicking.
  • the zoom ratio is usually the browser's default zoom ratio, but this zoom ratio cannot be adjusted according to different web pages. It cannot scale each web page to the size of the screen. .
  • the present invention provides a method, a device, a browser, and a user terminal for displaying a webpage to solve the above problems, in order to solve the problem that the webpage browsing operation is cumbersome when the user browses the webpage again.
  • a method for displaying a webpage including: after a user performs a zoom operation on a currently viewed webpage, recording a correspondence between a webpage identifier of the webpage and a scaling ratio of the zooming operation; When the user requests to browse the webpage corresponding to the webpage identifier, the zoom ratio corresponding to the webpage identifier is obtained, and the size of the webpage requested by the user is scaled and displayed according to the obtained zoom ratio.
  • the method further includes: detecting a zoom operation of the webpage requested by the user by the user; And scaling a size of the webpage requested by the user; updating a scaling ratio corresponding to the webpage identifier in the correspondence relationship to a scaling ratio of a current scaling operation.
  • the webpage identifier comprises: a domain name of the webpage or a uniform resource locator URL.
  • the method further includes: prompting the user to select whether to scale the size of the current webpage according to the scaling ratio, and if yes, according to the obtained The zoom scales the size of the web page requested by the user, and if not, scales the size of the web page requested by the user according to a preset zoom ratio.
  • a display device for a webpage comprising: a recording module, configured to record a zoom ratio of a webpage identifier of the webpage and the zooming operation after the user performs a zooming operation on the currently viewed webpage Corresponding relationship; the obtaining module is configured to: when detecting a webpage corresponding to the webpage identifier, the zoom ratio corresponding to the webpage identifier is obtained; and the zooming module is set to follow the obtained zoom ratio And scaling a size of the webpage requested by the user; and displaying a module, configured to display the webpage requested by the user according to the scaled size.
  • the device further includes: a detecting module, configured to: after the display module displays the webpage requested by the user, detecting a zoom operation of the webpage requested by the user; the zooming module is further configured to respond to the user a scaling operation, the size of the webpage requested by the user is scaled according to the scaling operation; the device further includes: an updating module, configured to update a scaling ratio corresponding to the webpage identifier in the correspondence relationship to a current The scaling of the zoom operation.
  • a detecting module configured to: after the display module displays the webpage requested by the user, detecting a zoom operation of the webpage requested by the user
  • the zooming module is further configured to respond to the user a scaling operation, the size of the webpage requested by the user is scaled according to the scaling operation
  • the device further includes: an updating module, configured to update a scaling ratio corresponding to the webpage identifier in the correspondence relationship to a current The scaling of the zoom operation.
  • the device further includes: a prompting module, configured to prompt the user to select whether to scale the size of the webpage requested by the user according to the scaling ratio before the scaling module scales the webpage requested by the user If yes, the zoom module is triggered, and the size of the webpage requested by the user is scaled according to the obtained zoom ratio. If not, the zoom module is triggered, and the webpage requested by the user is preset according to a preset zoom ratio. Size is scaled.
  • the webpage identifier comprises: a domain name of the webpage or a uniform resource locator URL.
  • a browser is provided, including the apparatus described above.
  • a user terminal is provided, including the browser described above.
  • a method for displaying a webpage including: after a user performs a zoom operation on a currently viewed webpage, recording a correspondence between a webpage identifier of the webpage and font scaling information; When requesting to browse the webpage corresponding to the webpage identifier, obtaining the font scaling information corresponding to the webpage identifier, according to the obtained font scaling information and the current font size of the webpage requested by the user Scaling a webpage requested by the user; scaling/displaying the large/J of the webpage requested by the user according to the scaling.
  • the font scaling information includes: a font size after performing the scaling operation; determining the scaling according to the following formula: Where Y is the zoom ratio, and the font size after performing the zoom operation, X 2 is the current font size of the web page requested by the user.
  • the method further includes: detecting a zoom operation of the webpage requested by the user by the user; and requesting the user in response to the zooming operation of the user
  • the size of the webpage is scaled; the font scaling information corresponding to the webpage identifier in the correspondence relationship is updated to the font scaling information of the current zooming operation.
  • the webpage identifier comprises: a domain name of the webpage or a uniform resource locator URL.
  • a display device for a webpage including: a recording module, configured to record a correspondence between a webpage identifier of the webpage and font scaling information after the user performs a zoom operation on the currently browsed webpage And an obtaining module, configured to: when detecting that the user requests to browse the webpage corresponding to the webpage identifier, obtain the font scaling information corresponding to the webpage identifier; the determining module is configured to: according to the obtained font scaling information and the The current font size of the webpage requested by the user determines the zoom ratio of the webpage requested by the user; and the display module is configured to scale and display the size of the webpage requested by the user according to the zoom ratio.
  • the present invention when the user performs a zoom operation on the currently browsed webpage, the corresponding relationship between the webpage identifier of the webpage and the zooming ratio of the zooming operation is recorded, and when the user requests to browse the webpage next time, the record and the webpage identifier of the webpage are acquired.
  • Corresponding zoom ratio scaling the size of the webpage according to the obtained zoom ratio, and displaying the scaled webpage, thereby realizing that when the user browses a webpage, the webpage is directly scaled to the size corresponding to the webpage, avoiding The user's additional zooming operation improves the user experience of web browsing.
  • FIG. 1 is a flow chart of a method for displaying a web page according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing a structure of a web page display device according to an embodiment of the present invention
  • FIG. 3 is a preferred embodiment of the present invention.
  • FIG. 4 is a block diagram showing a structure of a display device of another preferred web page according to an embodiment of the present invention;
  • FIG. 5 is a flowchart of a method for displaying a web page according to Embodiment 4 of the present invention
  • BEST MODE FOR CARRYING OUT THE INVENTION
  • the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
  • the user needs to repeatedly perform the scaling operation on the same webpage that is browsed when the user browses the webpage, so that the webpage browsing operation is cumbersome.
  • the embodiment of the invention provides a method and a device for displaying a webpage, and the smart recording user zooms.
  • Embodiment 1 According to an embodiment of the present invention, a method for displaying a webpage is provided. The size of the webpage can be scaled according to the zoom history of the current webpage by the user, and the scaled webpage is displayed, which simplifies the operation of the webpage browsing and improves the user experience. .
  • FIG. 1 is a flowchart of a method for displaying a webpage according to an embodiment of the present invention. As shown in FIG.
  • the method may include the following steps (step S102-step S106).
  • Step S102 After the user performs a zoom operation on the currently browsed webpage, record a correspondence between the webpage identifier of the webpage and the zoom ratio of the zoom operation.
  • Step S104 When detecting that the user requests to browse a webpage corresponding to the webpage identifier, obtain a zoom ratio corresponding to the webpage identifier of the webpage.
  • Step S106 The size of the webpage requested by the user is scaled and displayed according to the obtained scaling ratio.
  • the webpage currently requested by the user is scaled according to the zoom ratio recorded when the webpage was previously browsed, so that the webpage may be automatically scaled according to the user's preference, thereby avoiding the user.
  • the corresponding relationship between the webpage and the zoom ratio may be set according to a zoom ratio set by the user when browsing the webpage, or may be obtained from the outside, for example, for different types of mobile terminals. Counting the appropriate scaling ratio of the mobile terminal of the type when browsing different web pages, obtaining the correspondence between the page and the zoom ratio, downloading the corresponding relationship to the mobile terminal through the network or the external memory, or browsing in the mobile terminal. The corresponding relationship is stored in the client, and then after the user browses a web page and performs a zoom operation on a web page, the update is performed according to the zoom ratio of the current zoom operation.
  • the preset scaling ratio may be used (for example, the browser defaults Scale) Scales the size of the current web page. If the webpage adjusted according to the preset zoom ratio is not suitable for the user to browse, the user can zoom the webpage according to the browsing habit. At this time, the size of the current webpage can be scaled according to the zoom operation in response to the user's zoom operation. After the zooming is completed, the correspondence between the webpage identifier of the current webpage and the zoom ratio of the current zooming operation is recorded in the corresponding relationship between the stored webpage identifier and the zoom ratio.
  • the web page is displayed according to the scale of the record, thus avoiding additional zooming by the user.
  • the user adjusts the size of the webpage to adjust the size of the webpage.
  • the zoom ratio obtained should be a suitable scale, that is, the zoom ratio that the user thinks is suitable for browsing after performing the zooming operation.
  • the user can further zoom the web page to make it more suitable for browsing. Therefore, when the zoom ratio of the webpage is initially open, the zooming operation is not suitable for the user to browse, and the user can perform a zooming operation to adjust the size of the webpage so that the display zoom ratio of the webpage is suitable for the user to browse.
  • the user may detect the zoom operation of the current webpage by the user, and after detecting the zoom operation of the user, respond to the zoom operation of the user, according to the zoom of the user.
  • the operation scales the size of the web page.
  • the stored webpage identifier can be reduced
  • the scale corresponding to the webpage identifier of the current webpage in the scaled correspondence is updated to the zoom ratio of the current zoom operation. The next time you browse the current web page, you can display the web page at the updated zoom level to avoid additional zooming by the user.
  • the correspondence between the webpage identifier and the zoom ratio is stored, and in response to the webpage browsing request of the user, the zoom ratio of the webpage identifier of the current webpage is obtained from the corresponding relationship between the recorded webpage identifier and the zoom ratio,
  • the page is scaled according to the user's last zoomed to make it suitable for the user to browse.
  • the same webpage corresponds to a zoom ratio.
  • the domain name of the webpage may be used as the webpage identifier of different webpages, and the webpage with the same domain name corresponds to a zoom ratio, and the zoom ratio is used. Recorded under the domain name of the web page.
  • the Uniform Resource Locator (URL) of the webpage may be used as the webpage identifier of the webpage, and the webpage with the same URL corresponds to a zoom ratio, and the zoom ratio is recorded under the URL of the webpage. That is, the correspondence between the stored webpage identifier and the zoom ratio is the correspondence between the domain name of the webpage or the URL and the zoom ratio of the webpage.
  • the current webpage in response to the webpage browsing request of the user, the current webpage may be searched according to the domain name of the webpage requested by the user, in the corresponding relationship between the stored webpage identifier and the zoom ratio. The zoom ratio corresponding to the domain name, and obtain the zoom ratio of the web page requested by the user.
  • the domain name is preferentially used as the webpage identifier of different webpages.
  • the zooming operation is performed on the webpage according to the historical zoom ratio of the user, and the zoomed webpage is directly displayed. However, the operation is not fixed, and the size of the webpage may be prompted according to the read zoom ratio. Whether the user adjusts the size of the web page according to the stored scaling. If so, the size of the web page is scaled according to the obtained zoom ratio, and if not, the size of the web page is scaled according to a preset zoom ratio (for example, the browser's default zoom ratio). In practical applications, in order to achieve the effect of automatic intelligence, the recorded zoom ratio is presented to the user again in a most natural way.
  • Embodiment 2 when a user initially opens a zoom ratio that does not enable a web page to achieve a good display effect, the user zooms the web page to make it suitable for browsing, and records the domain name of the page (or URL) Record the adjusted zoom ratio, which will automatically zoom to the recorded zoom ratio the next time the user opens the web page under the domain name. If it is appropriate to click on the zoom directly, then the ratio of the default click is recorded; if the user uses the two-finger zoom or the zoom method such as the zoom button to adjust the zoom ratio of a certain page, the user is additionally operated.
  • the webpage display method of the embodiment of the present invention may include the following steps (step one to step four). Step one, detecting a zoom operation performed by the user using two-finger zoom or using a zoom button. Step 2: After the user performs the zoom operation, perform a page zoom operation, and record the zoom ratio of the current operation and the domain name of the current web page into the local file. In the embodiment of the present invention, only the last zoom operation of the user is recorded. If the operation is once, the record is recorded, and the next time you open the scale of this record. If the user makes another adjustment, the result of the user's final adjustment is recorded. That is to automatically record the last user to adjust the zoom ratio under the domain name of the current web page, adjust at any time, record at any time.
  • Step 3 When the user opens the webpage, it first searches whether the domain name of the webpage exists in the local file, and if so, finds the corresponding zoom ratio, and applies the zoom ratio to the zoom ratio of the page.
  • Step 4 If the opened web page is a wap page, open it directly at the magnification of the page. If it is a www page, when you click or double-click the thumbnail, it is opened with the magnification of the page. It should be noted that the above operation is not fixed, and a button may be used to prompt the user to zoom in to the zoom ratio of the last record. However, in order to achieve the effect of automatic intelligence, it is preferable to present the recorded zoom ratio to the user again in a most natural manner, so that the user does not feel that there is an additional operation.
  • the third embodiment corresponds to the display method of the webpage provided by the foregoing embodiment of the present invention.
  • FIG. 2 is a structural block diagram of a webpage display apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a recording module 10, an obtaining module 20, a scaling module 30, and a display module 40.
  • the recording module 10 is configured to record a correspondence between a webpage identifier of the webpage and a zoom ratio of the zooming operation after the user performs a zooming operation on the currently browsed webpage;
  • the obtaining module 20 is configured to detect the user request When browsing a webpage corresponding to the webpage identifier, obtaining a zoom ratio corresponding to the webpage identifier of the webpage;
  • the zooming module 30, and acquiring The module 20 is coupled to be configured to scale the size of the webpage requested by the user according to the obtained scaling ratio;
  • the display module 40 is coupled to the scaling module 30 and configured to display the webpage according to the scaled size.
  • the recording module 10 records the correspondence between the webpage identifier of the webpage and the zoom ratio corresponding to the zoom operation, and the obtaining module 20 responds to the browsing request of the webpage by the user again.
  • the mapping between the webpage identifier and the zoom ratio recorded by the recording module 10 is obtained, the scaling ratio corresponding to the webpage identifier of the webpage is obtained, and the scaling module 30 scales the size of the webpage according to the obtained scaling ratio, and the display module 40 displays the zoomed
  • the webpage can be directly scaled to a size suitable for the user to browse, which avoids the user's additional zooming operation and improves the user experience of web browsing.
  • the device may further include: a detecting module 50 configured to display the webpage after the display module 40 displays the scaled size. And detecting a zoom operation of the webpage by the user, and after detecting the zoom operation, triggering the zoom module 30.
  • the zoom module 30 is arranged to scale the size of the web page in accordance with the zoom operation in response to the user's zoom operation.
  • the device may further include: an updating module 60, configured to update, in the correspondence between the stored webpage identifier and the scaling ratio, a scaling ratio corresponding to the webpage identifier of the current webpage to a scaling ratio corresponding to the current scaling operation.
  • the apparatus may further include: a prompting module 70 coupled to the zooming module 30, configured to prompt the user to select whether to follow The zoom ratio obtained by the obtaining module 20 is used to scale the current webpage size.
  • the zoom module 30 is triggered to scale the webpage according to the obtained zoom ratio. If not, the zoom module 30 is triggered to follow the preset zoom ratio to the webpage. The size is scaled.
  • the corresponding relationship between the webpage identifier of the webpage and the scaling ratio corresponding to the zooming operation is recorded, and in the corresponding relationship, the same webpage identifier corresponds to a scaling ratio.
  • the domain name of the webpage may be used as the webpage identifier of the webpage, and the webpage with the same domain name corresponds to a zoom ratio, and the zoom ratio is recorded under the domain name of the webpage.
  • the Uniform Resource Locator (URL) of the webpage may be used as the identifier of the webpage, and the webpage with the same URL corresponds to a zoom ratio, and the zoom ratio is recorded under the URL of the webpage. That is, the correspondence between the stored webpage and the zoom ratio is the correspondence between the domain name of the webpage or the URL record and the zoom ratio of the webpage.
  • a browser is further provided, and the browser may include the display device of the webpage described above.
  • a user terminal is further provided, and the user terminal includes the browser described above.
  • FIG. 5 is a flowchart of a method for displaying a webpage according to Embodiment 4 of the present invention. As shown in FIG. 5, the method mainly includes steps S502 to S506. In step S502, after the user performs a zoom operation on the currently viewed webpage, the corresponding relationship between the webpage identifier of the webpage and the font scaling information is recorded.
  • Step S504 When detecting that the user requests to browse the webpage corresponding to the webpage identifier, obtain the font scaling information corresponding to the webpage identifier, and determine the user request according to the obtained font scaling information and the current font size of the webpage requested by the user. The scale of the page. Step S506, the size of the webpage requested by the user is scaled and displayed according to the above scaling ratio. According to the embodiment of the present invention, the webpage is scaled according to the font size information of the webpage browsed by the user, so that the font size of the page corresponding to the same webpage identifier is consistent, thereby improving the user experience.
  • the font scaling information includes: a font size after performing a scaling operation; at this time, the scaling ratio may be determined according to the following formula: Where Y is the scaling ratio, which is the font size after the zoom operation is performed, and x 2 is the current font size of the web page requested by the user.
  • the foregoing webpage identifier includes but is not limited to: a domain name or a URL of the webpage. For example, three pages A, B, and C correspond to the same domain name. The average font size of the A page is 18th.
  • the average font size of the B page is 16 and the average font size of the C page is 20.
  • the user zooms the page while browsing the B page, so that the font size of the B page reaches 20, and at this time, the user is recorded.
  • the page font size of the domain name is 16 and the page has a scale of 125%.
  • the zoom ratio of page A is 16*125%/18, that is, 111%, and the zoom ratio of page C is 100%. Pages A and C are scaled and displayed according to the calculated scaling.
  • the zoom operation of the webpage requested by the user may be detected, and the user may be requested to respond to the zoom operation of the user.
  • the size of the webpage is scaled, and the font scaling information corresponding to the webpage identifier in the above correspondence is updated to the font scaling information of the current zooming operation.
  • Embodiment 5 According to an embodiment of the present invention, a display device for a webpage is further provided to implement the method provided in Embodiment 4 of the present invention.
  • FIG. 6 is a structural block diagram of a display device of a webpage according to Embodiment 5 of the present invention. As shown in FIG. 6, the device mainly includes: a recording module 602, an obtaining module 604, a determining module 606, and a display module 608.
  • the recording module 602 is configured to: after the user performs a zoom operation on the currently browsed webpage, record a correspondence between the webpage identifier of the webpage and the font scaling information; the obtaining module 604 is connected to the recording module 602, and is configured to detect When the user requests to browse the webpage corresponding to the webpage identifier, the font scaling information corresponding to the webpage identifier is obtained; the determining module 606 is connected to the obtaining module 604, and is set to be based on the obtained font scaling information and the current webpage requested by the user.
  • the font size determines the zoom ratio of the web page requested by the user; the display module 608 is configured to scale and display the size of the web page requested by the user according to the above scaling.
  • the webpage is scaled according to the font size information of the webpage browsed by the user, so that the font size of the page corresponding to the same webpage identifier is consistent, thereby improving the user experience.
  • the font scaling information includes: a font size after performing the scaling operation; at this time, the determining module 606 may determine the scaling according to the following formula: Where Y is the zoom ratio, the font size after performing the zoom operation, and X 2 is the current font size of the web page requested by the user.
  • the foregoing apparatus may further include: a detecting module, configured to detect a zoom operation of the webpage requested by the user by the user.
  • the display module 608 is further configured to scale the size of the web page requested by the user in response to the user's zoom operation.
  • the above apparatus may further include: an updating module, configured to update the font scaling information corresponding to the webpage identifier in the correspondence relationship to the font scaling information of the current scaling operation.
  • the web page can be displayed in an updated zoom ratio to avoid additional zooming operations by the user.
  • the zoom ratio corresponding to the webpage identifier is obtained, and the size of the webpage requested by the user is scaled according to the obtained zoom ratio, and the scaled webpage is displayed, so that the webpage can be directly scaled Up to the size suitable for user browsing, the user's additional zooming operation is avoided, and the user experience of web browsing is improved. Further, the user's zoom operation can be detected, and the zoom ratio of the web page is recorded or updated to the scaled scale. When the web page is opened next time, the web page is displayed according to the updated zoom ratio.
  • the domain name or the URL of the webpage is used as the identifier of the distinguishing webpage, so that the technical solution of the present invention is simple to implement.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

提供了一种网页的显示方法、装置、浏览器及用户终端。其中,该方法包括:在用户对当前浏览的网页执行缩放操作后,记录该网页的网页标识与缩放操作的缩放比例的对应关系(S102);在检测到用户请求浏览与该网页标识对应的网页时,获取记录的与该网页标识对应的缩放比例(S104);按照获取的缩放比例对用户请求的网页的大小进行缩放并显示(S106)。该技术方案实现了直接将网页缩放至适于用户浏览的大小,避免了用户额外的缩放操作,提高了网页浏览的用户体验。

Description

网页的显示方法、 装置、 浏览器及用户终端 技术领域 本发明涉及移动通信领域, 具体而言, 涉及一种网页的显示方法、 装置、 浏览器 及用户终端。 背景技术 目前, 在用户通过移动终端浏览网页时, 由于移动终端浏览器屏幕较小, 但浏览 的网页却比较大, 导致用户需要对页面进行缩放。 由于各网页页面的风格不一, 不同 的页面需要不同的缩放比例。 现有的技术通常是通过双击进行放大, 放大的比例通常 就是浏览器的默认缩放比例, 但这个缩放比例不能根据不同的网页进行调整, 不能使 每个网页都缩放到与屏幕大小相适应的大小。 为了到达良好的网页浏览效果, 用户在 浏览网页时, 需要进行额外的缩放操作, 使得网页浏览操作繁琐, 降低了网页浏览过 程中的用户体验。 针对相关技术中用户再次浏览网页时, 需要进行额外的网页缩放操作, 使得网页 浏览操作繁琐的问题, 目前尚未提出有效的解决方案。 发明内容 针对用户再次浏览网页时, 需要进行额外的网页缩放操作, 使得网页浏览操作繁 琐的问题, 本发明提供了一种网页的显示方法、 装置、 浏览器及用户终端, 以至少解 决上述问题。 根据本发明的一个方面, 提供了一种网页的显示方法, 包括: 在用户对当前浏览 的网页执行缩放操作后, 记录所述网页的网页标识与所述缩放操作的缩放比例的对应 关系; 在检测到用户请求浏览与所述网页标识对应的网页时, 获取记录的与所述网页 标识对应的缩放比例; 按照获取的所述缩放比例对所述用户请求的网页的大小进行缩 放并显示。 优选地, 按照获取的所述缩放比例对所述用户请求的网页的大小进行缩放并显示 之后, 所述方法还包括: 检测用户对所述用户请求的网页的缩放操作; 响应用户的缩 放操作, 对所述用户请求的网页的大小进行缩放; 将所述对应关系中与所述网页标识 对应的缩放比例更新为当前缩放操作的缩放比例。 优选地, 所述网页标识包括: 网页的域名或统一资源定位符 URL。 优选地, 按照读取的所述缩放比例对所述网页的大小进行缩放之前, 所述方法还 包括: 提示用户选择是否按照所述缩放比例对当前网页的大小进行缩放, 如果是, 按 照获取的缩放比例对所述用户请求的网页的大小进行缩放, 如果否, 按照预设的缩放 比例对所述用户请求的网页的大小进行缩放。 根据本发明的另一方面, 提供一种网页的显示装置, 包括: 记录模块, 设置为在 用户对当前浏览的网页执行缩放操作后, 记录所述网页的网页标识与所述缩放操作的 缩放比例的对应关系; 获取模块, 设置为在检测到用户请求与浏览所述网页标识对应 的网页时, 获取记录的与所述网页标识对应的缩放比例; 缩放模块, 设置为按照获取 的所述缩放比例对所述用户请求的网页的大小进行缩放; 显示模块, 设置为按照缩放 后的大小显示所述用户请求的网页。 优选地, 所述装置还包括: 检测模块, 设置为所述显示模块显示所述用户请求的 网页后, 检测用户对所述用户请求的网页的缩放操作; 所述缩放模块, 还设置为响应 用户的缩放操作, 按照所述缩放操作对所述用户请求的网页的大小进行缩放; 所述装 置还包括: 更新模块, 设置为将所述对应关系中与所述网页标识对应的缩放比例更新 为当前缩放操作的缩放比例。 优选地, 所述装置还包括: 提示模块, 设置为在所述缩放模块对所述用户请求的 网页进行缩放前, 提示用户选择是否按照所述缩放比例对所述用户请求的网页的大小 进行缩放, 如果是, 触发所述缩放模块, 按照获取的缩放比例对所述用户请求的网页 的大小进行缩放, 如果否, 触发所述缩放模块, 按照预设的缩放比例对所述用户请求 的网页的大小进行缩放。 优选地, 所述网页标识包括: 网页的域名或统一资源定位符 URL。 根据本发明的又一个方面, 提供了一种浏览器, 包括上述的装置。 根据本发明的再一个方面, 提供了一种用户终端, 包括上述的浏览器。 根据本发明的再一个方面, 提供了一种网页的显示方法, 包括: 在用户对当前浏 览的网页执行缩放操作后, 记录所述网页的网页标识与字体缩放信息的对应关系; 在 检测到用户请求浏览与所述网页标识对应的网页时, 获取记录的与所述网页标识对应 的字体缩放信息, 根据获取的字体缩放信息和所述用户请求的网页当前的字体大小确 定所述用户请求的网页的缩放比例; 按照所述缩放比例对所述用户请求的网页的大/ J 进行缩放并显示。 优选地, 所述字体缩放信息包括: 执行所述缩放操作后的字体大小; 按照以下公 式确定所述缩放比例:
Figure imgf000005_0001
其中, Y为所述缩放比例, 为执行所述缩放操作 后的字体大小, X2为所述用户请求的网页当前的字体大小。 优选地, 所述字体缩放信息包括: 执行所述缩放操作前的字体大小和执行所述缩 放操作的字体缩放比例;按照以下公式确定所述当前的缩放比例: Y3=X3*Y2/X4,其中, Υ3为所述缩放比例, χ3为执行所述缩放操作前的字体大小, Υ2为执行所述缩放操作 的字体缩放比例, χ4为所述用户请求的网页当前的字体大小。 优选地, 按照所述缩放比例对所述用户请求的网页的大小进行缩放并显示之后, 还包括: 检测用户对所述用户请求的网页的缩放操作; 响应用户的缩放操作, 对所述 用户请求的网页的大小进行缩放; 将所述对应关系中与所述网页标识对应的字体缩放 信息更新为当前缩放操作的字体缩放信息。 优选地, 所述网页标识包括: 网页的域名或统一资源定位符 URL。 根据本发明的再一个方面, 提供了一种网页的显示装置, 包括: 记录模块, 设置 为在用户对当前浏览的网页执行缩放操作后, 记录所述网页的网页标识与字体缩放信 息的对应关系; 获取模块, 设置为在检测到用户请求浏览与所述网页标识对应的网页 时, 获取记录的与所述网页标识对应的字体缩放信息; 确定模块, 设置为根据获取的 字体缩放信息和所述用户请求的网页当前的字体大小确定所述用户请求的网页的缩放 比例; 显示模块, 设置为按照所述缩放比例对所述用户请求的网页的大小进行缩放并 显示。 通过本发明, 在用户对当前浏览的网页进行缩放操作时, 记录该网页的网页标识 与缩放操作的缩放比例的对应关系, 在用户下次请求浏览该网页时, 获取记录与该网 页的网页标识对应的缩放比例, 按照获取的缩放比例对网页的大小进行缩放, 并显示 缩放后的网页, 从而实现了在用户浏览某一网页时, 直接将该网页缩放至与该网页相 适应的大小, 避免了用户额外的缩放操作, 提高了网页浏览的用户体验。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中- 图 1是根据本发明实施例的网页的显示方法的流程图; 图 2是根据本发明实施例的网页显示装置的结构框图; 图 3是根据本发明实施例一种优选的网页的显示装置的结构框图; 图 4是根据本发明实施例另一种优选的网页的显示装置的结构框图; 图 5是根据本发明实施例四的网页的显示方法的流程图; 图 6是根据本发明实施例五的网页的显示装置的结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 针对相关技术中用户在浏览网页时, 需要重复对浏览的同一网页进行缩放操作, 使得网页浏览操作繁琐的问题, 本发明实施例提供了一种网页的显示方法及装置, 智 能记录用户缩放过的网页以及该页面的缩放比例。 在用户下次打开该网页时, 可以按 照上一次的缩放比例对网页的大小进行调整, 并按照调整后的大小显示用户浏览的网 页, 避免了用户额外的缩放操作, 提高了网页浏览的用户体验。 下面通过具体实施例进行描述。 实施例一 根据本发明实施例, 提供了一种网页的显示方法, 可以根据用户对当前网页的缩 放历史缩放网页的大小, 并显示缩放后的网页, 简化了网页浏览的操作, 提高了用户 体验。 图 1是根据本发明实施例的网页的显示方法的流程图, 如图 1所示, 该方法可以 包括以下几个步骤 (步骤 S102-步骤 S106)。 步骤 S102, 在用户对当前浏览的网页执行缩放操作后, 记录该网页的网页标识与 缩放操作的缩放比例的对应关系。 步骤 S104, 在检测到用户请求浏览与该网页标识对应的网页时, 获取记录的与该 网页的网页标识对应的缩放比例。 步骤 S106, 按照获取的缩放比例对用户请求的网页的大小进行缩放并显示。 通过本发明实施例, 接收到用户网页浏览请求后, 根据以前浏览该网页时记录的 缩放比例, 对用户当前请求的网页进行缩放, 从而可以按照用户的偏好, 自动对网页 进行缩放, 避免了用户额外的缩放操作, 提高了网页浏览的用户体验。 在本发明实施例中, 上述的网页与缩放比例的对应关系, 可以是根据用户之前浏 览网页时设置的缩放比例设置, 或者, 也可以从外部中获取, 例如, 可以针对不同类 型的移动终端, 统计该类型的移动终端在浏览不同网页时的合适的缩放比例, 得到页 面与缩放比例的对应关系, 通过网络或外部存储器将该对应关系下载到移动终端中, 或者, 也可以在移动终端的浏览器客户端中存储该对应关系, 然后在用户浏览某个网 页, 对某个网页执行缩放操作后, 根据当前缩放操作的缩放比例进行更新。 在本发明实施例的一个优选实施方式中, 如果存储的网页标识与缩放比例的对应 关系中不存在与当前网页的网页标识对应的缩放比例, 可以按照预设的缩放比例 (例 如, 浏览器默认的缩放比例) 对当前网页的大小进行缩放。 若按照预设的缩放比例调 整后的网页不适于用户浏览, 用户可以根据浏览习惯对网页进行缩放操作。 此时, 可 以响应用户的缩放操作, 按照缩放操作对当前网页的大小进行缩放。 缩放完成后, 在 存储的网页标识与缩放比例的对应关系中记录当前网页的网页标识与当前缩放操作的 缩放比例的对应关系。 下一次浏览当前网页时, 按照记录的缩放比例显示网页, 从而 避免用户额外的缩放操作。 用户对网页进行缩放调整操作, 调整网页的大小的目的为了适于浏览, 获取的缩 放比例应该是合适的比例, 即用户在进行缩放操作后认为适于浏览的缩放比例。 按照 用户浏览该网页的历史缩放比例显示后, 用户可以进一步的对网页进行缩放, 使其更 适于浏览。 因此, 当网页初步打开时的缩放比例不适于用户浏览, 用户可以进行缩放 操作调整网页的大小, 以使网页的显示缩放比例适于用户浏览。 在本发明实施例的一个优选实施方式中, 在按照缩放后的大小显示网页之后, 可 以检测用户对当前网页的缩放操作,检测到用户的缩放操作后, 响应用户的缩放操作, 按照用户的缩放操作对网页的大小进行缩放。 进一步的, 可以将存储的网页标识与缩 放比例的对应关系中与当前网页的网页标识对应的缩放比例更新为当前缩放操作的缩 放比例。 下一次浏览当前网页时, 可以按照更新的缩放比例显示网页, 以避免用户额 外的缩放操作。 在上述优选实施方式中, 存储了网页标识与缩放比例的对应关系, 响应用户的网 页浏览请求时, 从记录的网页标识与缩放比例的对应关系中, 获取当前网页的网页标 识的缩放比例, 以按照用户上一次浏览的缩放比例对网页进行缩放, 使其适于用户浏 览。 在上述对应关系中, 同一网页对应于一个缩放比例, 在本发明实施例的一个优选 实施方式中, 可以将网页的域名作为不同网页的网页标识, 域名相同的网页对应一个 缩放比例, 将缩放比例记录在网页的域名下。 此外, 也可以将网页的统一资源定位符 ( Uniform Resource Locator, 简称为 URL )作为网页的网页标识, URL相同的网页对 应一个缩放比例,将缩放比例记录在网页的 URL下。即存储的网页标识与缩放比例的 对应关系, 为网页的域名或 URL与网页的缩放比例的对应关系。 例如, 在以网页的域名作为不同网页的网页标识的情况下, 响应用户的网页浏览 请求时, 可以根据用户请求的网页的域名, 在存储的网页标识与缩放比例的对应关系 中, 查找当前网页的域名对应的缩放比例, 获取用户请求的网页的缩放比例。 在实际 应用中, 优先使用域名作为不同网页的网页标识。 在上述实施例中, 按照用户的历史缩放比例对网页进行缩放操作, 直接显示缩放 后的网页, 然而这个操作并不是固定的, 按照读取的缩放比例对网页的大小进行缩放 之前, 也可以提示用户是否按照存储的缩放比例对网页的大小进行调整。 如果是, 按 照获取的缩放比例对网页的大小进行缩放, 如果否, 按照预设的缩放比例 (例如, 浏 览器默认的缩放比例) 对网页的大小进行缩放。 在实际应用中, 为了达到自动智能的 效果, 以一种最自然的方式将记录的缩放比例再次呈现给用户, 优选地, 在显示网页 之前不提示用户进行选择, 这样可以避免用户附加的操作。 实施例二 根据本发明实施例, 用户初步打开的缩放比例不能使网页都达到很好的显示效果 时, 用户对网页进行缩放操作以使其适于浏览, 并通过记录该页面的域名 (或者是 URL) 记录调整后的缩放比例, 在用户下次打开该域名下的网页时, 会自动缩放到记 录好的缩放比例。 如果是直接点击缩放的就是合适的, 那么记录后的就是默认点击的 比例; 如果用户使用双指缩放或通过缩放按钮等缩放方式, 调整某个页面的缩放比例 时, 则记录的是用户额外操作后最合适的页面比例。 本发明实施例的网页显示方法, 可以包括以下步骤 (步骤一至步骤四)。 步骤一, 检测用户使用双指缩放或使用缩放按钮进行的缩放操作。 步骤二, 在用户进行缩放操作后, 执行页面缩放操作, 并将本次操作的缩放比例 和当前网页的域名记录到本地文件中。 在本发明实施例中, 仅记录用户最后一次的缩放操作。如果操作过一次, 记录了, 下次按这个记录的比例打开。 如果用户又进行了调整, 记录用户最后调整的结果。 即 自动记录当前网页的域名下的最后一次用户调整缩放比例的操作, 随时调整, 随时记 录。 另外, 除了通过域名进行记录外, 还可以通过 URL进行记录, 通过 URL进行记 录可以对每一个网页的缩放比例进行记录, 通过域名记录可以使得同一域名下的所有 网页使用同一缩放比例。在实际应用中,通过 URL记录可以更精确的记录网页的缩放 比例, 然而记录的数据量大。 通过域名进行记录数据量小, 并且通常情况下, 同一域 名下的网页页面风格相似, 能够在记录较小的数据量的情况下, 记录缩放比例。 因此, 在实际应用中, 优先使用域名进行记录。 步骤三, 用户打开网页时, 优先查找该网页的域名是否存在于这个本地文件中, 如果存在, 找出对应的缩放比例, 并且以该缩放比例应用为页面的放大比例。 如果不 存在, 则使用系统的缩放比例作为页面的放大比例。 步骤四, 如果打开的网页为 wap 页面时, 直接以页面的放大比例打开。 如果是 www页面, 则单击或双击缩略图时, 使用页面的放大比例打开。 需说明的是, 上述操作并不是固定的, 也可以通过一个按钮, 提示用户是否放大 到上次记录的缩放比例。 但为了达到自动智能的效果, 优选以一种最自然的方式将记 录的缩放比例再次呈现给用户, 这样用户并不会感觉到会有附加的操作。 实施例三 对应于本发明上述实施例提供的网页的显示方法, 本发明实施例还提供了一种网 页的显示装置, 该装置可以位于移动终端的浏览器中, 可以用于实现上述方法。 图 2是根据本发明实施例的网页显示装置的结构框图, 如图 2所示, 该装置包括: 记录模块 10、 获取模块 20、 缩放模块 30和显示模块 40。 其中, 记录模块 10, 设置为 在用户对当前浏览的网页执行缩放操作后, 记录所述网页的网页标识与所述缩放操作 的缩放比例的对应关系; 获取模块 20, 设置为在检测到用户请求浏览与该网页标识对 应的网页时, 获取记录的与该网页的网页标识对应的缩放比例; 缩放模块 30, 与获取 模块 20相耦合, 设置为按照获取的缩放比例对用户请求的网页的大小进行缩放; 显示 模块 40, 与缩放模块 30相耦合, 设置为按照缩放后的大小显示网页。 通过本发明实施例,记录模块 10在用户对某个网页进行缩放操作后,记录该网页 的网页标识与缩放操作对应的缩放比例的对应关系,获取模块 20在响应用户再次浏览 该网页的浏览请求时, 从记录模块 10记录的网页标识与缩放比例的对应关系, 获取与 该网页的网页标识对应的缩放比例,缩放模块 30按照获取的缩放比例对网页的大小进 行缩放, 显示模块 40显示缩放后的网页, 从而可以直接将网页缩放至适于用户浏览的 大小, 避免了用户额外的缩放操作, 提高了网页浏览的用户体验。 图 3是根据本发明实施例一种优选的网页的显示装置的结构框图, 如图 3所示, 该装置还可以包括: 检测模块 50, 设置为在显示模块 40按照缩放后的大小显示网页 后, 检测用户对网页的缩放操作, 检测到缩放操作后, 触发缩放模块 30。 缩放模块 30 设置为响应用户的缩放操作, 按照缩放操作对网页的大小进行缩放。 进一步的, 该装 置还可以包括: 更新模块 60, 设置为将存储的网页标识与缩放比例的对应关系中, 与 当前网页的网页标识对应的缩放比例更新为当前缩放操作对应的缩放比例。 通过本优 选实施方式,在缩放模块 30按照以前浏览时的缩放比例显示的网页大小不适于用户浏 览的情况下, 如果用户对网页作进一步的缩放后, 更新该网页的缩放比例, 下一次打 开该网页时将按照更新后的缩放比例缩放和显示, 使网页的显示更适于用户浏览, 进 一步提高了用户体验。 图 4是根据本发明实施例另一优选的网页的显示装置的结构框图, 如图 4所示, 该装置还可以包括: 提示模块 70, 与缩放模块 30相耦合, 设置为提示用户选择是否 按照获取模块 20 获取的缩放比例对当前网页大小进行缩放, 如果是, 触发缩放模块 30, 按照获取的缩放比例对网页的大小进行缩放, 如果否, 触发缩放模块 30, 按照预 设的缩放比例对网页的大小进行缩放。 在上述优选实施方式中, 在用户对网页进行缩放操作后, 记录该网页的网页标识 与缩放操作对应的缩放比例的对应关系, 在上述对应关系中, 同一网页标识对应于一 个缩放比例, 在本发明实施例的一个优选实施方式中, 可以将网页的域名作为网页的 网页标识, 域名相同的网页对应一个缩放比例, 将缩放比例记录在网页的域名下。 此 夕卜, 也可以将网页的统一资源定位符 (Uniform Resource Locator, 简称为 URL) 作为 网页的标识, URL相同的网页对应一个缩放比例, 将缩放比例记录在网页的 URL下。 即存储的网页与缩放比例的对应关系,为网页的域名或 URL记录与网页的缩放比例的 对应关系。 根据本发明实施例, 还提供了一种浏览器, 该浏览器可以包括上述的网页的显示 装置。 根据本发明实施例, 还提供了一种用户终端, 该用户终端包括上述的浏览器。 实施例四 根据本发明实施例, 还提供了一种网页的显示方法, 可以根据页面的字体大小调 整页面的显示比例。 图 5是根据本发明实施例四的网页的显示方法的流程图, 如图 5所示, 该方法主 要包括步骤 S502至步骤 S506。 步骤 S502, 在用户对当前浏览的网页执行缩放操作后, 记录该网页的网页标识与 字体缩放信息的对应关系。 步骤 S504, 在检测到用户请求浏览与上述网页标识对应的网页时, 获取记录的与 该网页标识对应的字体缩放信息, 根据获取的字体缩放信息和用户请求的网页当前的 字体大小确定用户请求的网页的缩放比例。 步骤 S506, 按照上述缩放比例对用户请求的网页的大小进行缩放并显示。 通过本发明实施例, 根据用户浏览网页的字体大小信息对网页进行缩放, 使得同 一网页标识对应的页面的字体大小一致, 从而提升了用户体验。 在本发明实施例的一个实施方式中, 上述字体缩放信息包括: 执行缩放操作后的 字体大小; 此时, 可以按照以下公式确定上述缩放比例:
Figure imgf000011_0001
其中, Y为缩放 比例, 为执行缩放操作后的字体大小, x2为用户请求的网页当前的字体大小。 在本发明实施例的另一个实施方式中, 上述字体缩放信息包括: 执行缩放操作前 的字体大小和执行缩放操作的字体缩放比例; 此时, 可以按照以下公式确定当前的缩 放比例: Y3=X3*Y2/X4, 其中, Υ3为缩放比例, χ3为执行缩放操作前的字体大小, Υ2 为执行缩放操作的字体缩放比例, χ4为用户请求的网页当前的字体大小。 优选地, 上述网页标识包括但不限于: 网页的域名或 URL。 例如, A、 B和 C三个页面, 对应于同一域名。 A页面的平均字体大小是 18号,
B页面的平均字体大小为 16号, C页面的字体平均字体大小为 20号。 用户在浏览 B 页面时对页面进行了缩放操作, 使 B页面的字体大小达到 20号, 此时, 记录用户对 该域名的页面字体大小为 16号, 该页面的缩放比例为 125%。 当用户浏览与页面 B同 一域名的页面 A和 C时, 可以计算出页面 A的缩放比例为 16* 125%/18, 即 111%, 页 面 C的缩放比例为 100%。 按照计算出的缩放比例对页面 A和 C进行缩放并显示。 在本发明实施例的一个实施方式中, 按照上述缩放比例对用户请求的网页的大小 进行缩放并显示之后, 还可以检测用户对用户请求的网页的缩放操作, 响应用户的缩 放操作, 对用户请求的网页的大小进行缩放, 并将上述对应关系中与该网页标识对应 的字体缩放信息更新为当前缩放操作的字体缩放信息。 下一次浏览当前网页时, 可以 按照更新的缩放比例显示网页, 以避免用户额外的缩放操作。 实施例五 根据本发明实施例, 还提供了一种网页的显示装置, 用以实现本发明实施例四提 供的方法。 图 6是根据本发明实施例五的网页的显示装置的结构框图, 如图 6所示, 该装置 主要包括: 记录模块 602、 获取模块 604、 确定模块 606和显示模块 608。 其中, 记录 模块 602, 设置为在用户对当前浏览的网页执行缩放操作后, 记录该网页的网页标识 与字体缩放信息的对应关系; 获取模块 604, 与记录模块 602相连接, 设置为在检测 到用户请求浏览与上述网页标识对应的网页时, 获取记录的与该网页标识对应的字体 缩放信息; 确定模块 606, 与获取模块 604相连接, 设置为根据获取的字体缩放信息 和用户请求的网页当前的字体大小确定用户请求的网页的缩放比例; 显示模块 608, 设置为按照上述缩放比例对用户请求的网页的大小进行缩放并显示。 通过本发明实施例, 根据用户浏览网页的字体大小信息对网页进行缩放, 使得同 一网页标识对应的页面的字体大小一致, 从而提升了用户体验。 在本发明实施例的一个实施方式中, 上述字体缩放信息包括: 执行缩放操作后的 字体大小; 此时, 确定模块 606可以按照以下公式确定上述缩放比例:
Figure imgf000012_0001
其 中, Y为缩放比例, 为执行缩放操作后的字体大小, X2为用户请求的网页当前的字 体大小。 在本发明实施例的另一个实施方式中, 上述字体缩放信息包括: 执行缩放操作前 的字体大小和执行缩放操作的字体缩放比例; 此时, 确定模块 606可以按照以下公式 确定当前的缩放比例: Y3=X3*Y2/X4, 其中, Υ3为缩放比例, Χ3为执行缩放操作前的 字体大小, Υ2为执行缩放操作的字体缩放比例, Χ4为用户请求的网页当前的字体大小。 在本发明实施例的一个实施方式中, 上述装置还可以包括: 检测模块, 设置为检 测用户对用户请求的网页的缩放操作。 显示模块 608, 还设置为响应用户的缩放操作, 对用户请求的网页的大小进行缩放。 上述装置还可以包括: 更新模块, 设置为将上述 对应关系中与该网页标识对应的字体缩放信息更新为当前缩放操作的字体缩放信息。 通过本优选实施方式, 下一次浏览当前网页时, 可以按照更新的缩放比例显示网页, 以避免用户额外的缩放操作。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: 在用户对网页进行缩 放操作后, 记录该网页的网页标识与缩放操作对应的缩放比例的对应关系, 在检测到 用户请求浏览与该网页标识对应的网页时,获取记录的与该网页标识对应的缩放比例, 按照获取的缩放比例对用户请求浏览的网页的大小进行缩放, 并显示缩放后的网页, 从而可以直接将网页缩放至适于用户浏览的大小, 避免了用户额外的缩放操作, 提高 了网页浏览的用户体验。 进一步的, 可以检测用户的缩放操作, 并将网页的缩放比例 记录或更新为缩放后的缩放比例, 下一次打开该网页时, 按照更新的缩放比例显示网 页。 利用网页的域名或 URL作为区分网页的标识, 使得本发明的技术方案实现简单。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种网页的显示方法, 包括:
在用户对当前浏览的网页执行缩放操作后, 记录所述网页的网页标识与所 述缩放操作的缩放比例的对应关系;
在检测到用户请求浏览与所述网页标识对应的网页时, 获取记录的与所述 网页标识对应的缩放比例;
按照获取的所述缩放比例对所述用户请求的网页的大小进行缩放并显示。
2. 根据权利要求 1所述的方法, 其中, 按照获取的所述缩放比例对所述用户请求 的网页的大小进行缩放并显示之后, 所述方法还包括:
检测用户对所述用户请求的网页的缩放操作;
响应用户的缩放操作, 对所述用户请求的网页的大小进行缩放; 将所述对应关系中与所述网页标识对应的缩放比例更新为当前缩放操作的 缩放比例。
3. 根据权利要求 1所述的方法, 其中, 所述网页标识包括: 网页的域名或统一资 源定位符 URL。
4. 根据权利要求 1至 3中任一项所述的方法, 其中, 按照读取的所述缩放比例对 所述网页的大小进行缩放之前, 所述方法还包括:
提示用户选择是否按照所述缩放比例对当前网页的大小进行缩放,如果是, 按照获取的缩放比例对所述用户请求的网页的大小进行缩放, 如果否, 按照预 设的缩放比例对所述用户请求的网页的大小进行缩放。
5. 一种网页的显示装置, 包括:
记录模块, 设置为在用户对当前浏览的网页执行缩放操作后, 记录所述网 页的网页标识与所述缩放操作的缩放比例的对应关系;
获取模块, 设置为在检测到用户请求与浏览所述网页标识对应的网页时, 获取记录的与所述网页标识对应的缩放比例;
缩放模块, 设置为按照获取的所述缩放比例对所述用户请求的网页的大小 进行缩放; 显示模块, 设置为按照缩放后的大小显示所述用户请求的网页。
6. 根据权利要求 5所述的装置, 其中,
所述装置还包括: 检测模块, 设置为所述显示模块显示所述用户请求的网 页后, 检测用户对所述用户请求的网页的缩放操作;
所述缩放模块, 还设置为响应用户的缩放操作, 按照所述缩放操作对所述 用户请求的网页的大小进行缩放;
所述装置还包括: 更新模块, 设置为将所述对应关系中与所述网页标识对 应的缩放比例更新为当前缩放操作的缩放比例。
7. 根据权利要求 5所述的装置, 其中, 所述装置还包括:
提示模块, 设置为在所述缩放模块对所述用户请求的网页进行缩放前, 提 示用户选择是否按照所述缩放比例对所述用户请求的网页的大小进行缩放, 如 果是, 触发所述缩放模块, 按照获取的缩放比例对所述用户请求的网页的大小 进行缩放, 如果否, 触发所述缩放模块, 按照预设的缩放比例对所述用户请求 的网页的大小进行缩放。
8. 根据权利要求 5至 7中任一项所述的装置, 其中, 所述网页标识包括: 网页的 域名或统一资源定位符 URL。
9. 一种浏览器, 包括权利要求 5至 8中任一项所述的装置。
10. 一种用户终端, 包括权利要求 9所述的浏览器。
11. 一种网页的显示方法, 包括:
在用户对当前浏览的网页执行缩放操作后, 记录所述网页的网页标识与字 体缩放信息的对应关系;
在检测到用户请求浏览与所述网页标识对应的网页时, 获取记录的与所述 网页标识对应的字体缩放信息, 根据获取的字体缩放信息和所述用户请求的网 页当前的字体大小确定所述用户请求的网页的缩放比例;
按照所述缩放比例对所述用户请求的网页的大小进行缩放并显示。
12. 根据权利要求 11所述的方法, 其中, 所述字体缩放信息包括: 执行所述缩放操 作后的字体大小; 按照以下公式确定所述缩放比例:
Figure imgf000016_0001
其中, Υ为所述缩放比例, 为执行所述缩放操作后的字体大 小, x2为所述用户请求的网页当前的字体大小。
13. 根据权利要求 11所述的方法, 其中, 所述字体缩放信息包括: 执行所述缩放操 作前的字体大小和执行所述缩放操作的字体缩放比例; 按照以下公式确定所述 当前的缩放比例:
Y3=X3*Y2/X4, 其中, Υ3为所述缩放比例, χ3为执行所述缩放操作前的字 体大小, Υ2为执行所述缩放操作的字体缩放比例, χ4为所述用户请求的网页当 前的字体大小。
14. 根据权利要求 11至 13中任一项所述的方法, 其中, 按照所述缩放比例对所述 用户请求的网页的大小进行缩放并显示之后, 还包括:
检测用户对所述用户请求的网页的缩放操作;
响应用户的缩放操作, 对所述用户请求的网页的大小进行缩放; 将所述对应关系中与所述网页标识对应的字体缩放信息更新为当前缩放操 作的字体缩放信息。
15. 根据权利要求 11至 13中任一项所述的方法, 其中, 所述网页标识包括: 网页 的域名或统一资源定位符 URL。
16. 一种网页的显示装置, 包括:
记录模块, 设置为在用户对当前浏览的网页执行缩放操作后, 记录所述网 页的网页标识与字体缩放信息的对应关系;
获取模块, 设置为在检测到用户请求浏览与所述网页标识对应的网页时, 获取记录的与所述网页标识对应的字体缩放信息;
确定模块, 设置为根据获取的字体缩放信息和所述用户请求的网页当前的 字体大小确定所述用户请求的网页的缩放比例;
显示模块, 设置为按照所述缩放比例对所述用户请求的网页的大小进行缩 放并显示。
PCT/CN2012/087185 2012-02-22 2012-12-21 网页的显示方法、装置、浏览器及用户终端 WO2013123810A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/380,099 US9710445B2 (en) 2012-02-22 2012-12-21 Webpage display method, device, browser and user terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210042621.7 2012-02-22
CN2012100426217A CN102622423A (zh) 2012-02-22 2012-02-22 网页的显示方法、装置、浏览器及用户终端

Publications (1)

Publication Number Publication Date
WO2013123810A1 true WO2013123810A1 (zh) 2013-08-29

Family

ID=46562342

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087185 WO2013123810A1 (zh) 2012-02-22 2012-12-21 网页的显示方法、装置、浏览器及用户终端

Country Status (3)

Country Link
US (1) US9710445B2 (zh)
CN (1) CN102622423A (zh)
WO (1) WO2013123810A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622423A (zh) 2012-02-22 2012-08-01 优视科技有限公司 网页的显示方法、装置、浏览器及用户终端
CN103577496B (zh) * 2012-08-09 2018-09-04 腾讯科技(深圳)有限公司 一种电子邮件的显示方法及装置
CN103631472A (zh) * 2012-08-21 2014-03-12 百度在线网络技术(北京)有限公司 同类型页面的视图自动控制方法以及移动终端
CN103150358A (zh) * 2013-02-27 2013-06-12 三星半导体(中国)研究开发有限公司 在移动设备中进行连续网页浏览的装置和方法
US9547628B2 (en) * 2013-10-31 2017-01-17 Adobe Systems Incorporated Method and apparatus for improving text legibility by automatically adjusting zoom level based on preferred font characteristics including height, weight, and condensation
CN103955469B (zh) * 2014-03-28 2018-01-19 北京奇虎科技有限公司 一种浏览器中进行页面缩放的方法和装置
US20160035063A1 (en) * 2014-07-30 2016-02-04 Lenovo (Singapore) Pte. Ltd. Scaling data automatically
EP3350724B1 (en) * 2015-09-15 2021-07-21 Google LLC Systems and methods for determining application zoom levels
CN106126538B (zh) * 2016-06-14 2020-09-29 百度在线网络技术(北京)有限公司 页面的转化处理方法及装置
CN114519156A (zh) * 2016-08-15 2022-05-20 创新先进技术有限公司 一种网页展示方法、操作事件记录方法及装置
CN110489621B (zh) * 2019-07-09 2022-03-11 北京字节跳动网络技术有限公司 一种动态调整路由的方法、装置、介质和电子设备
CN110516177A (zh) * 2019-07-11 2019-11-29 平安普惠企业管理有限公司 页面缩放方法、装置、设备及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080178075A1 (en) * 2007-01-22 2008-07-24 Fmr Corp. Configuration Data Store for Overriding a Web Application Configuration Involving Multiple Customers
CN101373470A (zh) * 2007-08-24 2009-02-25 英业达股份有限公司 客户端网页字型显示的记录系统及其方法
CN101673303A (zh) * 2009-10-20 2010-03-17 华康科技(新加坡)有限公司 个人化首页产生系统
CN102314502A (zh) * 2011-09-01 2012-01-11 百度在线网络技术(北京)有限公司 一种用于在移动终端上显示网页主体内容的方法和设备
CN102622423A (zh) * 2012-02-22 2012-08-01 优视科技有限公司 网页的显示方法、装置、浏览器及用户终端

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3396177B2 (ja) * 1999-01-26 2003-04-14 インターナショナル・ビジネス・マシーンズ・コーポレーション ウェブページカスタマイズシステム
ATE223597T1 (de) * 2000-07-29 2002-09-15 Main Ges Fuer Informationsvera Kommunikationsverfahren zwischen server und client eines netzwerkes unter zuhilfenahme von zustandsinformationen
US7188305B1 (en) * 2000-08-31 2007-03-06 International Business Machines Corporation Method and apparatus for providing local data persistence for web applications
WO2003088083A1 (en) * 2002-04-05 2003-10-23 Thomson Licensing S.A. Browser with setting saving feature
US20030216929A1 (en) * 2002-05-16 2003-11-20 International Business Machines Corporation Method, system and program product for presenting web content according to a determined learning style
US7385615B2 (en) * 2002-10-21 2008-06-10 Microsoft Corporation System and method for scaling images to fit a screen on a mobile device according to a non-linear scale factor
US7895234B2 (en) * 2003-09-22 2011-02-22 Rockwell Automation Technologies, Inc. Systems and methods for sharing portal configurations
US7487447B1 (en) * 2005-05-25 2009-02-03 Google Inc. Web page zoom feature
FR2888659A1 (fr) 2005-07-18 2007-01-19 St Microelectronics Sa Amplificateur de lecture pour memoire non volatile
JP2008117322A (ja) * 2006-11-08 2008-05-22 Hitachi Ltd 情報提供システム及び情報提供方法
US20080252622A1 (en) * 2007-04-16 2008-10-16 Tpo Displays Corp. Systems for displaying images and driving method thereof
CN101221572B (zh) * 2008-01-25 2010-06-02 吴坤达 一种网页数据处理系统
US8839117B1 (en) * 2008-08-25 2014-09-16 Nintendo Of America Inc. Internet browser
CN101739194B (zh) * 2008-11-19 2016-01-20 宏达国际电子股份有限公司 页面显示方式的调整方法与其移动电子装置
US8229977B1 (en) * 2010-03-05 2012-07-24 Sprint Communications Company L.P. Web site deployment framework
US9195637B2 (en) * 2010-11-03 2015-11-24 Microsoft Technology Licensing, Llc Proportional font scaling

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080178075A1 (en) * 2007-01-22 2008-07-24 Fmr Corp. Configuration Data Store for Overriding a Web Application Configuration Involving Multiple Customers
CN101373470A (zh) * 2007-08-24 2009-02-25 英业达股份有限公司 客户端网页字型显示的记录系统及其方法
CN101673303A (zh) * 2009-10-20 2010-03-17 华康科技(新加坡)有限公司 个人化首页产生系统
CN102314502A (zh) * 2011-09-01 2012-01-11 百度在线网络技术(北京)有限公司 一种用于在移动终端上显示网页主体内容的方法和设备
CN102622423A (zh) * 2012-02-22 2012-08-01 优视科技有限公司 网页的显示方法、装置、浏览器及用户终端

Also Published As

Publication number Publication date
CN102622423A (zh) 2012-08-01
US20150046802A1 (en) 2015-02-12
US9710445B2 (en) 2017-07-18

Similar Documents

Publication Publication Date Title
WO2013123810A1 (zh) 网页的显示方法、装置、浏览器及用户终端
KR101541811B1 (ko) 통신 단말기에서 북마크 서비스 제공 방법 및 장치
US20180139317A1 (en) Mobile computing terminal with more than one lock screen and method of using the same
US8041763B2 (en) Method and system for providing sharable bookmarking of web pages consisting of dynamic content
US8335837B2 (en) Transferring data between applications
US20140258849A1 (en) Automatic Alignment of a Multi-Dimensional Layout
US20200073903A1 (en) Method and device of tagging links included in a screenshot of webpage
US20050116966A1 (en) Web imaging serving technology
WO2014206072A1 (zh) 预览网页的方法及系统
WO2009020726A1 (en) Updating content display based on cursor position
JP5829354B2 (ja) 情報処理システム、情報処理システムの制御方法、情報処理装置、情報処理装置の制御方法、情報記憶媒体、及びプログラム
JP2005071350A (ja) 大きなウェブ画像の一部をより小さな制約された表示領域に適合させて配信する装置および方法
WO2015154666A1 (zh) 桌面展示网页片段的方法及截取网页片段至桌面展示系统
WO2014026510A1 (zh) 网页内容的浏览方法、装置和浏览器
US20140375648A1 (en) Image display system, image display method, image display program, and computer-readable recording medium storing said program
KR101777035B1 (ko) 주소 필터링 방법, 장치, 프로그램 및 기록매체
TWI519980B (zh) 網頁顯示方法和裝置及電腦可讀取儲存介質
EP3080722A1 (en) Web page rendering on wireless devices
US9147006B2 (en) Requesting computer data assets
US10931610B2 (en) Method, device, user terminal and electronic device for sharing online image
JP2010515968A (ja) グラフィカルイメージを操作する方法及びシステム
KR101282975B1 (ko) 문서 요소를 분리 구조화하여 표준화한 후 웹페이지를 재구성하는 웹화면 크롭 서버 장치
WO2015058614A1 (zh) 一种书签存储方法及装置、确定待浏览书签的方法及装置
JPWO2015079527A1 (ja) 情報処理装置、情報処理方法及び情報処理プログラム
US10416858B2 (en) Electronic device and method of processing information in electronic device

Legal Events

Date Code Title Description
DPE2 Request for preliminary examination filed before expiration of 19th month from priority date (pct application filed from 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12869304

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14380099

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 29/10/2014)

122 Ep: pct application non-entry in european phase

Ref document number: 12869304

Country of ref document: EP

Kind code of ref document: A1