CN103942231A - Webpage displaying method and electronic device - Google Patents

Webpage displaying method and electronic device Download PDF

Info

Publication number
CN103942231A
CN103942231A CN201310025989.7A CN201310025989A CN103942231A CN 103942231 A CN103942231 A CN 103942231A CN 201310025989 A CN201310025989 A CN 201310025989A CN 103942231 A CN103942231 A CN 103942231A
Authority
CN
China
Prior art keywords
web page
page contents
category
webpage
identification information
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.)
Granted
Application number
CN201310025989.7A
Other languages
Chinese (zh)
Other versions
CN103942231B (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310025989.7A priority Critical patent/CN103942231B/en
Publication of CN103942231A publication Critical patent/CN103942231A/en
Application granted granted Critical
Publication of CN103942231B publication Critical patent/CN103942231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a webpage displaying method and an electronic device, and relates to the field of electronic devices. Searching efficiency can be improved for a user, and then user experience is improved. According to the specific scheme, the method includes the steps of loading webpages according to address information corresponding to first operation of the user for responding to the first operation of the user; obtaining identification information when the webpages are loaded according to the address information, wherein the identification information is used for identifying the first classification, the first classification contains the classifications of the webpage content; displaying the content of the first webpage on a display interface prior to the content of the second webpage according to the identification information, wherein the content of the first webpage is the webpage content, matched with the first classification, in the corresponding webpage content, and the content of the second webpage is the webpage content, not matched with the first classification, in the corresponding webpage content. The webpage displaying method is applied when the electronic device displays the webpages according to trigger of the user.

Description

A kind of display packing of webpage and electronic equipment
Technical field
The present invention relates to electronic device field, relate in particular to a kind of display packing and electronic equipment of webpage.
Background technology
Along with scientific and technological development, mobile phone has increasing function, more experience thereby bring user, such as, can use mobile phone browsing page, down-load music etc.But, because the screen of mobile phone is much smaller than the screen of personal computer (Personal Computer, PC), therefore user is opening after webpage, often need to ransack multiple pages and just can find object content, certainly will increase user and search the time, cause poor user experience.
Summary of the invention
Embodiments of the invention provide a kind of display packing and electronic equipment of webpage, can improve user's search efficiency, and then improve user and experience.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The first aspect of the embodiment of the present invention, a kind of display packing of webpage is provided, be applied to electronic equipment, described electronic equipment comprises application program, the corresponding display interface of described application program, described application program is according to address information Web page loading, and indicates described electronic equipment in described display interface, to show the web page contents that described webpage is corresponding, and described method comprises:
In response to the first operation of user, according to described address information Web page loading corresponding to described the first operation;
Loading in the process of described webpage according to described address information, obtain identification information, described identification information is used for identifying first category, and described first category is contained in the classification of web page contents;
According to described identification information, the first web page contents is had precedence over to the second web page contents and in described display interface, show;
Wherein, described the first web page contents is the web page contents mating with described first category in the web page contents that described webpage is corresponding; Described the second web page contents be in the web page contents that described webpage is corresponding with the unmatched web page contents of described first category.
In conjunction with first aspect, in a kind of possible implementation, describedly obtain identification information loading in the process of described webpage according to described address information, comprising:
Detect and self whether be provided with CSS (cascading style sheet) list CSS attribute, described CSS attribute comprises the classification of described web page contents;
If be provided with described CSS attribute,, in the described process that loads described webpage according to described address information, obtain described identification information.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described, loading according to described address information in the process of described webpage, before obtaining identification information, described method also comprises:
Show setting options, described setting options comprise the classification of described web page contents;
In response to the second operation of described user, generate described identification information, the described first category that described identification information is selected for identifying the classification of the described web page contents that described user comprises in described setting options;
Or,
In the statistics schedule time, described user browses the record of described web page contents;
Obtain described first category, described first category is the classification of the web page contents that described in described web page contents, user's number of visits is the highest, and generates described identification information, and described identification information is used for identifying described first category.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described according to described identification information, the first web page contents is had precedence over to the second web page contents and in described display interface, show, comprising:
Resolve the web page contents that described webpage is corresponding;
According to whether comprising the web page contents mating with described first category in web page contents corresponding to webpage described in described identification information judgment;
If the web page contents that described webpage is corresponding comprises the web page contents mating with described first category, obtain the spatial parameter of the web page contents mating with described first category;
According to described spatial parameter, the web page contents mating with described first category being set to view port region default in described display interface shows.
The second aspect of the embodiment of the present invention, a kind of electronic equipment is also provided, described electronic equipment comprises application program, the corresponding display interface of described application program, described application program is according to address information Web page loading, and indicate described electronic equipment in described display interface, to show the web page contents that described webpage is corresponding, described electronic equipment comprises:
Loading unit, for the first operation in response to user, according to described address information Web page loading corresponding to described the first operation;
The first acquiring unit, for load the process of described webpage according to described address information at described loading unit, obtains identification information, and described identification information is used for identifying first category, and described first category is contained in the classification of web page contents;
The first display unit, for the described identification information obtaining according to described the first acquiring unit, has precedence over the second web page contents by the first web page contents and shows in described display interface;
Wherein, described the first web page contents is the web page contents mating with described first category in the web page contents that described webpage is corresponding; Described the second web page contents be in the web page contents that described webpage is corresponding with the unmatched web page contents of described first category.
In conjunction with second aspect, in a kind of possible implementation, described the first acquiring unit, comprising:
Detection module, for detection of self whether being provided with CSS (cascading style sheet) list CSS attribute, described CSS attribute comprises the classification of described web page contents;
The first acquisition module, if for being provided with described CSS attribute,, in the described process that loads described webpage according to described address information, obtain described identification information.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described electronic equipment, also comprises:
The second display unit, before obtaining described identification information at described the first acquiring unit, shows setting options, and described setting options comprise the classification of described web page contents;
Generation unit, for the second operation in response to described user, generates described identification information, the described first category that described identification information is selected for identifying the classification of the described web page contents that described user comprises in described setting options;
Or,
Statistic unit, before obtaining described identification information at described the first acquiring unit, in the statistics schedule time, described user browses the record of described web page contents;
Second acquisition unit, obtains described first category, and described first category is the classification of the web page contents that described in described web page contents, user's number of visits is the highest, and generates described identification information, and described identification information is used for identifying described first category.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described the first display unit, comprising:
Parsing module, for resolving the web page contents that described webpage is corresponding;
Whether judge module, for comprising according to web page contents corresponding to webpage described in described identification information judgment the web page contents mating with described first category;
The second acquisition module, if comprise for web page contents corresponding to described webpage the web page contents mating with described first category, obtains the spatial parameter of the web page contents mating with described first category;
Display module, shows for the web page contents mating with described first category being set to the default view port region of described display interface according to described spatial parameter.
The Webpage display process that the embodiment of the present invention provides and electronic equipment, in response to the first operation of user, according to the address information Web page loading of the first operation correspondence, and loading according to address information in the process of described webpage, obtain identification information, identification information is used for identifying first category, first category is contained in the classification of web page contents, then according to identification information, the first web page contents is had precedence over to the second web page contents to be shown in display interface, wherein, the first web page contents is the web page contents mating with first category in the web page contents that webpage is corresponding; The second web page contents be in the web page contents that webpage is corresponding with the unmatched web page contents of first category.Compared with the web page contents that needs user to ransack in webpage in prior art just to see this user often to browse, can be according to user the selection of the classification to web page contents, show to user priority the web page contents that user selects, can improve user's search efficiency, and then improve user and experience.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the display packing process flow diagram of a kind of webpage in the embodiment of the present invention 1;
Fig. 2 is the display packing process flow diagram of a kind of webpage in the embodiment of the present invention 2;
Fig. 3 is the display packing process flow diagram of the another kind of webpage in the embodiment of the present invention 2;
Fig. 4 is the composition schematic diagram of a kind of electronic equipment in the embodiment of the present invention 3;
Fig. 5 is the composition schematic diagram of the another kind of electronic equipment in the embodiment of the present invention 3;
Fig. 6 is the composition schematic diagram of the another kind of electronic equipment in the embodiment of the present invention 3.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention provides a kind of display packing of webpage, as shown in Figure 1, comprising:
101, electronic equipment is in response to the first operation of user, according to the address information Web page loading of the first operation correspondence.
Wherein, electronic equipment can be the electronic equipment that web page browsing function can be provided for user, for example, and mobile phone, palm PC etc.The first operation of user can be the operation that user opens the browser of electronic equipment, also can be peer link in the Webpage that shows by current electronic device of the user operation of opening another webpage etc., not limit for user's the first operation embodiment of the present invention.
102, electronic equipment, loading in the process of described webpage according to address information, obtains identification information, and identification information is used for identifying first category, and first category is contained in the classification of web page contents.
Wherein, identification information can be in electronic equipment pre-stored for recording user number of visits maximum or the variable information of the classification (being first category) of the web page contents that user selects in setting options.
Concrete, electronic equipment, loading in the process of described webpage according to address information, obtains identification information, can comprise: electronic equipment detects self whether to be provided with CSS (cascading style sheet) list (Cascading Style Sheet, CSS) attribute, CSS attribute kit is drawn together the classification of web page contents; If be provided with CSS attribute, electronic equipment, loading in the process of described webpage according to address information, obtains identification information.
Wherein, CSS is a kind of for controlling webpage pattern and allowing the markup language of one that style information is separated with web page contents, allows user to come for structured document by CSS, as HTML (Hypertext Markup Language) (Hypertext Markup Language, HTML) document, given pattern.By using CSS user the content of document can be separated with pattern, thereby simplify exploitation and the maintenance of the Web page.Concrete, in the time of Web-Designing homepage, adopting CSS technology, the layout to the page, font, color, background and other effect are controlled accurately effectively.Adopt CSS fabrication techniques Webpage only need make some to corresponding code and simply revise, just can change the different piece of the same page, or outward appearance and the form of the different webpage of number of pages.After Web page maker adds in webpage by CSS, can be by the display effect of the text in a large amount of CSS property control webpages, picture, form etc.
Further, at electronic equipment, according in the process of address information Web page loading, before obtaining identification information, the method for the embodiment of the present invention can also comprise: electronic equipment shows setting options, and setting options comprise the classification of web page contents; Electronic equipment is in response to the second operation of user, generating identification information, the first category that the classification of the web page contents that identification information comprises in setting options for identifying user is selected; Or, the record of user's browsed web content in the electronic equipment statistics schedule time; Electronic equipment obtains first category, and first category is the classification of the web page contents that in web page contents, user's number of visits is the highest, and generating identification information, and identification information is used for identifying first category.
103, electronic equipment, according to identification information, has precedence over the second web page contents by the first web page contents and shows in display interface.
Wherein, the first web page contents is the web page contents mating with first category in the web page contents that webpage is corresponding; The second web page contents be in the web page contents that webpage is corresponding with the unmatched web page contents of first category.
Concrete, electronic equipment is according to identification information, the first web page contents had precedence over to the method that the second web page contents shows in display interface and comprise: the web page contents that electronic equipment analyzing web page is corresponding; Electronic equipment is according to whether comprising the web page contents mating with first category in web page contents corresponding to identification information judgment webpage; If the web page contents that webpage is corresponding comprises the web page contents mating with first category, electronic equipment obtains the spatial parameter of the web page contents mating with first category; Electronic equipment is set to view port region default in display interface according to spatial parameter by the web page contents mating with first category and shows.
The display packing of the webpage that the embodiment of the present invention provides, in response to the first operation of user, according to the address information Web page loading of the first operation correspondence, and loading according to address information in the process of described webpage, obtain identification information, identification information is used for identifying first category, first category is contained in the classification of web page contents, then according to identification information, the first web page contents is had precedence over to the second web page contents to be shown in display interface, wherein, the first web page contents is the web page contents mating with first category in the web page contents that webpage is corresponding; The second web page contents be in the web page contents that webpage is corresponding with the unmatched web page contents of first category.Compared with the web page contents that needs user to ransack in webpage in prior art just to see this user often to browse, can be according to user the selection of the classification to web page contents, show to user priority the web page contents that user selects, can improve user's search efficiency, and then improve user and experience.
Embodiment 2
The embodiment of the present invention provides a kind of display packing of webpage, as shown in Figure 2, comprising:
201, electronic equipment shows setting options, and setting options comprise the classification of web page contents.
In embodiments of the present invention, the application layer of the browser that setting options are electronic equipment increases newly, for supplying user according to the classification of being accustomed to selecting the web page contents of often browsing of browsing of oneself.The classification of web page contents can comprise: news, physical culture, stock, house property, automobile etc.
202, electronic equipment is in response to the second operation of user, generating identification information, the first category that the classification of the web page contents that identification information comprises in described setting options for identifying user is selected.
Concrete, user's second is operating as the selection of this user classification to web page contents in setting options, due to, identification information can be in electronic equipment pre-stored for recording user number of visits maximum or the variable information of the classification (being first category) of the web page contents that user selects in setting options.Therefore,, if this user selects the physical culture in the classification of web page contents, electronic equipment can generating identification information, for example, the preferential global variable mFirstShow that shows, the first category that the classification of the web page contents comprising in setting options for recording user is selected, first category is physical culture.Preferential show that global variable mFirstShow can be that the application layer of the browser of electronic equipment increases newly, for recording user in setting options the variable of the selection of the classification to page content.
Further alternative, as shown in Figure 3, in a kind of application scenarios of inventive embodiments, step 201 and step 202 can replace with respectively step 201 ' and step 202 '.
201 ', the record of user's browsed web content in the electronic equipment statistics schedule time.
Concrete, electronic equipment can be added up the user who preserves in schedule time inner electronic equipment and browse the number of times of different classes of web page contents.Wherein, the schedule time can be 3 days, or 1 week, or 1 month etc.The present embodiment does not limit the length of the schedule time.For example, electronic equipment can counting user in 3 days, the number of times of browsing the web page contents of different classifications obtains: user, in 3 days, once browsed entertainment news 8 times, browsed sports news 16 times, browses Automotive News for 7 times, browses house property news 2 times.
202 ', electronic equipment obtains first category, first category is the classification of the web page contents that in web page contents, user's number of visits is the highest, and generating identification information, identification information is used for identifying first category.
Exemplary, the user that electronic equipment can obtain according to the statistics in the given time record of browsed web content obtains first category, as described in above-mentioned example, the number of times of browsing the web page contents of different classifications when electronic equipment counting user in 3 days obtains: user is in 3 days, once browsed entertainment news 8 times, browse sports news 16 times, browse Automotive News for 7 times, while browsing house property news 2 times, electronic equipment can determine that first category is physical culture.
Further, the method of the present embodiment can also comprise: the record of user's browsed web content also can comprise: in the electronic equipment statistics schedule time, user browses the length of the cumulative time of the web page contents of each classification, the classification of the longest web page contents of cumulative time of then user being browsed is as first category, and generating identification information.
It should be noted that, in the embodiment of the present invention, the method of step 201-202 and step 201 '-202 ' provide is provided the method for electronic equipment generating identification information, but the method that step 201-202 and step 201 '-202 ' provide are provided, additive method the present embodiment of electronic equipment generating identification information repeats no more here.
203, electronic equipment is in response to the first operation of user, according to the address information Web page loading of the first operation correspondence.
Wherein, because the first operation can be the operation that user opens the browser of electronic equipment, also can be that peer link in the Webpage that shows by current electronic device of user is opened operation of another webpage etc., therefore, address information corresponding to the first operation can be the corresponding website information of link of the first operation triggering of user.
It should be noted that, the present embodiment to step 201-202 or step 201 '-202 ' and the execution of step 203 successively do not limit, can first perform step 201-202 or step 201 '-202 ', perform step again 203, also can first perform step 203, then perform step 201-202 or step 201 '-202 '.
204, electronic equipment detects self whether to be provided with CSS attribute, and CSS attribute kit is drawn together the classification of web page contents.
Exemplary, CSS attribute can comprise: CSS font attribute, CSS text attribute, CSS frame attribute, CSS background attribute etc.CSS font attribute, for specifying font style, font size, font weight of text etc.; CSS text attribute, for specifying that the row of character pitch, text of color, text of text is high, Horizontal Alignment and the decorative effect etc. of text; CSS frame attribute, for arranging pattern, width, color of frame etc.; CSS background attribute, for arranging background color, background starting position, background picture etc.Wherein, each CSS attribute has a CSS value corresponding with this CSS attribute.
Preferably, the CSS attribute in the embodiment of the present invention also comprises the category attribute of web page contents, and the category attribute of web page contents, for arranging the classification of web page contents.For example, all the elements that webpage comprises can be divided into according to this attribute: news, physical culture, stock, house property, automobile etc.
If 205 are provided with CSS attribute, electronic equipment, according in the process of address information Web page loading, obtains identification information.
Further, the method for the present embodiment can also comprise: if be not provided with CSS attribute, electronic equipment shows web page contents corresponding to the first operation according to traditional display mode.Concrete, electronic equipment operates corresponding web page contents according to presetting page layout from the initial space parameter display first of the web page contents of the first operation correspondence.Spatial parameter is the coordinate parameters in webpage.
206, web page contents corresponding to electronic equipment analyzing web page.
Wherein, i.e. web page contents corresponding to the first operation of web page contents that webpage is corresponding, electronic equipment is resolved web page contents corresponding to the first operation can analyze to judge in web page contents corresponding to the first operation whether comprise the web page contents that first category is corresponding.
207, electronic equipment is according to whether comprising the web page contents mating with first category in web page contents corresponding to identification information judgment webpage.
If the web page contents that 208 webpages are corresponding comprises the web page contents mating with first category, electronic equipment obtains the spatial parameter of the web page contents mating with first category.
Wherein, the spatial parameter of the web page contents that first category is corresponding can comprise web page contents that web page contents that first category is corresponding coordinate parameters, the first category in the web page contents of the first operation correspondence the is corresponding reference position parameter in the web page contents of the first operation correspondence, and the particular content of the spatial parameter of the present embodiment to web page contents corresponding to first category does not limit.
Further, if do not include the web page contents that first category is corresponding in web page contents corresponding to the first operation, electronic equipment shows web page contents corresponding to the first operation according to traditional display mode.
209, electronic equipment is set to view port region default in display interface according to spatial parameter by the web page contents mating with first category and shows.
Concrete, default view port region can be electronic equipment in the time of display web page content, the preferential web page area showing of electronic equipment.Concrete, default view port region can be electronic equipment in the time of display web page content, ransack without user's sliding-rolling bar, be directly presented at the web page area on the display of electronic equipment.
Exemplary, the first spatial parameter (coordinate range) that operates corresponding web page contents is (x, y), (0≤x≤10,0≤y≤20), unit: centimetre cm.The spatial parameter A of the web page contents that first category is corresponding is a coordinates regional, as, A=(x, y), (2≤x≤6,12≤y≤16).
Wherein, electronic equipment is set to by web page contents corresponding first category the concrete grammar that default view port region shows according to spatial parameter, the initial space parameter in electronic equipment view port region is set to the spatial parameter A=(x of the web page contents that first category is corresponding, y), (2≤x≤6,12≤y≤16), electronic equipment operates corresponding web page contents according to the initial space parameter display first in this view port region.Wherein, electronic equipment shows after web page contents corresponding to the first operation according to said method, ransacks without user's sliding-rolling bar, in the current web page page showing, just comprises the web page contents that first category is corresponding on the display of electronic equipment.
Wherein, electronic equipment shows that according to traditional display mode web page contents corresponding to the first operation is specially: electronic equipment is made as (0 by the initial space parameter in view port region, 0), electronic equipment operates corresponding web page contents according to the initial space parameter display first in this view port region.
It should be noted that, the method for the embodiment of the present invention can be applied to the electronic equipment that Android Android system is installed.The Webpage display process that now embodiment of the present invention provides specifically comprises:
Electronic equipment is at the newly-increased setting options of application layer and the preferential global variable mFirstShow that shows of the browser of this electronic equipment; Electronic equipment, at the Webkit of the browser of this electronic equipment bottom, arranges CSS attribute, and this CSS attribute is specially the classification of web page contents.
Electronic equipment shows setting options; Electronic equipment operates in response to user's second, the first category of selecting in the classification of the web page contents that use mFirstShow recording user comprises in setting options; Electronic equipment is in response to the first operation of user, and whether the Webkit bottom that detects this electronic equipment is provided with CSS attribute; If the Webkit layer of this electronic equipment is provided with CSS attribute, electronic equipment obtains the mFirstShow prestoring, and mFirstShow comprises the first category that user selects in advance in the classification of web page contents; Electronic equipment shows web page contents corresponding to first category.
Wherein, electronic equipment obtains the mFirstShow prestoring and is specially: electronic equipment obtains mFirstShow from the application layer of the browser of electronic equipment.Electronic equipment shows that web page contents corresponding to first category specifically comprises: electronic equipment is passed to Webkit bottom by the mFirstShow obtaining from application layer by the framework Framework layer of browser, so that electronic equipment is while resolving web page contents corresponding to the first operation by Webkit bottom, obtain the spatial parameter of the web page contents that first category is corresponding, and this spatial parameter is back to the Framework layer of electronic equipment, so that being set to default view port region according to this spatial parameter by web page contents corresponding first category by Framework layer, electronic equipment shows.
Wherein, Webkit is browser typesetting engine, and in the electronic equipment of installation Android system, WebKit is the core of the browser of electronic equipment.Framework layer is used for web page contents to carry out layout, the distribution of web page contents in the page that definite electronic equipment shows.
The display packing of the webpage that the embodiment of the present invention provides, in response to the first operation of user, according to the address information Web page loading of the first operation correspondence, and loading according to address information in the process of described webpage, obtain identification information, identification information is used for identifying first category, first category is contained in the classification of web page contents, then according to identification information, the first web page contents is had precedence over to the second web page contents to be shown in display interface, wherein, the first web page contents is the web page contents mating with first category in the web page contents that webpage is corresponding; The second web page contents be in the web page contents that webpage is corresponding with the unmatched web page contents of first category.Compared with the web page contents that needs user to ransack in webpage in prior art just to see this user often to browse, can be according to user the selection of the classification to web page contents, show to user priority the web page contents that user selects, can improve user's search efficiency, and then improve user and experience.
Embodiment 3
The embodiment of the present invention provides a kind of electronic equipment, described electronic equipment comprises application program, the corresponding display interface of described application program, described application program is according to address information Web page loading, and indicate described electronic equipment in described display interface, to show the web page contents that described webpage is corresponding, as shown in Figure 4, described electronic equipment comprises: loading unit 31, the first acquiring unit 32, the first display unit 33.
Loading unit 31, for the first operation in response to user, according to described address information Web page loading corresponding to described the first operation.
The first acquiring unit 32, for load the process of described webpage according to described address information at described loading unit, obtains identification information, and described identification information is used for identifying first category, and described first category is contained in the classification of web page contents,
The first display unit 33, for the described identification information obtaining according to described the first acquiring unit, has precedence over the second web page contents by the first web page contents and shows in described display interface,
Wherein, described the first web page contents is the web page contents mating with described first category in the web page contents that described webpage is corresponding; Described the second web page contents be in the web page contents that described webpage is corresponding with the unmatched web page contents of described first category.
Further, described the first acquiring unit 32, can comprise: detection module 321, the first acquisition module 322.
Detection module 321, for detection of self whether being provided with CSS (cascading style sheet) list CSS attribute, described CSS attribute comprises the classification of described web page contents.
The first acquisition module 322, if for being provided with described CSS attribute,, in the described process that loads described webpage according to described address information, obtain described identification information.
Further alternative, as shown in Figure 5, in a kind of application scenarios of the present embodiment, described electronic equipment, can also comprise: the second display unit 34, generation unit 35.
The second display unit 34, before obtaining described identification information at described the first acquiring unit, shows setting options, and described setting options comprise the classification of described web page contents;
Generation unit 35, for the second operation in response to described user, generates described identification information, the described first category that described identification information is selected for identifying the classification of the described web page contents that described user comprises in described setting options.
Further optional, as shown in Figure 6, in the another kind of application scenarios of the present embodiment, described electronic equipment, can also comprise: statistic unit 36, second acquisition unit 37.
Statistic unit 36, before obtaining described identification information at described the first acquiring unit, in the statistics schedule time, described user browses the record of described web page contents.
Second acquisition unit 37, obtains described first category, and described first category is the classification of the web page contents that described in described web page contents, user's number of visits is the highest, and generates described identification information, and described identification information is used for identifying described first category.
Further, described the first display unit 33, can comprise: parsing module 331, judge module 332, the second acquisition module 333, display module 334.
Parsing module 331, for resolving the web page contents that described webpage is corresponding;
Whether judge module 332, for comprising according to web page contents corresponding to webpage described in described identification information judgment the web page contents mating with described first category;
The second acquisition module 333, if comprise for web page contents corresponding to described webpage the web page contents mating with described first category, obtains the spatial parameter of the web page contents mating with described first category;
Display module 334, shows for the web page contents mating with described first category being set to the default view port region of display interface according to described spatial parameter.
It should be noted that, the corresponding content of the specific descriptions of part functional module in can reference method embodiment in the electronic equipment that the embodiment of the present invention provides, the present embodiment is no longer described in detail here.
The electronic equipment that the embodiment of the present invention provides, in response to the first operation of user, according to the address information Web page loading of the first operation correspondence, and loading according to address information in the process of described webpage, obtain identification information, identification information is used for identifying first category, first category is contained in the classification of web page contents, then according to identification information, the first web page contents is had precedence over to the second web page contents to be shown in display interface, wherein, the first web page contents is the web page contents mating with first category in the web page contents that webpage is corresponding; The second web page contents be in the web page contents that webpage is corresponding with the unmatched web page contents of first category.Compared with the web page contents that needs user to ransack in webpage in prior art just to see this user often to browse, can be according to user the selection of the classification to web page contents, show to user priority the web page contents that user selects, can improve user's search efficiency, and then improve user and experience.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computing machine, hard disk or CD etc., comprise that some instructions are in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (8)

1. the display packing of a webpage, be applied to electronic equipment, described electronic equipment comprises application program, the corresponding display interface of described application program, described application program is according to address information Web page loading, and indicate described electronic equipment in described display interface, to show the web page contents that described webpage is corresponding, and it is characterized in that, described method comprises:
In response to the first operation of user, according to described address information Web page loading corresponding to described the first operation;
Loading in the process of described webpage according to described address information, obtain identification information, described identification information is used for identifying first category, and described first category is contained in the classification of web page contents;
According to described identification information, the first web page contents is had precedence over to the second web page contents and in described display interface, show;
Wherein, described the first web page contents is the web page contents mating with described first category in the web page contents that described webpage is corresponding; Described the second web page contents be in the web page contents that described webpage is corresponding with the unmatched web page contents of described first category.
2. the display packing of webpage according to claim 1, is characterized in that, describedly obtains identification information loading in the process of described webpage according to described address information, comprising:
Detect and self whether be provided with CSS (cascading style sheet) list CSS attribute, described CSS attribute comprises the classification of described web page contents;
If be provided with described CSS attribute,, in the described process that loads described webpage according to described address information, obtain described identification information.
3. the display packing of webpage according to claim 1, is characterized in that, described, loading according to described address information in the process of described webpage, before obtaining identification information, described method also comprises:
Show setting options, described setting options comprise the classification of described web page contents;
In response to the second operation of described user, generate described identification information, the described first category that described identification information is selected for identifying the classification of the described web page contents that described user comprises in described setting options;
Or,
In the statistics schedule time, described user browses the record of described web page contents;
Obtain described first category, described first category is the classification of the web page contents that described in described web page contents, user's number of visits is the highest, and generates described identification information, and described identification information is used for identifying described first category.
4. the display packing of webpage according to claim 1, is characterized in that, described according to described identification information, the first web page contents is had precedence over to the second web page contents and in described display interface, show, comprising:
Resolve the web page contents that described webpage is corresponding;
According to whether comprising the web page contents mating with described first category in web page contents corresponding to webpage described in described identification information judgment;
If the web page contents that described webpage is corresponding comprises the web page contents mating with described first category, obtain the spatial parameter of the web page contents mating with described first category;
According to described spatial parameter, the web page contents mating with described first category being set to view port region default in described display interface shows.
5. an electronic equipment, described electronic equipment comprises application program, the corresponding display interface of described application program, described application program is according to address information Web page loading, and indicate described electronic equipment in described display interface, to show the web page contents that described webpage is corresponding, it is characterized in that, described electronic equipment comprises:
Loading unit, for the first operation in response to user, according to described address information Web page loading corresponding to described the first operation;
The first acquiring unit, for load the process of described webpage according to described address information at described loading unit, obtains identification information, and described identification information is used for identifying first category, and described first category is contained in the classification of web page contents;
The first display unit, for the described identification information obtaining according to described the first acquiring unit, has precedence over the second web page contents by the first web page contents and shows in described display interface;
Wherein, described the first web page contents is the web page contents mating with described first category in the web page contents that described webpage is corresponding; Described the second web page contents be in the web page contents that described webpage is corresponding with the unmatched web page contents of described first category.
6. electronic equipment according to claim 5, is characterized in that, described the first acquiring unit, comprising:
Detection module, for detection of self whether being provided with CSS (cascading style sheet) list CSS attribute, described CSS attribute comprises the classification of described web page contents;
The first acquisition module, if for being provided with described CSS attribute,, in the described process that loads described webpage according to described address information, obtain described identification information.
7. list equipment according to claim 5, is characterized in that, also comprises:
The second display unit, before obtaining described identification information at described the first acquiring unit, shows setting options, and described setting options comprise the classification of described web page contents;
Generation unit, for the second operation in response to described user, generates described identification information, the described first category that described identification information is selected for identifying the classification of the described web page contents that described user comprises in described setting options;
Or,
Statistic unit, before obtaining described identification information at described the first acquiring unit, in the statistics schedule time, described user browses the record of described web page contents;
Second acquisition unit, obtains described first category, and described first category is the classification of the web page contents that described in described web page contents, user's number of visits is the highest, and generates described identification information, and described identification information is used for identifying described first category.
8. electronic equipment according to claim 5, is characterized in that, described the first display unit, comprising:
Parsing module, for resolving the web page contents that described webpage is corresponding;
Whether judge module, for comprising according to web page contents corresponding to webpage described in described identification information judgment the web page contents mating with described first category;
The second acquisition module, if comprise for web page contents corresponding to described webpage the web page contents mating with described first category, obtains the spatial parameter of the web page contents mating with described first category;
Display module, shows for the web page contents mating with described first category being set to the default view port region of described display interface according to described spatial parameter.
CN201310025989.7A 2013-01-18 2013-01-18 A kind of display methods and electronic equipment of webpage Active CN103942231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310025989.7A CN103942231B (en) 2013-01-18 2013-01-18 A kind of display methods and electronic equipment of webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310025989.7A CN103942231B (en) 2013-01-18 2013-01-18 A kind of display methods and electronic equipment of webpage

Publications (2)

Publication Number Publication Date
CN103942231A true CN103942231A (en) 2014-07-23
CN103942231B CN103942231B (en) 2019-01-15

Family

ID=51189901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310025989.7A Active CN103942231B (en) 2013-01-18 2013-01-18 A kind of display methods and electronic equipment of webpage

Country Status (1)

Country Link
CN (1) CN103942231B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657499A (en) * 2015-03-11 2015-05-27 网易(杭州)网络有限公司 Webpage loading method and device of client-side APP (Application)
CN105630521A (en) * 2014-10-31 2016-06-01 阿里巴巴集团控股有限公司 Webpage loading method and device
CN106484883A (en) * 2016-10-17 2017-03-08 北京邮电大学 webpage loading method and device
CN107203303A (en) * 2016-03-18 2017-09-26 阿里巴巴集团控股有限公司 A kind of interface display method and device
CN108664498A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 A kind of display methods and terminal of web page contents
CN109960769A (en) * 2019-03-15 2019-07-02 广州视源电子科技股份有限公司 Display methods, device, computer equipment and the storage medium of webpage view
CN105138703B (en) * 2015-09-30 2019-08-16 北京奇虎科技有限公司 A kind of network search method and electronic equipment based on search engine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006120493A1 (en) * 2005-05-11 2006-11-16 Nokia Corporation User-defined changing of page representations
CN101930475A (en) * 2010-09-14 2010-12-29 中兴通讯股份有限公司 Web page display method and browser
CN102024028A (en) * 2010-11-22 2011-04-20 百度在线网络技术(北京)有限公司 Method and equipment for distinctly displaying main contents of webpage on mobile terminal
CN102035883A (en) * 2010-11-26 2011-04-27 百度在线网络技术(北京)有限公司 Method and device for optimizing webpage in network equipment
CN102385626A (en) * 2011-10-28 2012-03-21 宇龙计算机通信科技(深圳)有限公司 Webpage display method and mobile terminal
CN102819602A (en) * 2012-08-16 2012-12-12 优视科技有限公司 Browsing method and device and browser for web page content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006120493A1 (en) * 2005-05-11 2006-11-16 Nokia Corporation User-defined changing of page representations
CN101930475A (en) * 2010-09-14 2010-12-29 中兴通讯股份有限公司 Web page display method and browser
CN102024028A (en) * 2010-11-22 2011-04-20 百度在线网络技术(北京)有限公司 Method and equipment for distinctly displaying main contents of webpage on mobile terminal
CN102035883A (en) * 2010-11-26 2011-04-27 百度在线网络技术(北京)有限公司 Method and device for optimizing webpage in network equipment
CN102385626A (en) * 2011-10-28 2012-03-21 宇龙计算机通信科技(深圳)有限公司 Webpage display method and mobile terminal
CN102819602A (en) * 2012-08-16 2012-12-12 优视科技有限公司 Browsing method and device and browser for web page content

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630521A (en) * 2014-10-31 2016-06-01 阿里巴巴集团控股有限公司 Webpage loading method and device
CN104657499A (en) * 2015-03-11 2015-05-27 网易(杭州)网络有限公司 Webpage loading method and device of client-side APP (Application)
CN105138703B (en) * 2015-09-30 2019-08-16 北京奇虎科技有限公司 A kind of network search method and electronic equipment based on search engine
CN107203303A (en) * 2016-03-18 2017-09-26 阿里巴巴集团控股有限公司 A kind of interface display method and device
CN106484883A (en) * 2016-10-17 2017-03-08 北京邮电大学 webpage loading method and device
CN108664498A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 A kind of display methods and terminal of web page contents
CN108664498B (en) * 2017-03-29 2023-05-16 腾讯科技(深圳)有限公司 Webpage content display method and terminal
CN109960769A (en) * 2019-03-15 2019-07-02 广州视源电子科技股份有限公司 Display methods, device, computer equipment and the storage medium of webpage view

Also Published As

Publication number Publication date
CN103942231B (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN103942231A (en) Webpage displaying method and electronic device
CN105373567B (en) Page generation method and client
US9311427B2 (en) Automated generation of mobile optimized website based on an existing conventional web page description
US11170159B1 (en) System and method for using a dynamic webpage editor
CN104834753A (en) Webpage screenshot generating method and device
US20150074561A1 (en) Customizable themes for browsers and web content
US20160283096A1 (en) Method of generating a link by utilizing a picture and system thereof
US20120297324A1 (en) Navigation Control Availability
CN105302811B (en) Browser page skipping method and device
CN105677654B (en) Advertisement filtering method and device
CN102137306B (en) Method and device for displaying web content on television
CN104281677A (en) Page displaying method and device
CN103761110B (en) browser font display processing method and device
CN106155654B (en) Method and device for shielding webpage operation and electronic equipment
CN104834752A (en) Browser engine device and information display method thereof
KR101994933B1 (en) Apparatus, method and computer program for providing Web Browser
CN105630893A (en) Display method and device of photo title
Nebeling et al. Tools and architectural support for crowdsourced adaptation of web interfaces
KR102600743B1 (en) Website building method and website building service providing server
CN106528730B (en) Method and device for designing components in webpage
CN104899287A (en) Webpage display method and device
CN105373565A (en) Webpage processing method and apparatus
KR101397178B1 (en) System for supporting a customizing of program module
CN109492165B (en) Network searching method and electronic equipment
JP5973480B2 (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant