CN104598522A - Webpage display method and device - Google Patents

Webpage display method and device Download PDF

Info

Publication number
CN104598522A
CN104598522A CN201410779662.3A CN201410779662A CN104598522A CN 104598522 A CN104598522 A CN 104598522A CN 201410779662 A CN201410779662 A CN 201410779662A CN 104598522 A CN104598522 A CN 104598522A
Authority
CN
China
Prior art keywords
content
display
page
information module
display area
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201410779662.3A
Other languages
Chinese (zh)
Inventor
黄佳嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410779662.3A priority Critical patent/CN104598522A/en
Publication of CN104598522A publication Critical patent/CN104598522A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a webpage display method and device. The method comprises the steps that a browser receives a view instruction triggered by a user targeting a first information module in a webpage; the display content corresponding to the first information module is acquired according to the view instruction; the display content is displayed in any content display region of the webpage; on the condition that the display content can not be completely displayed in the content display region, the complete display content is displayed according to predetermined display rules. The webpage display method and device solve the problem that in the prior art, only the partial content corresponding to the information module is displayed on the webpage.

Description

Webpage display method and device
Technical Field
The invention relates to the field of computer web pages, in particular to a method and a device for displaying a web page.
Background
When a user browses a webpage, each information module appears in the webpage, and the information module refers to the readable character information with a small number of words displayed in a preset display area in the webpage, as shown in fig. 1, in the existing webpage display method, as for the display method of any information module in the webpage, a small display frame, for example, a label frame, appears beside the information module when the user clicks or touches a certain information module, and as shown in fig. 1, only part of the content corresponding to the information module is displayed in the label frame, so that the problem of poor user experience is caused.
Aiming at the problem that the webpage only displays part of content corresponding to the information module in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The invention mainly aims to provide a method and a device for displaying a webpage, which are used for solving the problem that the webpage only displays part of content corresponding to an information module in the prior art.
In order to achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of displaying a web page. The method comprises the following steps: the browser receives a viewing instruction triggered by a user aiming at a first information module in a page; acquiring display content corresponding to the first information module according to the viewing instruction; displaying display content in any content display area of the page; and displaying the complete display content through a preset display rule under the condition that the display content cannot be completely displayed in the content display area.
In order to achieve the above object, according to another aspect of the embodiments of the present invention, there is provided an apparatus for displaying a web page. The device includes: the first receiving unit is used for receiving a viewing instruction triggered by a user aiming at a first information module in a page; the acquisition unit is used for acquiring the display content corresponding to the first information module according to the viewing instruction; the display unit is used for displaying the display content in any content display area of the page, wherein under the condition that the display content cannot be completely displayed in the content display area, the display unit displays the complete display content according to a preset display rule.
According to the embodiment of the invention, a browser receives a viewing instruction triggered by a user aiming at any information module in a page; acquiring display content corresponding to the information module according to the viewing instruction; displaying display content in any content display area of the page; under the condition that the display content cannot be completely displayed in the content display area, the complete display content is displayed through a preset display rule, and the problem that only part of content corresponding to the information module is displayed on a webpage in the prior art is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic diagram illustrating an effect of a display method of a web page according to the prior art;
FIG. 2 is a flowchart of a method for displaying a webpage according to a first embodiment of the present invention;
fig. 3 is a schematic effect diagram of a method for displaying a webpage according to a first embodiment of the present invention; and
fig. 4 is a schematic diagram of a display device for a web page according to a second embodiment of the invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of the embodiments of the invention herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
The embodiment of the invention provides a method for displaying a webpage. As shown in fig. 2, the method comprises the steps of:
in step S12, the browser receives a viewing instruction triggered by the user for the first information module in the page.
Specifically, in the scheme, when a user browses a webpage, a viewing instruction of the user to any information module in the webpage can be received, optionally, the viewing instruction can be a signal generated by the user operating a mouse to click the information module, and can also be a signal generated by the user performing touch control on any information module in the webpage.
Here, the information module is readable character information with a small number of words displayed in a predetermined display area of a web page.
And step S14, acquiring the display content corresponding to the first information module according to the viewing instruction.
Specifically, in the present solution, after receiving a viewing instruction of a user for a first information module, display content corresponding to the information module selected to be viewed by the user may be obtained according to the viewing instruction. It should be noted that, because only a few characters with readability are displayed on the interface of the information module in the web page, the content corresponding to the first information module is the complete content corresponding to the first information module.
In step S16, the display content is displayed in an arbitrary content display area of the page.
Specifically, in the present solution, the content corresponding to the display module may be selected to be completely displayed in any one area of the webpage.
Here, when the content presentation area cannot display the display content in its entirety, the display content in its entirety is displayed according to a predetermined display rule.
Specifically, in the present solution, the content corresponding to the information module may be completely displayed in the web interface.
In the scheme, when a user selects to view any one information module, a viewing instruction of the user is received, and then the content corresponding to the information module is completely displayed in any one area of the webpage, so that the problem that the webpage only displays part of the content corresponding to the information module in the prior art is solved.
In an alternative embodiment, displaying the complete display content through the predetermined display rule may include the following two schemes:
the first scheme is as follows:
the complete display is displayed by a new page popping up in the browser.
Specifically, in the present solution, a page may be popped up again in the browser to display all the complete contents corresponding to the information module.
Scheme II:
the content display area is expanded until the complete display content is displayed in the expanded content display area, wherein the content display area comprises any one of the following expansion modes: a laterally extending content display area, a longitudinally extending content display area.
Specifically, as shown in fig. 3, any one area in the page may be set as a content display area, and the content display area may be extended in the above-mentioned multiple ways to display all the content corresponding to the text module.
Optionally, in step S16, after the display content is displayed in any content display area of the page, the method provided in this embodiment may further include:
step S161, receiving an end viewing instruction triggered by the user for the first information module.
Specifically, in the present solution, after viewing all the contents corresponding to the first information module, the user may select to finish viewing the contents, and optionally, the user may select to click or touch an end button above the display area, or click or touch other information modules on the page, so as to complete closing of the current display page.
And step S162, closing the popped new page according to the viewing ending instruction, or restoring the extended content display area to the original state of the page according to the viewing ending instruction, so that the display content is not displayed in the page.
Optionally, the extension mode of the content display area in the second scheme may also be: transversely extending the content display area by taking the center of the page as a reference; the content presentation area is extended longitudinally with reference to the center of the page.
Optionally, in step S16, after the display content is displayed in any content display area of the page, the method provided in this embodiment may further include:
step S163, receiving a viewing instruction triggered by the user for the second information module, where the positions of the second information module and the first information module in the page are different.
Specifically, after browsing the complete content corresponding to the first information module in the page, the user can continue browsing, that is, the user triggers a viewing instruction for the second information module.
And step S164, completely displaying the information corresponding to the second information module in the content display area.
Specifically, after the user triggers the viewing instruction for the second information module, in the scheme, the complete information corresponding to the second information module can be displayed at the same position as the content display area of the first information module, and a good visual experience can be provided for the user due to the fixed position of the display area.
Optionally, in step S16, after the display content is displayed in any content display area of the page, the method provided in this embodiment may further include:
step S165, collecting a plurality of viewing instructions triggered by a user, counting the number of the viewing instructions received by different information modules, and displaying the background of any information module on a page in a highlighted manner under the condition that the number of the viewing instructions received by any information module is greater than a first threshold value.
Specifically, in an alternative embodiment, in the present solution, the browsing history of the user may be counted, that is, the number of times that the user browses each module is counted for a specific user, and the background of the information module with the largest browsing number of times of the user is highlighted.
Example two
The embodiment also provides a device for displaying a webpage, as shown in fig. 4, the device may include:
and the first receiving unit 40 is used for receiving a viewing instruction triggered by a user aiming at the first information module in the page.
Specifically, in the scheme, when a user browses a webpage, a viewing instruction of the user to any information module in the webpage can be received, optionally, the viewing instruction can be a signal generated by the user operating a mouse to click the information module, and can also be a signal generated by the user performing touch control on any information module in the webpage.
Here, the information module is readable character information with a small number of words displayed in a predetermined display area of a web page.
And the obtaining unit 42 is configured to obtain the display content corresponding to the first information module according to the viewing instruction.
Specifically, in the present solution, after receiving a viewing instruction of a user for a first information module, display content corresponding to the information module selected to be viewed by the user may be obtained according to the viewing instruction. It should be noted that, because only a few characters with readability are displayed on the interface of the web page by the first information module, the content corresponding to the first information module is the complete content corresponding to the information module.
And the display unit 44 is configured to display the display content in any content display area of the page, wherein in a case where the content display area cannot completely display the display content, the display unit displays the complete display content according to a predetermined display rule.
In the scheme, when a user selects to view any one information module, a viewing instruction of the user is received, and then the content corresponding to the information module is completely displayed in any one area of the webpage, so that the problem that the webpage only displays part of the content corresponding to the information module in the prior art is solved.
Optionally, the display unit 44 may include:
the first presentation module 441 is used for displaying the complete display content through a new page popped up in the browser.
Specifically, in the present solution, a page may be popped up again in the browser to display all the complete contents corresponding to the information module.
Optionally, the display unit may also include:
the second display module 442 is configured to display the content display area until the complete display content is displayed in the enlarged content display area by extending the content display area, where the content display area includes any one of the following extension modes: a laterally extending content display area, a longitudinally extending content display area.
Specifically, as shown in fig. 3, any one area in the page may be set as a content display area, and the content display area may be extended in the above-mentioned multiple ways to display all the content corresponding to the text module.
Optionally, the apparatus provided by the present invention may further include:
and a second receiving unit 46, configured to receive an end viewing instruction triggered by the user for the first information module.
Specifically, in the present solution, after viewing all the contents corresponding to the first information module, the user may select to finish viewing the contents, and optionally, the user may select to click or touch an end button above the display area, or click or touch other information modules on the page, so as to complete closing of the current display page.
And a closing unit 48, configured to close a new page according to the end viewing instruction, or restore the extended content display area to the original state of the page according to the end viewing instruction.
Optionally, the extension manner mentioned in the second display module 442 may be: the content presentation area is extended laterally with reference to the center of the page or extended longitudinally with reference to the center of the page.
Optionally, the apparatus provided by the present invention may further include:
and the third receiving unit 50 is configured to receive a viewing instruction triggered by the user for the second information module, where the second information module is different from the first information module in position in the page.
Specifically, after browsing the complete content corresponding to the first information module in the page, the user can continue browsing, that is, the user triggers a viewing instruction for the second information module.
And the display unit 52 is configured to completely display the information corresponding to the second information module in the content display area.
Specifically, after the user triggers the viewing instruction for the second information module, in the scheme, the complete information corresponding to the second information module can be displayed at the same position as the content display area of the first information module, and a good visual experience can be provided for the user due to the fixed position of the display area.
Optionally, the apparatus provided in this embodiment may further include:
the collecting unit 54 is configured to collect a plurality of viewing instructions triggered by a user, count the number of the viewing instructions received by different information modules, and highlight the background of any information module on the page when the number of the viewing instructions received by any information module is greater than a first threshold.
Specifically, in an alternative embodiment, in the present solution, the browsing history of the user may be counted, that is, the number of times that the user browses each module is counted for a specific user, and the background of the information module with the largest browsing number of times of the user is highlighted.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a mobile terminal, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for displaying a web page, comprising:
the browser receives a viewing instruction triggered by a user aiming at a first information module in a page;
acquiring display content corresponding to the first information module according to the viewing instruction;
displaying the display content in any content display area of the page;
and displaying the complete display content through a preset display rule under the condition that the display content cannot be completely displayed in the content display area.
2. The method according to claim 1, wherein the step of displaying the complete display content through a predetermined display rule comprises:
displaying the complete display content through a new page popped up in the browser; or,
extending the content display area until the complete display content is displayed in the expanded content display area, wherein the content display area comprises any one of the following extension modes: the content display area is transversely extended and the content display area is longitudinally extended.
3. The method of claim 2, wherein after any content presentation area of the page presents the display content, the method further comprises:
receiving an end viewing instruction triggered by a user aiming at the first information module;
and closing the new page according to the finishing viewing instruction, or restoring the extended content display area to the original state of the page according to the finishing viewing instruction.
4. The method of claim 2, wherein the extending is by: and transversely extending the content display area by taking the center of the page as a reference or longitudinally extending the content display area by taking the center of the page as a reference.
5. The method of claim 1, wherein after any content presentation area of the page presents the display content, the method further comprises:
receiving a viewing instruction triggered by a user aiming at a second information module, wherein the second information module and the first information module are different in position in a page;
and completely displaying the information corresponding to the second information module in the content display area.
6. The method of claim 5, wherein after any content presentation area of the page presents the display content, the method further comprises:
the method comprises the steps of collecting a plurality of viewing instructions triggered by a user, counting the number of the viewing instructions received by different information modules, and displaying the background of any information module on the page in a highlighted mode under the condition that the number of the viewing instructions received by any information module is larger than a first threshold value.
7. An apparatus for displaying a web page, comprising:
the first receiving unit is used for receiving a viewing instruction triggered by a user aiming at a first information module in a page;
the acquisition unit is used for acquiring the display content corresponding to the first information module according to the viewing instruction;
the display unit is used for displaying the display content in any content display area of the page, wherein the display unit displays the complete display content according to a preset display rule under the condition that the display content cannot be completely displayed in the content display area.
8. The apparatus of claim 7, wherein the presentation unit comprises:
the first display module is used for displaying the complete display content through a new page popped up in the browser; or,
a second display module, configured to extend the content display area until the complete display content is displayed in the expanded content display area, where the content display area includes any one of the following extension modes: the content display area is transversely extended and the content display area is longitudinally extended.
9. The apparatus of claim 8, further comprising:
the second receiving unit is used for receiving a checking finishing instruction triggered by the user aiming at the first information module;
and the closing unit is used for closing the new page according to the finishing viewing instruction, or restoring the extended content display area to the original state of the page according to the finishing viewing instruction.
10. The device of claim 8, wherein the extension is: and transversely extending the content display area by taking the center of the page as a reference or longitudinally extending the content display area by taking the center of the page as a reference.
11. The apparatus of claim 7, further comprising:
the third receiving unit is used for receiving a viewing instruction triggered by a user aiming at a second information module, and the positions of the second information module and the first information module in the page are different;
and the display unit is used for completely displaying the information corresponding to the second information module in the content display area.
12. The apparatus of claim 8, further comprising:
the acquisition unit is used for acquiring a plurality of viewing instructions triggered by a user, counting the number of the viewing instructions received by different information modules, and highlighting the background of any one information module on the page under the condition that the number of the viewing instructions received by any one information module is greater than a first threshold value.
CN201410779662.3A 2014-12-15 2014-12-15 Webpage display method and device Pending CN104598522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410779662.3A CN104598522A (en) 2014-12-15 2014-12-15 Webpage display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410779662.3A CN104598522A (en) 2014-12-15 2014-12-15 Webpage display method and device

Publications (1)

Publication Number Publication Date
CN104598522A true CN104598522A (en) 2015-05-06

Family

ID=53124308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410779662.3A Pending CN104598522A (en) 2014-12-15 2014-12-15 Webpage display method and device

Country Status (1)

Country Link
CN (1) CN104598522A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557488A (en) * 2015-09-25 2017-04-05 北京奇虎科技有限公司 A kind of methods of exhibiting and device of available resources use state
CN111258472A (en) * 2020-01-14 2020-06-09 中国银行股份有限公司 Page editing content display method and device
CN112464125A (en) * 2020-12-07 2021-03-09 北京小米松果电子有限公司 Page display method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629251A (en) * 2012-02-27 2012-08-08 沈文策 Method and device for displaying webpage information
CN104156408A (en) * 2014-03-11 2014-11-19 百度在线网络技术(北京)有限公司 Contact information provision method, system and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629251A (en) * 2012-02-27 2012-08-08 沈文策 Method and device for displaying webpage information
CN104156408A (en) * 2014-03-11 2014-11-19 百度在线网络技术(北京)有限公司 Contact information provision method, system and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557488A (en) * 2015-09-25 2017-04-05 北京奇虎科技有限公司 A kind of methods of exhibiting and device of available resources use state
CN111258472A (en) * 2020-01-14 2020-06-09 中国银行股份有限公司 Page editing content display method and device
CN112464125A (en) * 2020-12-07 2021-03-09 北京小米松果电子有限公司 Page display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109725803B (en) Comment information processing method and device, storage medium and electronic equipment
US9766778B2 (en) Method and apparatus for rapid access to a contact in a contact list
CN106649543B (en) Method, device and terminal for recording reading progress
EP2924593A1 (en) Method and apparatus for constructing documents
US20150378965A1 (en) Method And Device For Text Input And Display Of Intelligent Terminal
US20120266103A1 (en) Method and apparatus of scrolling a document displayed in a browser window
CN105930527B (en) Searching method and device
CN108304112B (en) Data processing method and device
CN104657038A (en) Method for processing content
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
CN108469973B (en) Interface content display method and device and intelligent display equipment
CN106528704B (en) Method and device for determining interest degree of user in label
CN108536361B (en) Touch operation processing method and device, storage medium, processor and terminal
CN106325755B (en) A kind of page content display method and its equipment
CN104331819A (en) Method and device for processing information
CN104636321A (en) Text display method and text display device
CN103678497A (en) Method and system for adjusting browse display of search page
CN111124564A (en) Method and device for displaying user interface
CN108255900A (en) Recommend news rendering method, equipment, browser and electronic equipment
JP6401726B2 (en) Information processing apparatus, information processing method, and program
CN110119299A (en) Information display method and equipment
CN104484104A (en) Page display method and page display device
CN104598522A (en) Webpage display method and device
CN111143731B (en) Display method and device for webpage interface zooming and terminal equipment
CN104123070B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150506